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.
 
 
 
 
 
 

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