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.
 
 
 
 
 
 

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