pom.xml 13 KB

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