pom.xml 6.3 KB

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