pom.xml 6.3 KB

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