pom.xml 7.4 KB

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