pom.xml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  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.18-SNAPSHOT</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>com.github.stuxuhai</groupId>
  104. <artifactId>jpinyin</artifactId>
  105. <version>1.1.8</version>
  106. </dependency>
  107. </dependencies>
  108. <build>
  109. <resources>
  110. <resource>
  111. <directory>src/main/java</directory>
  112. </resource>
  113. <resource>
  114. <directory>src/main/webapp</directory>
  115. <excludes>
  116. <exclude>html/</exclude>
  117. <exclude>static/</exclude>
  118. <exclude>upload/</exclude>
  119. <exclude>templets/</exclude>
  120. </excludes>
  121. </resource>
  122. <resource>
  123. <directory>src/main/resources</directory>
  124. </resource>
  125. </resources>
  126. <plugins>
  127. <plugin>
  128. <groupId>org.apache.maven.plugins</groupId>
  129. <artifactId>maven-assembly-plugin</artifactId>
  130. <version>2.2-beta-5</version>
  131. <configuration>
  132. <appendAssemblyId>false</appendAssemblyId>
  133. <!-- 指定assembly配置文件路径 -->
  134. <descriptor>assembly-upgrade.xml</descriptor>
  135. </configuration>
  136. <executions>
  137. <execution>
  138. <!-- 在执行package打包时,执行assembly:single -->
  139. <phase>package</phase>
  140. <goals>
  141. <!-- 在执行assembly一次 -->
  142. <goal>single</goal>
  143. </goals>
  144. </execution>
  145. </executions>
  146. </plugin>
  147. <plugin>
  148. <groupId>org.apache.maven.plugins</groupId>
  149. <artifactId>maven-jar-plugin</artifactId>
  150. <version>2.6</version>
  151. <executions>
  152. <execution>
  153. <phase>package</phase>
  154. <goals>
  155. <goal>jar</goal>
  156. </goals>
  157. </execution>
  158. </executions>
  159. <configuration>
  160. <excludes>
  161. <!--注意这玩意从编译结果目录开始算目录结构 -->
  162. <exclude>**/static/plugins/</exclude>
  163. <exclude>**/static/skin/</exclude>
  164. <exclude>**/application*.yml</exclude>
  165. <exclude>**/Dockerfile</exclude>
  166. <exclude>**/ehcache.xml</exclude>
  167. <exclude>**/upgrade/</exclude>
  168. <exclude>**/*.java</exclude>
  169. <exclude>**/MSApplication.*</exclude>
  170. <exclude>**/MSServletInitializer.*</exclude>
  171. </excludes>
  172. </configuration>
  173. </plugin>
  174. <plugin>
  175. <groupId>org.apache.maven.plugins</groupId>
  176. <artifactId>maven-source-plugin</artifactId>
  177. <version>2.2.1</version>
  178. <configuration>
  179. <excludes>
  180. <exclude>**/static/plugins/</exclude>
  181. <exclude>**/static/skin/</exclude>
  182. <exclude>**/application*.yml</exclude>
  183. <exclude>**/Dockerfile</exclude>
  184. <exclude>**/ehcache.xml</exclude>
  185. <exclude>**/upgrade/</exclude>
  186. <exclude>**/config/</exclude>
  187. <exclude>**/MSApplication.java</exclude>
  188. <exclude>**/MSServletInitializer.java</exclude>
  189. </excludes>
  190. </configuration>
  191. <executions>
  192. <execution>
  193. <id>attach-sources</id>
  194. <goals>
  195. <goal>jar-no-fork</goal>
  196. </goals>
  197. </execution>
  198. </executions>
  199. </plugin>
  200. <plugin>
  201. <groupId>org.apache.maven.plugins</groupId>
  202. <artifactId>maven-compiler-plugin</artifactId>
  203. <version>3.1</version>
  204. <configuration>
  205. <source>${java.version}</source>
  206. <target>${java.version}</target>
  207. <encoding>${project.build.sourceEncoding}</encoding>
  208. <showDeprecation>true</showDeprecation>
  209. <showWarnings>true</showWarnings>
  210. </configuration>
  211. <dependencies>
  212. <dependency>
  213. <groupId>org.codehaus.plexus</groupId>
  214. <artifactId>plexus-compiler-eclipse</artifactId>
  215. <version>2.1</version>
  216. </dependency>
  217. </dependencies>
  218. </plugin>
  219. <plugin>
  220. <groupId>org.apache.maven.plugins</groupId>
  221. <artifactId>maven-javadoc-plugin</artifactId>
  222. <version>2.9.1</version>
  223. <configuration>
  224. <charset>UTF-8</charset>
  225. <encoding>UTF-8</encoding>
  226. <docencoding>UTF-8</docencoding>
  227. <javadocExecutable>${java.home}/../bin/javadoc</javadocExecutable>
  228. <additionalparam>-Xdoclint:none</additionalparam>
  229. </configuration>
  230. <executions>
  231. <execution>
  232. <id>attach-javadocs</id>
  233. <goals>
  234. <goal>jar</goal>
  235. </goals>
  236. </execution>
  237. </executions>
  238. </plugin>
  239. <plugin>
  240. <groupId>org.apache.maven.plugins</groupId>
  241. <artifactId>maven-release-plugin</artifactId>
  242. <configuration>
  243. <arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
  244. </configuration>
  245. </plugin>
  246. <plugin>
  247. <groupId>org.sonatype.plugins</groupId>
  248. <artifactId>nexus-staging-maven-plugin</artifactId>
  249. <version>1.6.7</version>
  250. <extensions>true</extensions>
  251. <configuration>
  252. <serverId>sonatype-nexus-staging</serverId>
  253. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  254. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  255. </configuration>
  256. </plugin>
  257. <plugin>
  258. <groupId>org.apache.maven.plugins</groupId>
  259. <artifactId>maven-gpg-plugin</artifactId>
  260. <version>1.5</version>
  261. <executions>
  262. <execution>
  263. <id>sign-artifacts</id>
  264. <phase>verify</phase>
  265. <goals>
  266. <goal>sign</goal>
  267. </goals>
  268. </execution>
  269. </executions>
  270. </plugin>
  271. </plugins>
  272. <defaultGoal>compile</defaultGoal>
  273. <finalName>ms-mcms</finalName>
  274. </build>
  275. </project>