pom.xml 6.8 KB

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