pom.xml 6.9 KB

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