pom.xml 9.0 KB

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