pom.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>privatedomain-parent</artifactId>
  7. <groupId>com.shanpin</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>admin</artifactId>
  12. <packaging>jar</packaging>
  13. <name>admin</name>
  14. <version>1.0.0</version>
  15. <properties>
  16. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17. <maven.compiler.source>1.8</maven.compiler.source>
  18. <maven.compiler.target>1.8</maven.compiler.target>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-validation</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>com.shanpin</groupId>
  27. <artifactId>core</artifactId>
  28. <version>${version}</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-web</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-security</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-websocket</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.github.pagehelper</groupId>
  44. <artifactId>pagehelper-spring-boot-starter</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.alibaba</groupId>
  48. <artifactId>druid</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>commons-fileupload</groupId>
  52. <artifactId>commons-fileupload</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>mysql</groupId>
  56. <artifactId>mysql-connector-java</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.springframework.boot</groupId>
  60. <artifactId>spring-boot-starter-test</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>junit</groupId>
  64. <artifactId>junit</artifactId>
  65. <version>4.11</version>
  66. <scope>test</scope>
  67. </dependency>
  68. </dependencies>
  69. <build>
  70. <finalName>privatedomain-admin</finalName>
  71. <resources>
  72. <resource>
  73. <directory>src/main/java</directory>
  74. <includes>
  75. <include>**/*.xml</include>
  76. </includes>
  77. <filtering>true</filtering>
  78. </resource>
  79. <resource>
  80. <directory>src/main/resources</directory>
  81. <includes>
  82. <include>**/*.*</include>
  83. </includes>
  84. <filtering>true</filtering>
  85. </resource>
  86. </resources>
  87. <!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
  88. <plugins>
  89. <plugin>
  90. <groupId>org.springframework.boot</groupId>
  91. <artifactId>spring-boot-maven-plugin</artifactId>
  92. <configuration>
  93. <includeSystemScope>true</includeSystemScope>
  94. </configuration>
  95. </plugin>
  96. <!-- 打包的时候跳过测试用例 -->
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-surefire-plugin</artifactId>
  100. <version>2.18.1</version>
  101. <configuration>
  102. <skipTests>true</skipTests>
  103. </configuration>
  104. </plugin>
  105. <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
  106. <plugin>
  107. <artifactId>maven-clean-plugin</artifactId>
  108. <version>3.1.0</version>
  109. </plugin>
  110. <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
  111. <plugin>
  112. <artifactId>maven-resources-plugin</artifactId>
  113. <version>3.0.2</version>
  114. </plugin>
  115. <plugin>
  116. <artifactId>maven-compiler-plugin</artifactId>
  117. <version>3.8.0</version>
  118. </plugin>
  119. <plugin>
  120. <artifactId>maven-surefire-plugin</artifactId>
  121. <version>2.22.1</version>
  122. </plugin>
  123. <plugin>
  124. <artifactId>maven-jar-plugin</artifactId>
  125. <version>3.0.2</version>
  126. </plugin>
  127. <plugin>
  128. <artifactId>maven-install-plugin</artifactId>
  129. <version>2.5.2</version>
  130. </plugin>
  131. <plugin>
  132. <artifactId>maven-deploy-plugin</artifactId>
  133. <version>2.8.2</version>
  134. </plugin>
  135. <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
  136. <plugin>
  137. <artifactId>maven-site-plugin</artifactId>
  138. <version>3.7.1</version>
  139. </plugin>
  140. <plugin>
  141. <groupId>org.apache.maven.plugins</groupId>
  142. <artifactId>maven-resources-plugin</artifactId>
  143. <configuration>
  144. <encoding>UTF-8</encoding>
  145. <!-- 过滤后缀为pem、pfx的证书文件 -->
  146. <nonFilteredFileExtensions>
  147. <nonFilteredFileExtension>pem</nonFilteredFileExtension>
  148. <nonFilteredFileExtension>pfx</nonFilteredFileExtension>
  149. <nonFilteredFileExtension>p12</nonFilteredFileExtension>
  150. </nonFilteredFileExtensions>
  151. </configuration>
  152. </plugin>
  153. <plugin>
  154. <artifactId>maven-project-info-reports-plugin</artifactId>
  155. <version>3.0.0</version>
  156. </plugin>
  157. </plugins>
  158. </build>
  159. </project>