pom.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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.29-SNAPSHOT</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>net.mingsoft</groupId>
  85. <artifactId>ms-mdiy</artifactId>
  86. <version>1.0.20-SNAPSHOT</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>net.mingsoft</groupId>
  90. <artifactId>ms-upgrader</artifactId>
  91. <version>1.0.17</version>
  92. </dependency>
  93. </dependencies>
  94. <build>
  95. <resources>
  96. <resource>
  97. <directory>src/main/java</directory>
  98. </resource>
  99. <resource>
  100. <directory>src/main/webapp</directory>
  101. <excludes>
  102. <exclude>html/</exclude>
  103. <exclude>static/</exclude>
  104. <exclude>upload/</exclude>
  105. <exclude>templets/</exclude>
  106. </excludes>
  107. </resource>
  108. <resource>
  109. <directory>src/main/resources</directory>
  110. </resource>
  111. </resources>
  112. <plugins>
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-jar-plugin</artifactId>
  116. <version>2.6</version>
  117. <executions>
  118. <execution>
  119. <phase>package</phase>
  120. <goals>
  121. <goal>jar</goal>
  122. </goals>
  123. </execution>
  124. </executions>
  125. <configuration>
  126. <excludes>
  127. <!--注意这玩意从编译结果目录开始算目录结构 -->
  128. <exclude>**/static/plugins/</exclude>
  129. <exclude>**/static/skin/</exclude>
  130. <exclude>**/application*.yml</exclude>
  131. <exclude>**/Dockerfile</exclude>
  132. <exclude>**/ehcache.xml</exclude>
  133. <exclude>**/upgrade/</exclude>
  134. <exclude>**/*.java</exclude>
  135. <exclude>**/MSApplication.*</exclude>
  136. <exclude>**/MSServletInitializer.*</exclude>
  137. </excludes>
  138. </configuration>
  139. </plugin>
  140. <plugin>
  141. <groupId>org.apache.maven.plugins</groupId>
  142. <artifactId>maven-source-plugin</artifactId>
  143. <version>2.2.1</version>
  144. <configuration>
  145. <excludes>
  146. <exclude>**/static/plugins/</exclude>
  147. <exclude>**/static/skin/</exclude>
  148. <exclude>**/application*.yml</exclude>
  149. <exclude>**/Dockerfile</exclude>
  150. <exclude>**/ehcache.xml</exclude>
  151. <exclude>**/upgrade/</exclude>
  152. <exclude>**/config/</exclude>
  153. <exclude>**/MSApplication.java</exclude>
  154. <exclude>**/MSServletInitializer.java</exclude>
  155. </excludes>
  156. </configuration>
  157. <executions>
  158. <execution>
  159. <id>attach-sources</id>
  160. <goals>
  161. <goal>jar-no-fork</goal>
  162. </goals>
  163. </execution>
  164. </executions>
  165. </plugin>
  166. <plugin>
  167. <groupId>org.apache.maven.plugins</groupId>
  168. <artifactId>maven-compiler-plugin</artifactId>
  169. <version>3.1</version>
  170. <configuration>
  171. <source>${java.version}</source>
  172. <target>${java.version}</target>
  173. <encoding>${project.build.sourceEncoding}</encoding>
  174. <showDeprecation>true</showDeprecation>
  175. <showWarnings>true</showWarnings>
  176. </configuration>
  177. <dependencies>
  178. <dependency>
  179. <groupId>org.codehaus.plexus</groupId>
  180. <artifactId>plexus-compiler-eclipse</artifactId>
  181. <version>2.1</version>
  182. </dependency>
  183. </dependencies>
  184. </plugin>
  185. <plugin>
  186. <groupId>org.springframework.boot</groupId>
  187. <artifactId>spring-boot-maven-plugin</artifactId>
  188. </plugin>
  189. <plugin>
  190. <groupId>org.apache.maven.plugins</groupId>
  191. <artifactId>maven-javadoc-plugin</artifactId>
  192. <version>2.9.1</version>
  193. <configuration>
  194. <charset>UTF-8</charset>
  195. <encoding>UTF-8</encoding>
  196. <docencoding>UTF-8</docencoding>
  197. <javadocExecutable>${java.home}/../bin/javadoc</javadocExecutable>
  198. <additionalparam>-Xdoclint:none</additionalparam>
  199. </configuration>
  200. <executions>
  201. <execution>
  202. <id>attach-javadocs</id>
  203. <goals>
  204. <goal>jar</goal>
  205. </goals>
  206. </execution>
  207. </executions>
  208. </plugin>
  209. <plugin>
  210. <groupId>org.apache.maven.plugins</groupId>
  211. <artifactId>maven-release-plugin</artifactId>
  212. <configuration>
  213. <arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
  214. </configuration>
  215. </plugin>
  216. <plugin>
  217. <groupId>org.sonatype.plugins</groupId>
  218. <artifactId>nexus-staging-maven-plugin</artifactId>
  219. <version>1.6.7</version>
  220. <extensions>true</extensions>
  221. <configuration>
  222. <serverId>sonatype-nexus-staging</serverId>
  223. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  224. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  225. </configuration>
  226. </plugin>
  227. <plugin>
  228. <groupId>org.apache.maven.plugins</groupId>
  229. <artifactId>maven-gpg-plugin</artifactId>
  230. <version>1.5</version>
  231. <executions>
  232. <execution>
  233. <id>sign-artifacts</id>
  234. <phase>verify</phase>
  235. <goals>
  236. <goal>sign</goal>
  237. </goals>
  238. </execution>
  239. </executions>
  240. </plugin>
  241. </plugins>
  242. <defaultGoal>compile</defaultGoal>
  243. <finalName>ms-mcms</finalName>
  244. </build>
  245. </project>