pom.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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>net.mingsoft</groupId>
  7. <artifactId>ms-pom</artifactId>
  8. <version>2.0.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <groupId>net.mingsoft</groupId>
  12. <artifactId>ms-mcms</artifactId>
  13. <version>5.2-SNAPSHOT</version>
  14. <name>ms-mcms</name>
  15. <!-- 打包jar包 -->
  16. <packaging>jar</packaging>
  17. <!-- 打包war包 -->
  18. <!-- <packaging>war</packaging> -->
  19. <properties>
  20. <java.version>1.8</java.version>
  21. </properties>
  22. <repositories>
  23. <repository>
  24. <id>alimaven</id>
  25. <name>aliyun maven</name>
  26. <url>https://maven.aliyun.com/nexus/content/groups/public/</url>
  27. <releases>
  28. <enabled>true</enabled>
  29. </releases>
  30. <snapshots>
  31. <enabled>true</enabled>
  32. </snapshots>
  33. </repository>
  34. </repositories>
  35. <dependencies>
  36. <dependency>
  37. <groupId>net.mingsoft</groupId>
  38. <artifactId>ms-mpeople</artifactId>
  39. </dependency>
  40. <!-- 此部分是铭飞平台MStroe的客户端(MStore不在铭飞开源产品范围),如果不需要使用MStore可以删除掉 -->
  41. <dependency>
  42. <groupId>net.mingsoft</groupId>
  43. <artifactId>store-client</artifactId>
  44. <version>5.1</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter</artifactId>
  49. <version>2.2.2.RELEASE</version>
  50. <exclusions>
  51. <exclusion>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-logging</artifactId>
  54. </exclusion>
  55. </exclusions>
  56. </dependency>
  57. </dependencies>
  58. <build>
  59. <finalName>ms-mcms</finalName>
  60. <plugins>
  61. <plugin>
  62. <groupId>org.apache.maven.plugins</groupId>
  63. <artifactId>maven-jar-plugin</artifactId>
  64. <version>3.1.2</version>
  65. <configuration>
  66. <excludes>
  67. <exclude>**/static/plugins/</exclude>
  68. <exclude>**/static/skin/</exclude>
  69. <exclude>**/*.yml</exclude>
  70. <exclude>**/Dockerfile</exclude>
  71. <exclude>**/ehcache.xml</exclude>
  72. <exclude>**/upgrade/</exclude>
  73. <exclude>**/MSApplication.*</exclude>
  74. <exclude>**/MSServletInitializer.*</exclude>
  75. </excludes>
  76. </configuration>
  77. </plugin>
  78. <plugin>
  79. <groupId>org.apache.maven.plugins</groupId>
  80. <artifactId>maven-source-plugin</artifactId>
  81. <version>2.2.1</version>
  82. <configuration>
  83. <excludes>
  84. <exclude>**/static/plugins/</exclude>
  85. <exclude>**/static/skin/</exclude>
  86. <exclude>**/*.yml</exclude>
  87. <exclude>**/Dockerfile</exclude>
  88. <exclude>**/ehcache.xml</exclude>
  89. <exclude>**/upgrade/</exclude>
  90. <exclude>**/config/</exclude>
  91. <exclude>**/MSApplication.java</exclude>
  92. <exclude>**/MSServletInitializer.java</exclude>
  93. </excludes>
  94. </configuration>
  95. <executions>
  96. <execution>
  97. <id>attach-sources</id>
  98. <goals>
  99. <goal>jar-no-fork</goal>
  100. </goals>
  101. </execution>
  102. </executions>
  103. </plugin>
  104. <plugin>
  105. <groupId>org.apache.maven.plugins</groupId>
  106. <artifactId>maven-javadoc-plugin</artifactId>
  107. <version>2.9.1</version>
  108. <configuration>
  109. <charset>UTF-8</charset>
  110. <encoding>UTF-8</encoding>
  111. <docencoding>UTF-8</docencoding>
  112. <javadocExecutable>${java.home}/../bin/javadoc</javadocExecutable>
  113. <additionalparam>-Xdoclint:none</additionalparam>
  114. </configuration>
  115. <executions>
  116. <execution>
  117. <id>attach-javadocs</id>
  118. <goals>
  119. <goal>jar</goal>
  120. </goals>
  121. </execution>
  122. </executions>
  123. </plugin>
  124. <plugin>
  125. <groupId>org.apache.maven.plugins</groupId>
  126. <artifactId>maven-compiler-plugin</artifactId>
  127. <version>3.1</version>
  128. <configuration>
  129. <source>${java.version}</source>
  130. <target>${java.version}</target>
  131. <encoding>${project.build.sourceEncoding}</encoding>
  132. <showDeprecation>true</showDeprecation>
  133. <showWarnings>true</showWarnings>
  134. <compilerArguments>
  135. <verbose />
  136. <bootclasspath>${java.home}/lib/rt.jar${path.separator}${java.home}/lib/jce.jar</bootclasspath>
  137. </compilerArguments>
  138. </configuration>
  139. <dependencies>
  140. <dependency>
  141. <groupId>org.codehaus.plexus</groupId>
  142. <artifactId>plexus-compiler-eclipse</artifactId>
  143. <version>2.1</version>
  144. </dependency>
  145. </dependencies>
  146. </plugin>
  147. <plugin>
  148. <groupId>org.apache.maven.plugins</groupId>
  149. <artifactId>maven-release-plugin</artifactId>
  150. <configuration>
  151. <arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
  152. </configuration>
  153. </plugin>
  154. </plugins>
  155. <resources>
  156. <resource>
  157. <directory>src/main/webapp</directory>
  158. <excludes>
  159. <!--打包生产 -->
  160. <exclude>static/</exclude>
  161. <exclude>html/</exclude>
  162. <exclude>upload/</exclude>
  163. <exclude>template/</exclude>
  164. </excludes>
  165. </resource>
  166. <resource>
  167. <directory>src/main/resources</directory>
  168. </resource>
  169. <resource>
  170. <directory>src/main/java</directory>
  171. <excludes>
  172. <exclude>**/*.java</exclude>
  173. </excludes>
  174. </resource>
  175. </resources>
  176. <defaultGoal>compile</defaultGoal>
  177. </build>
  178. </project>