pom.xml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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.8</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.17.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.13</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>net.mingsoft</groupId>
  51. <artifactId>ms-basic</artifactId>
  52. <version>2.1.13.2</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>net.mingsoft</groupId>
  56. <artifactId>ms-mdiy</artifactId>
  57. <version>2.1.13.1</version>
  58. </dependency>
  59. <!--store入口依赖(源码不开发),如果不需要MStore可以直接去掉依赖-->
  60. <dependency>
  61. <groupId>net.mingsoft</groupId>
  62. <artifactId>store-client</artifactId>
  63. <version>2.1.13</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.apache.logging.log4j</groupId>
  67. <artifactId>log4j-core</artifactId>
  68. <version>${log4j.version}</version>
  69. <exclusions>
  70. <exclusion>
  71. <artifactId>log4j-api</artifactId>
  72. <groupId>org.apache.logging.log4j</groupId>
  73. </exclusion>
  74. </exclusions>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.apache.logging.log4j</groupId>
  78. <artifactId>log4j-slf4j-impl</artifactId>
  79. <version>${log4j.version}</version>
  80. <exclusions>
  81. <exclusion>
  82. <artifactId>log4j-core</artifactId>
  83. <groupId>org.apache.logging.log4j</groupId>
  84. </exclusion>
  85. <exclusion>
  86. <artifactId>log4j-api</artifactId>
  87. <groupId>org.apache.logging.log4j</groupId>
  88. </exclusion>
  89. </exclusions>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.apache.logging.log4j</groupId>
  93. <artifactId>log4j-slf4j-impl</artifactId>
  94. <version>${log4j.version}</version>
  95. <exclusions>
  96. <exclusion>
  97. <artifactId>log4j-core</artifactId>
  98. <groupId>org.apache.logging.log4j</groupId>
  99. </exclusion>
  100. <exclusion>
  101. <artifactId>log4j-api</artifactId>
  102. <groupId>org.apache.logging.log4j</groupId>
  103. </exclusion>
  104. </exclusions>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.apache.logging.log4j</groupId>
  108. <artifactId>log4j-api</artifactId>
  109. <version>${log4j.version}</version>
  110. </dependency>
  111. </dependencies>
  112. <build>
  113. <finalName>${project.artifactId}</finalName>
  114. <resources>
  115. <resource>
  116. <directory>src/main/webapp</directory>
  117. <!--打包生产jar包推荐启用下面配置-->
  118. <!--打包生产war包不启用下面配置-->
  119. <excludes>
  120. <!-- 可以避免将静态资源打入jar包中,方便生产实时修改静态资源文件-->
  121. <!-- 打包生产建议并手动将static、html、upload、template复制到生产 -->
  122. <!--<exclude>static/</exclude>
  123. <exclude>html/</exclude>
  124. <exclude>upload/</exclude>
  125. <exclude>template/</exclude>-->
  126. <!-- 如果生产需要实时修改WEB-INF/下的页面可,启用这行并手动将项目中的WEB-INF目录复制到运行环境 -->
  127. <!--<exclude>WEB-INF/</exclude>-->
  128. </excludes>
  129. </resource>
  130. <resource>
  131. <directory>src/main/resources</directory>
  132. </resource>
  133. <resource>
  134. <directory>src/main/java</directory>
  135. <excludes>
  136. <exclude>**/*.java</exclude>
  137. </excludes>
  138. </resource>
  139. </resources>
  140. <plugins>
  141. <plugin>
  142. <groupId>org.springframework.boot</groupId>
  143. <artifactId>spring-boot-maven-plugin</artifactId>
  144. <configuration>
  145. <executable>true</executable>
  146. <fork>true</fork>
  147. </configuration>
  148. </plugin>
  149. <plugin>
  150. <groupId>org.apache.maven.plugins</groupId>
  151. <artifactId>maven-compiler-plugin</artifactId>
  152. <version>3.1</version>
  153. <configuration>
  154. <source>${java.version}</source>
  155. <target>${java.version}</target>
  156. <encoding>${project.build.sourceEncoding}</encoding>
  157. <showDeprecation>true</showDeprecation>
  158. <showWarnings>true</showWarnings>
  159. <compilerArguments>
  160. <verbose/>
  161. <bootclasspath>${java.home}/lib/rt.jar${path.separator}${java.home}/lib/jce.jar</bootclasspath>
  162. </compilerArguments>
  163. </configuration>
  164. <dependencies>
  165. <dependency>
  166. <groupId>org.codehaus.plexus</groupId>
  167. <artifactId>plexus-compiler-eclipse</artifactId>
  168. <version>2.1</version>
  169. </dependency>
  170. </dependencies>
  171. </plugin>
  172. <!-- 结合(resources》resource》excludes的配置使用 -->
  173. <!-- 打包出的结构 http://doc.mingsoft.net/server/huan-jing-pei-zhi/jarbu-shu.html#%E7%9B%AE%E5%BD%95%E7%BB%93%E6%9E%84-->
  174. <!-- 打包war包时,注释掉此插件-->
  175. <plugin>
  176. <artifactId>maven-assembly-plugin</artifactId>
  177. <version>3.1.1</version>
  178. <executions>
  179. <execution>
  180. <id>build-package</id>
  181. <phase>package</phase>
  182. <goals>
  183. <goal>single</goal>
  184. </goals>
  185. <configuration>
  186. <finalName>${project.artifactId}</finalName>
  187. <descriptors>
  188. <descriptor>assembly.xml</descriptor>
  189. </descriptors>
  190. </configuration>
  191. </execution>
  192. </executions>
  193. </plugin>
  194. </plugins>
  195. <defaultGoal>compile</defaultGoal>
  196. </build>
  197. </project>