pom.xml 5.4 KB

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