pom.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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.7</version>
  14. <name>ms-mcms</name>
  15. <!-- 打包war包 -->
  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.12</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>net.mingsoft</groupId>
  51. <artifactId>ms-basic</artifactId>
  52. <version>2.1.12</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>net.mingsoft</groupId>
  56. <artifactId>ms-mdiy</artifactId>
  57. <version>2.1.12</version>
  58. </dependency>
  59. <!--store入口依赖(源码不开发),如果不需要MStore可以直接去掉依赖-->
  60. <dependency>
  61. <groupId>net.mingsoft</groupId>
  62. <artifactId>store-client</artifactId>
  63. <version>2.1.12</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>ms-mcms</finalName>
  114. <resources>
  115. <resource>
  116. <directory>src/main/webapp</directory>
  117. <excludes>
  118. <!-- 打包生产并手动将static、html、upload、template复制到生产 -->
  119. <!--<exclude>static/</exclude>
  120. <exclude>html/</exclude>
  121. <exclude>upload/</exclude>
  122. <exclude>template/</exclude>-->
  123. <!-- 如果生产需要实时修改WEB-INF/下的页面可,启用这行并手动将项目中的WEB-INF目录复制到运行环境 -->
  124. <!--<exclude>WEB-INF/</exclude>-->
  125. </excludes>
  126. </resource>
  127. <resource>
  128. <directory>src/main/resources</directory>
  129. </resource>
  130. <resource>
  131. <directory>src/main/java</directory>
  132. <excludes>
  133. <exclude>**/*.java</exclude>
  134. </excludes>
  135. </resource>
  136. </resources>
  137. <plugins>
  138. <plugin>
  139. <groupId>org.springframework.boot</groupId>
  140. <artifactId>spring-boot-maven-plugin</artifactId>
  141. <configuration>
  142. <executable>true</executable>
  143. <fork>true</fork>
  144. </configuration>
  145. </plugin>
  146. <plugin>
  147. <groupId>org.apache.maven.plugins</groupId>
  148. <artifactId>maven-compiler-plugin</artifactId>
  149. <version>3.1</version>
  150. <configuration>
  151. <source>${java.version}</source>
  152. <target>${java.version}</target>
  153. <encoding>${project.build.sourceEncoding}</encoding>
  154. <showDeprecation>true</showDeprecation>
  155. <showWarnings>true</showWarnings>
  156. <compilerArguments>
  157. <verbose/>
  158. <bootclasspath>${java.home}/lib/rt.jar${path.separator}${java.home}/lib/jce.jar</bootclasspath>
  159. </compilerArguments>
  160. </configuration>
  161. <dependencies>
  162. <dependency>
  163. <groupId>org.codehaus.plexus</groupId>
  164. <artifactId>plexus-compiler-eclipse</artifactId>
  165. <version>2.1</version>
  166. </dependency>
  167. </dependencies>
  168. </plugin>
  169. <plugin>
  170. <artifactId>maven-assembly-plugin</artifactId>
  171. <version>3.1.1</version>
  172. <executions>
  173. <execution>
  174. <id>build-package</id>
  175. <phase>package</phase>
  176. <goals>
  177. <goal>single</goal>
  178. </goals>
  179. <configuration>
  180. <finalName>ms-mcms</finalName>
  181. <descriptors>
  182. <descriptor>src/main/scripts/assembly.xml</descriptor>
  183. </descriptors>
  184. </configuration>
  185. </execution>
  186. </executions>
  187. </plugin>
  188. </plugins>
  189. <defaultGoal>compile</defaultGoal>
  190. </build>
  191. </project>