pom.xml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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>3.4.2</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <groupId>net.mingsoft</groupId>
  12. <artifactId>ms-mcms</artifactId>
  13. <version>6.0.1</version>
  14. <name>${project.groupId}:${project.artifactId}</name>
  15. <packaging>jar</packaging>
  16. <properties>
  17. <java.version>17</java.version>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>net.mingsoft</groupId>
  23. <artifactId>ms-base</artifactId>
  24. <version>3.0.2.1</version>
  25. </dependency>
  26. <dependency>
  27. <groupId>net.mingsoft</groupId>
  28. <artifactId>ms-basic</artifactId>
  29. <version>3.0.2</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>net.mingsoft</groupId>
  33. <artifactId>ms-mdiy</artifactId>
  34. <version>3.0.2</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>net.mingsoft</groupId>
  38. <artifactId>store-client</artifactId>
  39. <version>3.0.2</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>com.github.oshi</groupId>
  43. <artifactId>oshi-core</artifactId>
  44. <version>6.2.2</version>
  45. </dependency>
  46. </dependencies>
  47. <build>
  48. <finalName>${project.artifactId}</finalName>
  49. <resources>
  50. <resource>
  51. <directory>src/main/webapp</directory>
  52. <!--打包生产jar包推荐启用下面配置-->
  53. <!--打包生产war包不启用下面配置-->
  54. <excludes>
  55. <!-- 可以避免将静态资源打入jar包中,方便生产实时修改静态资源文件-->
  56. <!-- 打包生产建议并手动将static、html、upload、template复制到生产 -->
  57. <!--<exclude>static/</exclude>
  58. <exclude>html/</exclude>
  59. <exclude>upload/</exclude>
  60. <exclude>template/</exclude>-->
  61. <!-- 如果生产需要实时修改WEB-INF/下的页面可,启用这行并手动将项目中的WEB-INF目录复制到运行环境 -->
  62. <!-- <exclude>WEB-INF/</exclude> -->
  63. </excludes>
  64. </resource>
  65. <resource>
  66. <directory>src/main/resources</directory>
  67. </resource>
  68. <resource>
  69. <directory>src/main/java</directory>
  70. <excludes>
  71. <exclude>**/*.java</exclude>
  72. </excludes>
  73. </resource>
  74. </resources>
  75. <plugins>
  76. <plugin>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-maven-plugin</artifactId>
  79. <configuration>
  80. <mainClass>net.mingsoft.MSApplication</mainClass>
  81. <executable>true</executable>
  82. <includeSystemScope>true</includeSystemScope>
  83. </configuration>
  84. </plugin>
  85. <plugin>
  86. <groupId>org.apache.maven.plugins</groupId>
  87. <artifactId>maven-compiler-plugin</artifactId>
  88. <configuration>
  89. <source>${java.version}</source>
  90. <target>${java.version}</target>
  91. <encoding>${project.build.sourceEncoding}</encoding>
  92. <showDeprecation>true</showDeprecation>
  93. <showWarnings>true</showWarnings>
  94. </configuration>
  95. </plugin>
  96. <!-- 结合(resources》resource》excludes的配置使用 -->
  97. <!-- 打包出的结构 http://doc.mingsoft.net/server/huan-jing-pei-zhi/jarbu-shu.html#%E7%9B%AE%E5%BD%95%E7%BB%93%E6%9E%84-->
  98. <!-- 打包war包时,注释掉此插件-->
  99. <plugin>
  100. <artifactId>maven-assembly-plugin</artifactId>
  101. <version>3.1.1</version>
  102. <executions>
  103. <execution>
  104. <id>build-package</id>
  105. <phase>package</phase>
  106. <goals>
  107. <goal>single</goal>
  108. </goals>
  109. <configuration>
  110. <finalName>${project.artifactId}</finalName>
  111. <descriptors>
  112. <descriptor>assembly.xml</descriptor>
  113. </descriptors>
  114. </configuration>
  115. </execution>
  116. </executions>
  117. </plugin>
  118. </plugins>
  119. <defaultGoal>compile</defaultGoal>
  120. </build>
  121. </project>