pom.xml 5.8 KB

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