pom.xml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <?xml version="1.0"?>
  2. <project
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
  4. xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.uas.kanban</groupId>
  8. <artifactId>kanban-parent</artifactId>
  9. <version>0.0.1-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>kanban-console</artifactId>
  12. <packaging>war</packaging>
  13. <dependencies>
  14. <dependency>
  15. <groupId>org.springframework.boot</groupId>
  16. <artifactId>spring-boot-starter-actuator</artifactId>
  17. </dependency>
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-starter-web</artifactId>
  21. </dependency>
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-security</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework</groupId>
  28. <artifactId>spring-tx</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.mongodb</groupId>
  32. <artifactId>mongo-java-driver</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>me.chyxion</groupId>
  36. <artifactId>newbie-jdbc</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>com.oracle</groupId>
  40. <artifactId>ojdbc6</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.alibaba</groupId>
  44. <artifactId>druid</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.uas.kanban</groupId>
  48. <artifactId>kanban-auth</artifactId>
  49. <version>${kanban.auth.version}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>dom4j</groupId>
  53. <artifactId>dom4j</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>jaxen</groupId>
  57. <artifactId>jaxen</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>de.odysseus.staxon</groupId>
  61. <artifactId>staxon</artifactId>
  62. </dependency>
  63. <!-- Redis session -->
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-data-redis</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.session</groupId>
  70. <artifactId>spring-session</artifactId>
  71. </dependency>
  72. </dependencies>
  73. <build>
  74. <plugins>
  75. <!-- 在maven生命周期validate阶段生成timestamp -->
  76. <plugin>
  77. <groupId>org.codehaus.mojo</groupId>
  78. <artifactId>buildnumber-maven-plugin</artifactId>
  79. <version>1.3</version>
  80. <executions>
  81. <execution>
  82. <phase>validate</phase>
  83. <goals>
  84. <goal>create-timestamp</goal>
  85. </goals>
  86. </execution>
  87. </executions>
  88. <configuration>
  89. <format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
  90. <items>
  91. <item>timestamp</item>
  92. </items>
  93. </configuration>
  94. </plugin>
  95. <plugin>
  96. <groupId>org.apache.maven.plugins</groupId>
  97. <artifactId>maven-compiler-plugin</artifactId>
  98. <configuration>
  99. <encoding>${project.build.sourceEncoding}</encoding>
  100. <source>1.7</source>
  101. <target>1.7</target>
  102. </configuration>
  103. </plugin>
  104. <plugin>
  105. <artifactId>maven-resources-plugin</artifactId>
  106. <executions>
  107. <execution>
  108. <id>copy-resources</id>
  109. <phase>prepare-package</phase>
  110. <goals>
  111. <goal>copy-resources</goal>
  112. </goals>
  113. <configuration>
  114. <outputDirectory>${project.build.directory}/minify</outputDirectory>
  115. <overwrite>false</overwrite>
  116. <resources>
  117. <resource>
  118. <directory>${basedir}/src/main/webapp</directory>
  119. </resource>
  120. </resources>
  121. </configuration>
  122. </execution>
  123. </executions>
  124. </plugin>
  125. <plugin>
  126. <groupId>com.uas.plugins</groupId>
  127. <artifactId>static-maven-plugin</artifactId>
  128. <version>0.0.2-SNAPSHOT</version>
  129. <!-- 静态资源分离 -->
  130. <executions>
  131. <execution>
  132. <id>default-static</id>
  133. <phase>prepare-package</phase>
  134. <configuration>
  135. <staticUrl>static</staticUrl>
  136. <webappDir>${project.build.directory}/minify</webappDir>
  137. <sourceDir>/</sourceDir>
  138. <targetDir>${project.build.directory}/statics</targetDir>
  139. <staticDir>/</staticDir>
  140. <sourceIncludes>
  141. <sourceInclude>resources/js/**/*.js</sourceInclude>
  142. <sourceInclude>resources/app/**/*.js</sourceInclude>
  143. <sourceInclude>WEB-INF/views/**/*.html</sourceInclude>
  144. </sourceIncludes>
  145. <!-- http://static.ubtoc.com/css/index.css?_v=1450321871828 -->
  146. <versionSuffix>
  147. <suffix>?_v=${timestamp}</suffix>
  148. <exclude>**/lib/**/*</exclude>
  149. </versionSuffix>
  150. </configuration>
  151. <goals>
  152. <goal>static</goal>
  153. </goals>
  154. </execution>
  155. </executions>
  156. </plugin>
  157. <plugin>
  158. <groupId>org.apache.maven.plugins</groupId>
  159. <artifactId>maven-war-plugin</artifactId>
  160. <configuration>
  161. <webResources>
  162. <resource>
  163. <directory>${project.build.directory}/statics</directory>
  164. </resource>
  165. <resource>
  166. <directory>${project.build.directory}/minify</directory>
  167. </resource>
  168. </webResources>
  169. </configuration>
  170. </plugin>
  171. <plugin>
  172. <groupId>org.springframework.boot</groupId>
  173. <artifactId>spring-boot-maven-plugin</artifactId>
  174. </plugin>
  175. </plugins>
  176. <pluginManagement>
  177. <plugins>
  178. <plugin>
  179. <groupId>org.eclipse.m2e</groupId>
  180. <artifactId>lifecycle-mapping</artifactId>
  181. <version>1.0.0</version>
  182. <configuration>
  183. <lifecycleMappingMetadata>
  184. <pluginExecutions>
  185. <pluginExecution>
  186. <pluginExecutionFilter>
  187. <groupId>
  188. org.codehaus.mojo
  189. </groupId>
  190. <artifactId>
  191. buildnumber-maven-plugin
  192. </artifactId>
  193. <versionRange>
  194. [1.3,)
  195. </versionRange>
  196. <goals>
  197. <goal>
  198. create-timestamp
  199. </goal>
  200. </goals>
  201. </pluginExecutionFilter>
  202. <action>
  203. <ignore></ignore>
  204. </action>
  205. </pluginExecution>
  206. </pluginExecutions>
  207. </lifecycleMappingMetadata>
  208. </configuration>
  209. </plugin>
  210. </plugins>
  211. </pluginManagement>
  212. </build>
  213. </project>