pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.5.13</version>
  9. </parent>
  10. <groupId>com.jeesite</groupId>
  11. <artifactId>jeesite-parent</artifactId>
  12. <version>4.4.1-SNAPSHOT</version>
  13. <packaging>pom</packaging>
  14. <name>JeeSite Parent</name>
  15. <url>http://jeesite.com</url>
  16. <inceptionYear>2013-Now</inceptionYear>
  17. <properties>
  18. <!-- common version setting -->
  19. <commons-io.version>2.11.0</commons-io.version>
  20. <commons-text.version>1.9</commons-text.version>
  21. <commons-beanutils.version>1.9.4</commons-beanutils.version>
  22. <fst.version>2.57</fst.version>
  23. <fastjson.version>1.2.80</fastjson.version>
  24. <commons-email.version>1.5</commons-email.version>
  25. <!-- <jackson.version>2.12.6</jackson.version> -->
  26. <!-- <activation.version>1.1.1</activation.version> -->
  27. <UserAgentUtils.version>1.21</UserAgentUtils.version>
  28. <!-- <metadata-extractor.version>2.11.0</metadata-extractor.version> -->
  29. <thumbnailator.version>0.4.17</thumbnailator.version>
  30. <twelvemonkeys.version>3.8.2</twelvemonkeys.version>
  31. <blade-patchca.version>1.1.2</blade-patchca.version>
  32. <jmimemagic.version>0.1.5</jmimemagic.version>
  33. <zxing.version>3.4.1</zxing.version>
  34. <poi.version>4.1.2</poi.version>
  35. <pinyin4j.version>2.5.1</pinyin4j.version>
  36. <groovy.version>3.0.10</groovy.version>
  37. <!-- framework version setting -->
  38. <mybatis.version>3.5.9</mybatis.version>
  39. <mybatis-spring.version>2.0.6</mybatis-spring.version>
  40. <jsqlparser.version>4.4</jsqlparser.version>
  41. <druid.version>1.2.9</druid.version>
  42. <shiro.version>1.9.0</shiro.version>
  43. <j2cache.version>2.8.0-release</j2cache.version>
  44. <swagger.version>1.6.0</swagger.version>
  45. <log4j2.version>2.17.0</log4j2.version>
  46. <!-- jdbc setting -->
  47. <!-- <mysql.version>5.1.49</mysql.version> -->
  48. <mysql.version>8.0.29</mysql.version>
  49. <!-- environment setting -->
  50. <java.version>1.8</java.version>
  51. <!-- <tomcat.version>9.0.58</tomcat.version> -->
  52. <maven.test.skip>true</maven.test.skip>
  53. <maven-surefire-plugin.version>2.18.1</maven-surefire-plugin.version><!-- 降级到该版本,新版本可能会出现VM崩溃 -->
  54. <eclipse-plugin-download-sources>false</eclipse-plugin-download-sources>
  55. <eclipse-plugin-download-javadocs>false</eclipse-plugin-download-javadocs>
  56. <!-- docker setting -->
  57. <docker.dockerHost>http://192.168.56.102:2375</docker.dockerHost>
  58. <docker.imageName>thinkgem/${project.artifactId}:4.3</docker.imageName>
  59. <docker.run.port>8980:8980</docker.run.port>
  60. </properties>
  61. <build>
  62. <plugins>
  63. <!-- compiler插件 -->
  64. <plugin>
  65. <groupId>org.apache.maven.plugins</groupId>
  66. <artifactId>maven-compiler-plugin</artifactId>
  67. </plugin>
  68. <!-- jar插件 -->
  69. <plugin>
  70. <groupId>org.apache.maven.plugins</groupId>
  71. <artifactId>maven-jar-plugin</artifactId>
  72. </plugin>
  73. <!-- resource插件 -->
  74. <plugin>
  75. <groupId>org.apache.maven.plugins</groupId>
  76. <artifactId>maven-resources-plugin</artifactId>
  77. </plugin>
  78. <!-- install插件 -->
  79. <plugin>
  80. <groupId>org.apache.maven.plugins</groupId>
  81. <artifactId>maven-install-plugin</artifactId>
  82. </plugin>
  83. <!-- clean插件 -->
  84. <plugin>
  85. <groupId>org.apache.maven.plugins</groupId>
  86. <artifactId>maven-clean-plugin</artifactId>
  87. </plugin>
  88. </plugins>
  89. <pluginManagement>
  90. <plugins>
  91. <!-- compiler插件,设定JDK版本 -->
  92. <plugin>
  93. <groupId>org.apache.maven.plugins</groupId>
  94. <artifactId>maven-compiler-plugin</artifactId>
  95. <configuration>
  96. <showWarnings>true</showWarnings>
  97. <!-- <compilerArguments>
  98. <verbose /> 输出有关编译器正在执行的操作的消息
  99. <bootclasspath>${JAVA_HOME}\jre\lib\rt.jar;${JAVA_HOME}\jre\lib\jce.jar</bootclasspath>
  100. </compilerArguments> -->
  101. </configuration>
  102. </plugin>
  103. <!-- jar插件,配置manifest文件,加入lib包的jar依赖 -->
  104. <plugin>
  105. <groupId>org.apache.maven.plugins</groupId>
  106. <artifactId>maven-jar-plugin</artifactId>
  107. <configuration>
  108. <archive>
  109. <addMavenDescriptor>false</addMavenDescriptor>
  110. </archive>
  111. </configuration>
  112. <executions>
  113. <execution>
  114. <configuration>
  115. <excludes>
  116. <exclude>userfiles/**</exclude>
  117. </excludes>
  118. <finalName>${project.artifactId}</finalName>
  119. <archive>
  120. <manifest>
  121. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  122. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  123. <addClasspath>true</addClasspath>
  124. </manifest>
  125. </archive>
  126. </configuration>
  127. </execution>
  128. </executions>
  129. </plugin>
  130. <!-- war插件,war包名称不带版本号 -->
  131. <plugin>
  132. <groupId>org.apache.maven.plugins</groupId>
  133. <artifactId>maven-war-plugin</artifactId>
  134. <version>3.2.3</version>
  135. <configuration>
  136. <warSourceExcludes>
  137. userfiles/**
  138. </warSourceExcludes>
  139. <webappDirectory>${project.build.directory}/${project.artifactId}</webappDirectory>
  140. <warName>${project.artifactId}</warName>
  141. <archive>
  142. <addMavenDescriptor>false</addMavenDescriptor>
  143. </archive>
  144. </configuration>
  145. </plugin>
  146. <!-- Eclipse 插件 -->
  147. <plugin>
  148. <groupId>org.apache.maven.plugins</groupId>
  149. <artifactId>maven-eclipse-plugin</artifactId>
  150. <version>2.10</version>
  151. <configuration>
  152. <downloadSources>${eclipse-plugin-download-sources}</downloadSources>
  153. <downloadJavadocs>${eclipse-plugin-download-javadocs}</downloadJavadocs>
  154. <wtpversion>2.0</wtpversion>
  155. <jeeversion>6.0</jeeversion>
  156. <additionalConfig>
  157. <file>
  158. <name>.settings/org.eclipse.core.resources.prefs</name>
  159. <content>
  160. <![CDATA[eclipse.preferences.version=1${line.separator}encoding/<project>=${project.build.sourceEncoding}${line.separator}]]>
  161. </content>
  162. </file>
  163. </additionalConfig>
  164. <additionalProjectnatures>
  165. <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
  166. </additionalProjectnatures>
  167. </configuration>
  168. </plugin>
  169. <!-- Java Document Generate -->
  170. <plugin>
  171. <groupId>org.apache.maven.plugins</groupId>
  172. <artifactId>maven-javadoc-plugin</artifactId>
  173. <version>3.2.0</version>
  174. <executions>
  175. <execution>
  176. <phase>prepare-package</phase>
  177. <goals>
  178. <goal>jar</goal>
  179. </goals>
  180. <!-- <configuration>
  181. <additionalparam>-Xdoclint:none</additionalparam>
  182. </configuration> -->
  183. </execution>
  184. </executions>
  185. </plugin>
  186. <!-- JavaScript CSS Compress -->
  187. <plugin>
  188. <groupId>com.jeesite.maven</groupId>
  189. <artifactId>compressor-maven-plugin</artifactId>
  190. <version>1.0.0-SNAPSHOT</version>
  191. <executions>
  192. <execution>
  193. <phase>prepare-package</phase>
  194. <goals>
  195. <goal>compress</goal>
  196. </goals>
  197. </execution>
  198. </executions>
  199. <configuration>
  200. <encoding>UTF-8</encoding>
  201. <jswarn>false</jswarn>
  202. <nosuffix>true</nosuffix>
  203. <linebreakpos>30000</linebreakpos>
  204. <force>true</force>
  205. <includes>
  206. <include>**/*.js</include>
  207. <include>**/*.css</include>
  208. </includes>
  209. <excludes>
  210. <exclude>**/WEB-INF/classes/**</exclude>
  211. <exclude>**/*.min.js</exclude>
  212. <exclude>**/*.min.css</exclude>
  213. </excludes>
  214. </configuration>
  215. </plugin>
  216. <!-- Eclipse m2e settings only -->
  217. <plugin>
  218. <groupId>org.eclipse.m2e</groupId>
  219. <artifactId>lifecycle-mapping</artifactId>
  220. <version>1.0.0</version>
  221. <configuration>
  222. <lifecycleMappingMetadata>
  223. <pluginExecutions>
  224. <pluginExecution>
  225. <pluginExecutionFilter>
  226. <groupId>org.apache.maven.plugins</groupId>
  227. <artifactId>maven-dependency-plugin</artifactId>
  228. <versionRange>${maven-dependency-plugin.version}</versionRange>
  229. <goals>
  230. <goal>copy-dependencies</goal>
  231. </goals>
  232. </pluginExecutionFilter>
  233. <action>
  234. <ignore />
  235. </action>
  236. </pluginExecution>
  237. </pluginExecutions>
  238. </lifecycleMappingMetadata>
  239. </configuration>
  240. </plugin>
  241. <!-- Docker 插件 https://github.com/fabric8io/docker-maven-plugin -->
  242. <plugin>
  243. <groupId>io.fabric8</groupId>
  244. <artifactId>docker-maven-plugin</artifactId>
  245. <version>0.39.1</version>
  246. <configuration>
  247. <dockerHost>${docker.dockerHost}</dockerHost>
  248. <verbose>true</verbose>
  249. <images>
  250. <image>
  251. <name>${docker.imageName}</name>
  252. <alias>${project.artifactId}</alias>
  253. <build>
  254. <dockerFile>${project.basedir}/bin/docker/Dockerfile</dockerFile>
  255. <assembly>
  256. <descriptorRef>artifact</descriptorRef>
  257. </assembly>
  258. </build>
  259. <run>
  260. <ports>
  261. <port>${docker.run.port}</port>
  262. </ports>
  263. <network>
  264. <mode>host</mode>
  265. </network>
  266. </run>
  267. </image>
  268. </images>
  269. </configuration>
  270. </plugin>
  271. </plugins>
  272. </pluginManagement>
  273. <!-- 资源文件配置 -->
  274. <resources>
  275. <resource>
  276. <directory>src/main/java</directory>
  277. <excludes>
  278. <exclude>**/*.java</exclude>
  279. </excludes>
  280. </resource>
  281. <resource>
  282. <directory>src/main/resources</directory>
  283. <excludes>
  284. <exclude>rebel.xml</exclude>
  285. </excludes>
  286. </resource>
  287. </resources>
  288. </build>
  289. <developers>
  290. <developer>
  291. <id>thinkgem</id>
  292. <name>WangZhen</name>
  293. <email>thinkgem at 163.com</email>
  294. <roles><role>Project lead</role></roles>
  295. <timezone>+8</timezone>
  296. </developer>
  297. </developers>
  298. <organization>
  299. <name>JeeSite</name>
  300. <url>http://jeesite.com</url>
  301. </organization>
  302. <repositories>
  303. <repository>
  304. <id>aliyun-repos</id>
  305. <url>https://maven.aliyun.com/repository/public</url>
  306. <releases><enabled>true</enabled></releases>
  307. <snapshots><enabled>false</enabled></snapshots>
  308. </repository>
  309. <repository>
  310. <id>jeesite-repos</id>
  311. <url>http://maven.jeesite.net/repository/maven-public</url>
  312. </repository>
  313. </repositories>
  314. <pluginRepositories>
  315. <pluginRepository>
  316. <id>aliyun-repos</id>
  317. <url>https://maven.aliyun.com/repository/public</url>
  318. <releases><enabled>true</enabled></releases>
  319. <snapshots><enabled>false</enabled></snapshots>
  320. </pluginRepository>
  321. <pluginRepository>
  322. <id>jeesite-repos</id>
  323. <url>http://maven.jeesite.net/repository/maven-public</url>
  324. </pluginRepository>
  325. </pluginRepositories>
  326. <profiles>
  327. <profile>
  328. <id>javadoc</id>
  329. <build>
  330. <plugins>
  331. <plugin>
  332. <groupId>org.apache.maven.plugins</groupId>
  333. <artifactId>maven-javadoc-plugin</artifactId>
  334. </plugin>
  335. </plugins>
  336. </build>
  337. </profile>
  338. <profile>
  339. <id>package</id>
  340. <build>
  341. <plugins>
  342. <plugin>
  343. <groupId>com.jeesite.maven</groupId>
  344. <artifactId>compressor-maven-plugin</artifactId>
  345. </plugin>
  346. </plugins>
  347. </build>
  348. </profile>
  349. <profile>
  350. <id>deploy</id>
  351. <build>
  352. <plugins>
  353. <plugin>
  354. <groupId>com.jeesite.maven</groupId>
  355. <artifactId>compressor-maven-plugin</artifactId>
  356. </plugin>
  357. </plugins>
  358. </build>
  359. <distributionManagement>
  360. <snapshotRepository>
  361. <id>jeesite-repos-s</id>
  362. <url>http://maven.jeesite.net/repository/maven-snapshots</url>
  363. </snapshotRepository>
  364. </distributionManagement>
  365. </profile>
  366. </profiles>
  367. </project>