pom.xml 5.6 KB

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