pom.xml 6.1 KB

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