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.
 
 
 
 
 
 

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