pom.xml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.3.12.RELEASE</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <groupId>net.mingsoft</groupId>
  12. <artifactId>ms-mcms</artifactId>
  13. <version>5.2.9</version>
  14. <name>${project.groupId}:${project.artifactId}</name>
  15. <!-- 打包war包,注意不启用(resources》resource》excludes的配置并注释掉maven-assembly-plugin 插件配置 -->
  16. <!--<packaging>war</packaging>-->
  17. <properties>
  18. <java.version>1.8</java.version>
  19. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  20. <log4j.version>2.18.0</log4j.version>
  21. </properties>
  22. <repositories>
  23. <repository>
  24. <id>central-repos</id>
  25. <name>Central Repository 2</name>
  26. <url>https://repo.maven.apache.org/maven2/</url>
  27. </repository>
  28. <!--阿里云仓库-->
  29. <!--
  30. <repository>
  31. <id>alimaven</id>
  32. <name>aliyun maven</name>
  33. <url>https://maven.aliyun.com/nexus/content/groups/public/</url>
  34. <releases>
  35. <enabled>true</enabled>
  36. </releases>
  37. <snapshots>
  38. <enabled>true</enabled>
  39. </snapshots>
  40. </repository>
  41. -->
  42. </repositories>
  43. <dependencies>
  44. <dependency>
  45. <groupId>net.mingsoft</groupId>
  46. <artifactId>ms-base</artifactId>
  47. <version>2.1.14</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>net.mingsoft</groupId>
  51. <artifactId>ms-basic</artifactId>
  52. <version>2.1.14</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>net.mingsoft</groupId>
  56. <artifactId>ms-mdiy</artifactId>
  57. <version>2.1.14</version>
  58. </dependency>
  59. <!--store入口依赖(源码不开发),如果不需要MStore可以直接去掉依赖-->
  60. <dependency>
  61. <groupId>net.mingsoft</groupId>
  62. <artifactId>store-client</artifactId>
  63. <version>2.1.14</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.github.oshi</groupId>
  67. <artifactId>oshi-core</artifactId>
  68. <version>6.2.2</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.apache.logging.log4j</groupId>
  72. <artifactId>log4j-core</artifactId>
  73. <version>${log4j.version}</version>
  74. <exclusions>
  75. <exclusion>
  76. <artifactId>log4j-api</artifactId>
  77. <groupId>org.apache.logging.log4j</groupId>
  78. </exclusion>
  79. </exclusions>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.apache.logging.log4j</groupId>
  83. <artifactId>log4j-slf4j-impl</artifactId>
  84. <version>${log4j.version}</version>
  85. <exclusions>
  86. <exclusion>
  87. <artifactId>log4j-core</artifactId>
  88. <groupId>org.apache.logging.log4j</groupId>
  89. </exclusion>
  90. <exclusion>
  91. <artifactId>log4j-api</artifactId>
  92. <groupId>org.apache.logging.log4j</groupId>
  93. </exclusion>
  94. </exclusions>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.apache.logging.log4j</groupId>
  98. <artifactId>log4j-slf4j-impl</artifactId>
  99. <version>${log4j.version}</version>
  100. <exclusions>
  101. <exclusion>
  102. <artifactId>log4j-core</artifactId>
  103. <groupId>org.apache.logging.log4j</groupId>
  104. </exclusion>
  105. <exclusion>
  106. <artifactId>log4j-api</artifactId>
  107. <groupId>org.apache.logging.log4j</groupId>
  108. </exclusion>
  109. </exclusions>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.apache.logging.log4j</groupId>
  113. <artifactId>log4j-api</artifactId>
  114. <version>${log4j.version}</version>
  115. </dependency>
  116. </dependencies>
  117. <build>
  118. <finalName>${project.artifactId}</finalName>
  119. <resources>
  120. <resource>
  121. <directory>src/main/webapp</directory>
  122. <!--打包生产jar包推荐启用下面配置-->
  123. <!--打包生产war包不启用下面配置-->
  124. <excludes>
  125. <!-- 可以避免将静态资源打入jar包中,方便生产实时修改静态资源文件-->
  126. <!-- 打包生产建议并手动将static、html、upload、template复制到生产 -->
  127. <!--<exclude>static/</exclude>
  128. <exclude>html/</exclude>
  129. <exclude>upload/</exclude>
  130. <exclude>template/</exclude>-->
  131. <!-- 如果生产需要实时修改WEB-INF/下的页面可,启用这行并手动将项目中的WEB-INF目录复制到运行环境 -->
  132. <!--<exclude>WEB-INF/</exclude>-->
  133. </excludes>
  134. </resource>
  135. <resource>
  136. <directory>src/main/resources</directory>
  137. </resource>
  138. <resource>
  139. <directory>src/main/java</directory>
  140. <excludes>
  141. <exclude>**/*.java</exclude>
  142. </excludes>
  143. </resource>
  144. </resources>
  145. <plugins>
  146. <plugin>
  147. <groupId>org.springframework.boot</groupId>
  148. <artifactId>spring-boot-maven-plugin</artifactId>
  149. <configuration>
  150. <executable>true</executable>
  151. <fork>true</fork>
  152. </configuration>
  153. </plugin>
  154. <plugin>
  155. <groupId>org.apache.maven.plugins</groupId>
  156. <artifactId>maven-compiler-plugin</artifactId>
  157. <version>3.1</version>
  158. <configuration>
  159. <source>${java.version}</source>
  160. <target>${java.version}</target>
  161. <encoding>${project.build.sourceEncoding}</encoding>
  162. <showDeprecation>true</showDeprecation>
  163. <showWarnings>true</showWarnings>
  164. <compilerArguments>
  165. <verbose/>
  166. <bootclasspath>${java.home}/lib/rt.jar${path.separator}${java.home}/lib/jce.jar</bootclasspath>
  167. </compilerArguments>
  168. </configuration>
  169. <dependencies>
  170. <dependency>
  171. <groupId>org.codehaus.plexus</groupId>
  172. <artifactId>plexus-compiler-eclipse</artifactId>
  173. <version>2.1</version>
  174. </dependency>
  175. </dependencies>
  176. </plugin>
  177. <!-- 结合(resources》resource》excludes的配置使用 -->
  178. <!-- 打包出的结构 http://doc.mingsoft.net/server/huan-jing-pei-zhi/jarbu-shu.html#%E7%9B%AE%E5%BD%95%E7%BB%93%E6%9E%84-->
  179. <!-- 打包war包时,注释掉此插件-->
  180. <plugin>
  181. <artifactId>maven-assembly-plugin</artifactId>
  182. <version>3.1.1</version>
  183. <executions>
  184. <execution>
  185. <id>build-package</id>
  186. <phase>package</phase>
  187. <goals>
  188. <goal>single</goal>
  189. </goals>
  190. <configuration>
  191. <finalName>${project.artifactId}</finalName>
  192. <descriptors>
  193. <descriptor>assembly.xml</descriptor>
  194. </descriptors>
  195. </configuration>
  196. </execution>
  197. </executions>
  198. </plugin>
  199. </plugins>
  200. <defaultGoal>compile</defaultGoal>
  201. </build>
  202. </project>