pom.xml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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. </dependencies>
  64. <build>
  65. <plugins>
  66. <!-- 在maven生命周期validate阶段生成timestamp -->
  67. <plugin>
  68. <groupId>org.codehaus.mojo</groupId>
  69. <artifactId>buildnumber-maven-plugin</artifactId>
  70. <version>1.3</version>
  71. <executions>
  72. <execution>
  73. <phase>validate</phase>
  74. <goals>
  75. <goal>create-timestamp</goal>
  76. </goals>
  77. </execution>
  78. </executions>
  79. <configuration>
  80. <format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
  81. <items>
  82. <item>timestamp</item>
  83. </items>
  84. </configuration>
  85. </plugin>
  86. <plugin>
  87. <groupId>org.apache.maven.plugins</groupId>
  88. <artifactId>maven-compiler-plugin</artifactId>
  89. <configuration>
  90. <encoding>${project.build.sourceEncoding}</encoding>
  91. <source>1.7</source>
  92. <target>1.7</target>
  93. </configuration>
  94. </plugin>
  95. <plugin>
  96. <artifactId>maven-resources-plugin</artifactId>
  97. <executions>
  98. <execution>
  99. <id>copy-resources</id>
  100. <phase>prepare-package</phase>
  101. <goals>
  102. <goal>copy-resources</goal>
  103. </goals>
  104. <configuration>
  105. <outputDirectory>${project.build.directory}/minify</outputDirectory>
  106. <overwrite>false</overwrite>
  107. <resources>
  108. <resource>
  109. <directory>${basedir}/src/main/webapp</directory>
  110. </resource>
  111. </resources>
  112. </configuration>
  113. </execution>
  114. </executions>
  115. </plugin>
  116. <plugin>
  117. <groupId>com.uas.plugins</groupId>
  118. <artifactId>static-maven-plugin</artifactId>
  119. <version>0.0.2-SNAPSHOT</version>
  120. <!-- 静态资源分离 -->
  121. <executions>
  122. <execution>
  123. <id>default-static</id>
  124. <phase>prepare-package</phase>
  125. <configuration>
  126. <staticUrl>static</staticUrl>
  127. <webappDir>${project.build.directory}/minify</webappDir>
  128. <sourceDir>/</sourceDir>
  129. <targetDir>${project.build.directory}/statics</targetDir>
  130. <staticDir>/</staticDir>
  131. <sourceIncludes>
  132. <sourceInclude>resources/js/**/*.js</sourceInclude>
  133. <sourceInclude>resources/app/**/*.js</sourceInclude>
  134. <sourceInclude>WEB-INF/views/**/*.html</sourceInclude>
  135. </sourceIncludes>
  136. <!-- http://static.ubtoc.com/css/index.css?_v=1450321871828 -->
  137. <versionSuffix>
  138. <suffix>?_v=${timestamp}</suffix>
  139. <exclude>**/lib/**/*</exclude>
  140. </versionSuffix>
  141. </configuration>
  142. <goals>
  143. <goal>static</goal>
  144. </goals>
  145. </execution>
  146. </executions>
  147. </plugin>
  148. <plugin>
  149. <groupId>org.apache.maven.plugins</groupId>
  150. <artifactId>maven-war-plugin</artifactId>
  151. <configuration>
  152. <webResources>
  153. <resource>
  154. <directory>${project.build.directory}/statics</directory>
  155. </resource>
  156. <resource>
  157. <directory>${project.build.directory}/minify</directory>
  158. </resource>
  159. </webResources>
  160. </configuration>
  161. </plugin>
  162. <plugin>
  163. <groupId>org.springframework.boot</groupId>
  164. <artifactId>spring-boot-maven-plugin</artifactId>
  165. </plugin>
  166. </plugins>
  167. <pluginManagement>
  168. <plugins>
  169. <plugin>
  170. <groupId>org.eclipse.m2e</groupId>
  171. <artifactId>lifecycle-mapping</artifactId>
  172. <version>1.0.0</version>
  173. <configuration>
  174. <lifecycleMappingMetadata>
  175. <pluginExecutions>
  176. <pluginExecution>
  177. <pluginExecutionFilter>
  178. <groupId>
  179. org.codehaus.mojo
  180. </groupId>
  181. <artifactId>
  182. buildnumber-maven-plugin
  183. </artifactId>
  184. <versionRange>
  185. [1.3,)
  186. </versionRange>
  187. <goals>
  188. <goal>
  189. create-timestamp
  190. </goal>
  191. </goals>
  192. </pluginExecutionFilter>
  193. <action>
  194. <ignore></ignore>
  195. </action>
  196. </pluginExecution>
  197. </pluginExecutions>
  198. </lifecycleMappingMetadata>
  199. </configuration>
  200. </plugin>
  201. </plugins>
  202. </pluginManagement>
  203. </build>
  204. </project>