pom.xml 5.7 KB

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