pom.xml 5.0 KB

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