pom.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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-ad</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>net.mingsoft</groupId>
  43. <artifactId>ms-clean</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>net.mingsoft</groupId>
  47. <artifactId>ms-mattention</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>net.mingsoft</groupId>
  51. <artifactId>ms-mcomment</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>net.mingsoft</groupId>
  55. <artifactId>ms-mpay</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>net.mingsoft</groupId>
  59. <artifactId>ms-msend</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>net.mingsoft</groupId>
  63. <artifactId>ms-mpeople</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. </dependencies>
  79. <build>
  80. <finalName>ms-mcms</finalName>
  81. <plugins>
  82. <plugin>
  83. <groupId>org.apache.maven.plugins</groupId>
  84. <artifactId>maven-jar-plugin</artifactId>
  85. <version>3.1.2</version>
  86. <configuration>
  87. <excludes>
  88. <exclude>**/static/plugins/</exclude>
  89. <exclude>**/static/skin/</exclude>
  90. <exclude>**/*.yml</exclude>
  91. <exclude>**/Dockerfile</exclude>
  92. <exclude>**/ehcache.xml</exclude>
  93. <exclude>**/upgrade/</exclude>
  94. <exclude>**/MSApplication.*</exclude>
  95. <exclude>**/MSServletInitializer.*</exclude>
  96. </excludes>
  97. </configuration>
  98. </plugin>
  99. <plugin>
  100. <groupId>org.apache.maven.plugins</groupId>
  101. <artifactId>maven-source-plugin</artifactId>
  102. <version>2.2.1</version>
  103. <configuration>
  104. <excludes>
  105. <exclude>**/static/plugins/</exclude>
  106. <exclude>**/static/skin/</exclude>
  107. <exclude>**/*.yml</exclude>
  108. <exclude>**/Dockerfile</exclude>
  109. <exclude>**/ehcache.xml</exclude>
  110. <exclude>**/upgrade/</exclude>
  111. <exclude>**/config/</exclude>
  112. <exclude>**/MSApplication.java</exclude>
  113. <exclude>**/MSServletInitializer.java</exclude>
  114. </excludes>
  115. </configuration>
  116. <executions>
  117. <execution>
  118. <id>attach-sources</id>
  119. <goals>
  120. <goal>jar-no-fork</goal>
  121. </goals>
  122. </execution>
  123. </executions>
  124. </plugin>
  125. <plugin>
  126. <groupId>org.apache.maven.plugins</groupId>
  127. <artifactId>maven-javadoc-plugin</artifactId>
  128. <version>2.9.1</version>
  129. <configuration>
  130. <charset>UTF-8</charset>
  131. <encoding>UTF-8</encoding>
  132. <docencoding>UTF-8</docencoding>
  133. <javadocExecutable>${java.home}/../bin/javadoc</javadocExecutable>
  134. <additionalparam>-Xdoclint:none</additionalparam>
  135. </configuration>
  136. <executions>
  137. <execution>
  138. <id>attach-javadocs</id>
  139. <goals>
  140. <goal>jar</goal>
  141. </goals>
  142. </execution>
  143. </executions>
  144. </plugin>
  145. <plugin>
  146. <groupId>org.apache.maven.plugins</groupId>
  147. <artifactId>maven-compiler-plugin</artifactId>
  148. <version>3.1</version>
  149. <configuration>
  150. <source>${java.version}</source>
  151. <target>${java.version}</target>
  152. <encoding>${project.build.sourceEncoding}</encoding>
  153. <showDeprecation>true</showDeprecation>
  154. <showWarnings>true</showWarnings>
  155. <compilerArguments>
  156. <verbose />
  157. <bootclasspath>${java.home}/lib/rt.jar${path.separator}${java.home}/lib/jce.jar</bootclasspath>
  158. </compilerArguments>
  159. </configuration>
  160. <dependencies>
  161. <dependency>
  162. <groupId>org.codehaus.plexus</groupId>
  163. <artifactId>plexus-compiler-eclipse</artifactId>
  164. <version>2.1</version>
  165. </dependency>
  166. </dependencies>
  167. </plugin>
  168. <plugin>
  169. <groupId>org.apache.maven.plugins</groupId>
  170. <artifactId>maven-release-plugin</artifactId>
  171. <configuration>
  172. <arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
  173. </configuration>
  174. </plugin>
  175. <!-- 打包war包使用 -->
  176. <plugin>
  177. <groupId>org.apache.maven.plugins</groupId>
  178. <artifactId>maven-war-plugin</artifactId>
  179. <configuration>
  180. <warSourceExcludes>src/main/resources/**</warSourceExcludes>
  181. <warName>mcms</warName>
  182. </configuration>
  183. </plugin>
  184. </plugins>
  185. <resources>
  186. <resource>
  187. <directory>src/main/webapp</directory>
  188. <excludes>
  189. <!--打包生产 -->
  190. <exclude>static/</exclude>
  191. <exclude>html/</exclude>
  192. <exclude>upload/</exclude>
  193. <exclude>template/</exclude>
  194. </excludes>
  195. </resource>
  196. <resource>
  197. <directory>src/main/resources</directory>
  198. </resource>
  199. <resource>
  200. <directory>src/main/java</directory>
  201. <excludes>
  202. <exclude>**/*.java</exclude>
  203. </excludes>
  204. </resource>
  205. </resources>
  206. <defaultGoal>compile</defaultGoal>
  207. </build>
  208. </project>