You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

394 lines
12 KiB

  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.0.6.RELEASE</version>
  9. </parent>
  10. <groupId>com.jeesite</groupId>
  11. <artifactId>jeesite-parent</artifactId>
  12. <version>4.1.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.6</commons-io.version>
  20. <commons-fileupload.version>1.3.3</commons-fileupload.version>
  21. <commons-beanutils.version>1.9.3</commons-beanutils.version>
  22. <commons-text.version>1.3</commons-text.version>
  23. <ant.version>1.9.7</ant.version>
  24. <fst.version>2.57</fst.version>
  25. <json.version>20180130</json.version>
  26. <jsoup.version>1.11.3</jsoup.version>
  27. <commons-email.version>1.5</commons-email.version>
  28. <activation.version>1.1.1</activation.version>
  29. <UserAgentUtils.version>1.21</UserAgentUtils.version>
  30. <metadata-extractor.version>2.11.0</metadata-extractor.version>
  31. <thumbnailator.version>0.4.8</thumbnailator.version>
  32. <blade-patchca.version>1.1.0</blade-patchca.version>
  33. <jmimemagic.version>0.1.5</jmimemagic.version>
  34. <zxing.version>3.3.2</zxing.version>
  35. <poi.version>3.14</poi.version>
  36. <pinyin4j.version>2.5.1</pinyin4j.version>
  37. <!-- framework version setting -->
  38. <mybatis.version>3.4.6</mybatis.version>
  39. <mybatis-spring.version>1.3.2</mybatis-spring.version>
  40. <jsqlparser.version>1.1</jsqlparser.version>
  41. <druid.version>1.1.10</druid.version>
  42. <shiro.version>1.4.0</shiro.version>
  43. <j2cache.version>2.7.0-release</j2cache.version>
  44. <beetl.version>2.7-SNAPSHOT</beetl.version>
  45. <swagger.version>1.5.20</swagger.version>
  46. <!-- environment setting -->
  47. <java.version>1.8</java.version>
  48. <maven.test.skip>true</maven.test.skip>
  49. <eclipse-plugin-download-sources>false</eclipse-plugin-download-sources>
  50. <eclipse-plugin-download-javadocs>false</eclipse-plugin-download-javadocs>
  51. </properties>
  52. <dependencies>
  53. <!-- WEB begin -->
  54. <dependency>
  55. <groupId>javax.servlet</groupId>
  56. <artifactId>javax.servlet-api</artifactId>
  57. <scope>provided</scope>
  58. </dependency>
  59. <!-- WEB end -->
  60. </dependencies>
  61. <build>
  62. <plugins>
  63. <!-- Compiler 插件, 设定JDK版本 -->
  64. <plugin>
  65. <groupId>org.apache.maven.plugins</groupId>
  66. <artifactId>maven-compiler-plugin</artifactId>
  67. <configuration>
  68. <showWarnings>true</showWarnings>
  69. <!-- <compilerArguments> -->
  70. <!-- <verbose /> 输出有关编译器正在执行的操作的消息 -->
  71. <!-- <bootclasspath>${JAVA_HOME}\jre\lib\rt.jar;${JAVA_HOME}\jre\lib\jce.jar</bootclasspath> -->
  72. <!-- </compilerArguments> -->
  73. </configuration>
  74. </plugin>
  75. <!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 -->
  76. <plugin>
  77. <groupId>org.apache.maven.plugins</groupId>
  78. <artifactId>maven-jar-plugin</artifactId>
  79. <configuration>
  80. <encoding>${project.build.sourceEncoding}</encoding>
  81. <archive>
  82. <addMavenDescriptor>false</addMavenDescriptor>
  83. </archive>
  84. </configuration>
  85. <executions>
  86. <execution>
  87. <!-- <phase>prepare-package</phase>
  88. <goals>
  89. <goal>jar</goal>
  90. </goals> -->
  91. <configuration>
  92. <!-- <classesDirectory>${project.outputDirectory}</classesDirectory>
  93. <finalName>${finalName}</finalName>
  94. <outputDirectory>${project.build.directory}/${project.artifactId}/WEB-INF/lib</outputDirectory>
  95. <includes>
  96. <include>com/thinkgem/jeesite/**</include>
  97. </includes> -->
  98. <archive>
  99. <manifest>
  100. <!-- Add directory entries -->
  101. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  102. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  103. <addClasspath>true</addClasspath>
  104. </manifest>
  105. </archive>
  106. </configuration>
  107. </execution>
  108. </executions>
  109. </plugin>
  110. <!-- resource插件 -->
  111. <plugin>
  112. <groupId>org.apache.maven.plugins</groupId>
  113. <artifactId>maven-resources-plugin</artifactId>
  114. </plugin>
  115. <!-- install插件 -->
  116. <plugin>
  117. <groupId>org.apache.maven.plugins</groupId>
  118. <artifactId>maven-install-plugin</artifactId>
  119. </plugin>
  120. <!-- clean插件 -->
  121. <plugin>
  122. <groupId>org.apache.maven.plugins</groupId>
  123. <artifactId>maven-clean-plugin</artifactId>
  124. </plugin>
  125. <!-- ant插件 -->
  126. <plugin>
  127. <groupId>org.apache.maven.plugins</groupId>
  128. <artifactId>maven-antrun-plugin</artifactId>
  129. </plugin>
  130. <!-- dependency插件 -->
  131. <plugin>
  132. <groupId>org.apache.maven.plugins</groupId>
  133. <artifactId>maven-dependency-plugin</artifactId>
  134. </plugin>
  135. </plugins>
  136. <pluginManagement>
  137. <plugins>
  138. <!-- 打包插件, war包名称不带版本号 -->
  139. <plugin>
  140. <groupId>org.apache.maven.plugins</groupId>
  141. <artifactId>maven-war-plugin</artifactId>
  142. <configuration>
  143. <warSourceExcludes>
  144. WEB-INF/classes/*.lic,
  145. userfiles/**
  146. </warSourceExcludes>
  147. <webappDirectory>${project.build.directory}/${project.artifactId}</webappDirectory>
  148. <warName>${project.artifactId}</warName>
  149. <archive>
  150. <addMavenDescriptor>false</addMavenDescriptor>
  151. </archive>
  152. </configuration>
  153. </plugin>
  154. <!-- Eclipse 插件 -->
  155. <plugin>
  156. <groupId>org.apache.maven.plugins</groupId>
  157. <artifactId>maven-eclipse-plugin</artifactId>
  158. <configuration>
  159. <downloadSources>${eclipse-plugin-download-sources}</downloadSources>
  160. <downloadJavadocs>${eclipse-plugin-download-javadocs}</downloadJavadocs>
  161. <wtpversion>2.0</wtpversion>
  162. <jeeversion>6.0</jeeversion>
  163. <additionalConfig>
  164. <file>
  165. <name>.settings/org.eclipse.core.resources.prefs</name>
  166. <content>
  167. <![CDATA[eclipse.preferences.version=1${line.separator}encoding/<project>=${project.build.sourceEncoding}${line.separator}]]>
  168. </content>
  169. </file>
  170. </additionalConfig>
  171. <additionalProjectnatures>
  172. <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
  173. </additionalProjectnatures>
  174. </configuration>
  175. </plugin>
  176. <!-- Java Document Generate -->
  177. <plugin>
  178. <groupId>org.apache.maven.plugins</groupId>
  179. <artifactId>maven-javadoc-plugin</artifactId>
  180. <configuration>
  181. <aggregate>true</aggregate>
  182. </configuration>
  183. <executions>
  184. <execution>
  185. <phase>prepare-package</phase>
  186. <goals>
  187. <goal>jar</goal>
  188. </goals>
  189. <configuration>
  190. <additionalparam>-Xdoclint:none</additionalparam>
  191. </configuration>
  192. </execution>
  193. </executions>
  194. </plugin>
  195. <!-- YUI Compressor (CSS/JS压缩) -->
  196. <plugin>
  197. <groupId>net.alchim31.maven</groupId>
  198. <artifactId>yuicompressor-maven-plugin</artifactId>
  199. <version>1.5.1</version>
  200. <executions>
  201. <execution>
  202. <phase>prepare-package</phase>
  203. <goals>
  204. <goal>compress</goal>
  205. </goals>
  206. </execution>
  207. </executions>
  208. <configuration>
  209. <encoding>UTF-8</encoding>
  210. <jswarn>false</jswarn>
  211. <nosuffix>true</nosuffix>
  212. <linebreakpos>30000</linebreakpos>
  213. <force>true</force>
  214. <includes>
  215. <include>**/*.js</include>
  216. <include>**/*.css</include>
  217. </includes>
  218. <excludes>
  219. <exclude>**/*.min.js</exclude>
  220. <exclude>**/*.min.css</exclude>
  221. </excludes>
  222. <!-- <aggregations> -->
  223. <!-- <aggregation> -->
  224. <!-- <removeIncluded>true</removeIncluded> -->
  225. <!-- <insertNewLine>true</insertNewLine> -->
  226. <!-- <inputDir>${project.build.directory}/${project.build.finalName}</inputDir> -->
  227. <!-- <output>${project.build.directory}/${project.build.finalName}/app/js/app.pack.js</output> -->
  228. <!-- <includes> -->
  229. <!-- <include>app/js/app*.js</include> -->
  230. <!-- </includes> -->
  231. <!-- <excludes> -->
  232. <!-- <exclude>**/**min.js</exclude> -->
  233. <!-- </excludes> -->
  234. <!-- </aggregation> -->
  235. <!-- </aggregations> -->
  236. </configuration>
  237. </plugin>
  238. </plugins>
  239. </pluginManagement>
  240. <!-- 资源文件配置 -->
  241. <resources>
  242. <resource>
  243. <directory>src/main/java</directory>
  244. <excludes>
  245. <exclude>**/*.java</exclude>
  246. </excludes>
  247. </resource>
  248. <resource>
  249. <directory>src/main/resources</directory>
  250. </resource>
  251. </resources>
  252. </build>
  253. <developers>
  254. <developer>
  255. <id>thinkgem</id>
  256. <name>WangZhen</name>
  257. <email>thinkgem at 163.com</email>
  258. <roles><role>Project lead</role></roles>
  259. <timezone>+8</timezone>
  260. </developer>
  261. </developers>
  262. <organization>
  263. <name>JeeSite</name>
  264. <url>http://jeesite.com</url>
  265. </organization>
  266. <repositories>
  267. <repository>
  268. <id>aliyun-repos</id>
  269. <name>Aliyun Repository</name>
  270. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  271. <releases><enabled>true</enabled></releases>
  272. <snapshots><enabled>false</enabled></snapshots>
  273. </repository>
  274. <repository>
  275. <id>sonatype-repos</id>
  276. <name>Sonatype Repository</name>
  277. <url>https://oss.sonatype.org/content/groups/public</url>
  278. <releases><enabled>true</enabled></releases>
  279. <snapshots><enabled>false</enabled></snapshots>
  280. </repository>
  281. <repository>
  282. <id>sonatype-repos-s</id>
  283. <name>Sonatype Repository</name>
  284. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  285. <releases><enabled>false</enabled></releases>
  286. <snapshots><enabled>true</enabled></snapshots>
  287. </repository>
  288. </repositories>
  289. <pluginRepositories>
  290. <pluginRepository>
  291. <id>aliyun-repos</id>
  292. <name>Aliyun Repository</name>
  293. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  294. <releases><enabled>true</enabled></releases>
  295. <snapshots><enabled>false</enabled></snapshots>
  296. </pluginRepository>
  297. </pluginRepositories>
  298. <profiles>
  299. <!-- 打包项目 -->
  300. <profile>
  301. <id>javadoc</id>
  302. <build>
  303. <plugins>
  304. <!-- Java Document Generate -->
  305. <plugin>
  306. <groupId>org.apache.maven.plugins</groupId>
  307. <artifactId>maven-javadoc-plugin</artifactId>
  308. </plugin>
  309. </plugins>
  310. </build>
  311. </profile>
  312. <!-- 打包项目 -->
  313. <profile>
  314. <id>package</id>
  315. <build>
  316. <plugins>
  317. <!-- YUI Compressor (CSS/JS压缩) -->
  318. <plugin>
  319. <groupId>net.alchim31.maven</groupId>
  320. <artifactId>yuicompressor-maven-plugin</artifactId>
  321. </plugin>
  322. </plugins>
  323. </build>
  324. </profile>
  325. <!-- 部署项目 -->
  326. <profile>
  327. <id>deploy</id>
  328. <build>
  329. <plugins>
  330. <!-- YUI Compressor (CSS/JS压缩) -->
  331. <plugin>
  332. <groupId>net.alchim31.maven</groupId>
  333. <artifactId>yuicompressor-maven-plugin</artifactId>
  334. </plugin>
  335. </plugins>
  336. </build>
  337. <distributionManagement>
  338. <repository>
  339. <id>sonatype-repos</id>
  340. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
  341. </repository>
  342. <snapshotRepository>
  343. <id>sonatype-repos-s</id>
  344. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  345. </snapshotRepository>
  346. </distributionManagement>
  347. </profile>
  348. </profiles>
  349. </project>