pom.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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>1.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.0.1-SNAPSHOT</version>
  14. <name>${project.groupId}:${project.artifactId}</name>
  15. <description>ms-mcms tools Library</description>
  16. <url>https://github.com/ming-soft/ms-mcms</url>
  17. <licenses>
  18. <license>
  19. <name>The MIT License (MIT)</name>
  20. <url>http://mit-license.org</url>
  21. </license>
  22. </licenses>
  23. <developers>
  24. <developer>
  25. <name>mingsoft develop group</name>
  26. <email>service@mingsoft.net</email>
  27. <organization>mingsoft</organization>
  28. <organizationUrl>http://www.mingsoft.net</organizationUrl>
  29. </developer>
  30. </developers>
  31. <scm>
  32. <connection>scm:git://github.com/ming-soft/ms-mcms.git</connection>
  33. <developerConnection>scm:git@github.com:ming-soft/ms-mcms.git</developerConnection>
  34. <url>https://github.com/ming-soft/ms-mcms</url>
  35. </scm>
  36. <distributionManagement>
  37. <snapshotRepository>
  38. <id>sonatype-nexus-snapshots</id>
  39. <name>Sonatype Nexus snapshot repository</name>
  40. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  41. </snapshotRepository>
  42. <repository>
  43. <id>sonatype-nexus-staging</id>
  44. <name>Sonatype Nexus release repository</name>
  45. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  46. </repository>
  47. </distributionManagement>
  48. <properties>
  49. <java.version>1.8</java.version>
  50. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  51. </properties>
  52. <repositories>
  53. <!--阿里云中央仓库-->
  54. <repository>
  55. <id>maven-ali</id>
  56. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  57. <releases>
  58. <enabled>true</enabled>
  59. </releases>
  60. <snapshots>
  61. <enabled>true</enabled>
  62. <updatePolicy>always</updatePolicy>
  63. <checksumPolicy>fail</checksumPolicy>
  64. </snapshots>
  65. </repository>
  66. </repositories>
  67. <dependencies>
  68. <!-- 如果使用的是mysql8.0需要使用8.0的驱动 -->
  69. <!-- <dependency>-->
  70. <!-- <groupId>mysql</groupId>-->
  71. <!-- <artifactId>mysql-connector-java</artifactId>-->
  72. <!-- <version>8.0.11</version>-->
  73. <!-- </dependency>-->
  74. <dependency>
  75. <groupId>net.mingsoft</groupId>
  76. <artifactId>ms-mpeople</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>net.mingsoft</groupId>
  80. <artifactId>ms-basic</artifactId>
  81. <version>1.0.27-SNAPSHOT</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>net.mingsoft</groupId>
  85. <artifactId>ms-upgrader</artifactId>
  86. <version>1.0.17</version>
  87. </dependency>
  88. </dependencies>
  89. <build>
  90. <resources>
  91. <resource>
  92. <directory>src/main/java</directory>
  93. </resource>
  94. <resource>
  95. <directory>src/main/webapp</directory>
  96. <excludes>
  97. <exclude>html/</exclude>
  98. <exclude>static/</exclude>
  99. <exclude>upload/</exclude>
  100. <exclude>templets/</exclude>
  101. </excludes>
  102. </resource>
  103. <resource>
  104. <directory>src/main/resources</directory>
  105. </resource>
  106. </resources>
  107. <plugins>
  108. <plugin>
  109. <groupId>org.apache.maven.plugins</groupId>
  110. <artifactId>maven-jar-plugin</artifactId>
  111. <version>2.6</version>
  112. <executions>
  113. <execution>
  114. <phase>package</phase>
  115. <goals>
  116. <goal>jar</goal>
  117. </goals>
  118. </execution>
  119. </executions>
  120. <configuration>
  121. <excludes>
  122. <!--注意这玩意从编译结果目录开始算目录结构 -->
  123. <exclude>**/static/plugins/</exclude>
  124. <exclude>**/static/skin/</exclude>
  125. <exclude>**/application*.yml</exclude>
  126. <exclude>**/Dockerfile</exclude>
  127. <exclude>**/ehcache.xml</exclude>
  128. <exclude>**/upgrade/</exclude>
  129. <exclude>**/*.java</exclude>
  130. <exclude>**/MSApplication.*</exclude>
  131. <exclude>**/MSServletInitializer.*</exclude>
  132. </excludes>
  133. </configuration>
  134. </plugin>
  135. <plugin>
  136. <groupId>org.apache.maven.plugins</groupId>
  137. <artifactId>maven-source-plugin</artifactId>
  138. <version>2.2.1</version>
  139. <configuration>
  140. <excludes>
  141. <exclude>**/static/plugins/</exclude>
  142. <exclude>**/static/skin/</exclude>
  143. <exclude>**/application*.yml</exclude>
  144. <exclude>**/Dockerfile</exclude>
  145. <exclude>**/ehcache.xml</exclude>
  146. <exclude>**/upgrade/</exclude>
  147. <exclude>**/config/</exclude>
  148. <exclude>**/MSApplication.java</exclude>
  149. <exclude>**/MSServletInitializer.java</exclude>
  150. </excludes>
  151. </configuration>
  152. <executions>
  153. <execution>
  154. <id>attach-sources</id>
  155. <goals>
  156. <goal>jar-no-fork</goal>
  157. </goals>
  158. </execution>
  159. </executions>
  160. </plugin>
  161. <plugin>
  162. <groupId>org.apache.maven.plugins</groupId>
  163. <artifactId>maven-compiler-plugin</artifactId>
  164. <version>3.1</version>
  165. <configuration>
  166. <source>${java.version}</source>
  167. <target>${java.version}</target>
  168. <encoding>${project.build.sourceEncoding}</encoding>
  169. <showDeprecation>true</showDeprecation>
  170. <showWarnings>true</showWarnings>
  171. </configuration>
  172. <dependencies>
  173. <dependency>
  174. <groupId>org.codehaus.plexus</groupId>
  175. <artifactId>plexus-compiler-eclipse</artifactId>
  176. <version>2.1</version>
  177. </dependency>
  178. </dependencies>
  179. </plugin>
  180. <plugin>
  181. <groupId>org.springframework.boot</groupId>
  182. <artifactId>spring-boot-maven-plugin</artifactId>
  183. </plugin>
  184. <plugin>
  185. <groupId>org.apache.maven.plugins</groupId>
  186. <artifactId>maven-javadoc-plugin</artifactId>
  187. <version>2.9.1</version>
  188. <configuration>
  189. <charset>UTF-8</charset>
  190. <encoding>UTF-8</encoding>
  191. <docencoding>UTF-8</docencoding>
  192. <javadocExecutable>${java.home}/../bin/javadoc</javadocExecutable>
  193. <additionalparam>-Xdoclint:none</additionalparam>
  194. </configuration>
  195. <executions>
  196. <execution>
  197. <id>attach-javadocs</id>
  198. <goals>
  199. <goal>jar</goal>
  200. </goals>
  201. </execution>
  202. </executions>
  203. </plugin>
  204. <plugin>
  205. <groupId>org.apache.maven.plugins</groupId>
  206. <artifactId>maven-release-plugin</artifactId>
  207. <configuration>
  208. <arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
  209. </configuration>
  210. </plugin>
  211. <plugin>
  212. <groupId>org.sonatype.plugins</groupId>
  213. <artifactId>nexus-staging-maven-plugin</artifactId>
  214. <version>1.6.7</version>
  215. <extensions>true</extensions>
  216. <configuration>
  217. <serverId>sonatype-nexus-staging</serverId>
  218. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  219. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  220. </configuration>
  221. </plugin>
  222. <plugin>
  223. <groupId>org.apache.maven.plugins</groupId>
  224. <artifactId>maven-gpg-plugin</artifactId>
  225. <version>1.5</version>
  226. <executions>
  227. <execution>
  228. <id>sign-artifacts</id>
  229. <phase>verify</phase>
  230. <goals>
  231. <goal>sign</goal>
  232. </goals>
  233. </execution>
  234. </executions>
  235. </plugin>
  236. </plugins>
  237. <defaultGoal>compile</defaultGoal>
  238. <finalName>ms-mcms</finalName>
  239. </build>
  240. </project>