pom.xml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  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</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.0</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. <dependencies>
  54. <!-- 如果使用的是mysql8.0需要使用8.0的驱动 -->
  55. <!-- <dependency>-->
  56. <!-- <groupId>mysql</groupId>-->
  57. <!-- <artifactId>mysql-connector-java</artifactId>-->
  58. <!-- <version>8.0.11</version>-->
  59. <!-- </dependency>-->
  60. <dependency>
  61. <groupId>net.mingsoft</groupId>
  62. <artifactId>ms-mpeople</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>net.mingsoft</groupId>
  66. <artifactId>ms-basic</artifactId>
  67. <version>1.0.23</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>net.mingsoft</groupId>
  71. <artifactId>ms-upgrader</artifactId>
  72. </dependency>
  73. </dependencies>
  74. <build>
  75. <resources>
  76. <resource>
  77. <directory>src/main/java</directory>
  78. </resource>
  79. <resource>
  80. <directory>src/main/webapp</directory>
  81. <excludes>
  82. <exclude>html/</exclude>
  83. <exclude>static/</exclude>
  84. <exclude>upload/</exclude>
  85. <exclude>templets/</exclude>
  86. </excludes>
  87. </resource>
  88. <resource>
  89. <directory>src/main/resources</directory>
  90. </resource>
  91. </resources>
  92. <plugins>
  93. <plugin>
  94. <groupId>org.apache.maven.plugins</groupId>
  95. <artifactId>maven-jar-plugin</artifactId>
  96. <version>2.6</version>
  97. <executions>
  98. <execution>
  99. <phase>package</phase>
  100. <goals>
  101. <goal>jar</goal>
  102. </goals>
  103. </execution>
  104. </executions>
  105. <configuration>
  106. <excludes>
  107. <!--注意这玩意从编译结果目录开始算目录结构 -->
  108. <exclude>**/static/plugins/</exclude>
  109. <exclude>**/static/skin/</exclude>
  110. <exclude>**/application*.yml</exclude>
  111. <exclude>**/Dockerfile</exclude>
  112. <exclude>**/ehcache.xml</exclude>
  113. <exclude>**/upgrade/</exclude>
  114. <exclude>**/*.java</exclude>
  115. </excludes>
  116. </configuration>
  117. </plugin>
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-source-plugin</artifactId>
  121. <version>2.2.1</version>
  122. <configuration>
  123. <excludes>
  124. <exclude>**/static/plugins/</exclude>
  125. <exclude>**/static/skin/</exclude>
  126. <exclude>**/application*.yml</exclude>
  127. <exclude>**/Dockerfile</exclude>
  128. <exclude>**/ehcache.xml</exclude>
  129. <exclude>**/upgrade/</exclude>
  130. <exclude>**/config/</exclude>
  131. <exclude>**/MSApplication.java</exclude>
  132. <exclude>**/MSServletInitializer.java</exclude>
  133. </excludes>
  134. </configuration>
  135. <executions>
  136. <execution>
  137. <id>attach-sources</id>
  138. <goals>
  139. <goal>jar-no-fork</goal>
  140. </goals>
  141. </execution>
  142. </executions>
  143. </plugin>
  144. <plugin>
  145. <groupId>org.apache.maven.plugins</groupId>
  146. <artifactId>maven-compiler-plugin</artifactId>
  147. <version>3.1</version>
  148. <configuration>
  149. <source>${java.version}</source>
  150. <target>${java.version}</target>
  151. <encoding>${project.build.sourceEncoding}</encoding>
  152. <showDeprecation>true</showDeprecation>
  153. <showWarnings>true</showWarnings>
  154. <compilerArguments>
  155. <verbose />
  156. <bootclasspath>${java.home}/lib/rt.jar:${java.home}/lib/jce.jar</bootclasspath>
  157. </compilerArguments>
  158. <compilerArgument>-Xlint:unchecked</compilerArgument>
  159. </configuration>
  160. <dependencies>
  161. <dependency>
  162. <groupId>org.codehaus.plexus</groupId>
  163. <artifactId>plexus-compiler-eclipse</artifactId>
  164. <version>2.1</version>
  165. </dependency>
  166. </dependencies>
  167. </plugin>
  168. <plugin>
  169. <groupId>org.apache.maven.plugins</groupId>
  170. <artifactId>maven-eclipse-plugin</artifactId>
  171. <version>2.8</version>
  172. <configuration>
  173. <additionalConfig>
  174. <file>
  175. <name>.settings/org.eclipse.core.resources.prefs</name>
  176. <content>
  177. <![CDATA[
  178. eclipse.preferences.version=1
  179. encoding/<project>=${project.build.sourceEncoding}
  180. ]]>
  181. </content>
  182. </file>
  183. </additionalConfig>
  184. </configuration>
  185. </plugin>
  186. <plugin>
  187. <artifactId>maven-surefire-plugin</artifactId>
  188. <configuration>
  189. <argLine>-Xmx256m</argLine>
  190. </configuration>
  191. </plugin>
  192. <plugin>
  193. <groupId>com.atlassian.maven.plugins</groupId>
  194. <artifactId>maven-clover2-plugin</artifactId>
  195. <version>2.6.3</version>
  196. <configuration>
  197. <licenseLocation>${clover.license.file}</licenseLocation>
  198. <encoding>${project.build.sourceEncoding}</encoding>
  199. <generateXml>true</generateXml>
  200. </configuration>
  201. </plugin>
  202. <plugin>
  203. <groupId>org.codehaus.mojo</groupId>
  204. <artifactId>findbugs-maven-plugin</artifactId>
  205. <version>1.2</version>
  206. <configuration>
  207. <findbugsXmlOutput>true</findbugsXmlOutput>
  208. <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
  209. <xmlOutput>true</xmlOutput>
  210. </configuration>
  211. </plugin>
  212. <plugin>
  213. <groupId>org.apache.maven.plugins</groupId>
  214. <artifactId>maven-javadoc-plugin</artifactId>
  215. <version>2.9.1</version>
  216. <configuration>
  217. <charset>UTF-8</charset>
  218. <encoding>UTF-8</encoding>
  219. <docencoding>UTF-8</docencoding>
  220. <javadocExecutable>${java.home}/../bin/javadoc</javadocExecutable>
  221. <additionalparam>-Xdoclint:none</additionalparam>
  222. </configuration>
  223. <executions>
  224. <execution>
  225. <id>attach-javadocs</id>
  226. <goals>
  227. <goal>jar</goal>
  228. </goals>
  229. </execution>
  230. </executions>
  231. </plugin>
  232. <plugin>
  233. <groupId>org.apache.maven.plugins</groupId>
  234. <artifactId>maven-war-plugin</artifactId>
  235. <version>2.6</version>
  236. <configuration>
  237. <webResources>
  238. <resource>
  239. <directory>src/main/webapp/WEB-INF</directory>
  240. <targetPath>WEB-INF</targetPath>
  241. <filtering>true</filtering>
  242. <includes>
  243. <include>**/*.xml</include>
  244. </includes>
  245. <excludes>
  246. <exclude>web.xml</exclude>
  247. </excludes>
  248. </resource>
  249. </webResources>
  250. <attachClasses>true</attachClasses>
  251. <warSourceExcludes> */web.xml,static</warSourceExcludes>
  252. <failOnMissingWebXml>false</failOnMissingWebXml>
  253. <packagingExcludes>ms.install,html/,static/,temp,upgrader,WEB-INF/web.xml,WEB-INF/lib/,templets/,upload/,WEB-INF/classes/*.xml,WEB-INF/classes/*.properties,*.sh,WEB-INF/classes/net/mingsoft/config/,WEB-INF/classes/net/mingsoft/*.class</packagingExcludes>
  254. </configuration>
  255. </plugin>
  256. <plugin>
  257. <groupId>org.apache.maven.plugins</groupId>
  258. <artifactId>maven-release-plugin</artifactId>
  259. <configuration>
  260. <arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
  261. </configuration>
  262. </plugin>
  263. <plugin>
  264. <groupId>org.sonatype.plugins</groupId>
  265. <artifactId>nexus-staging-maven-plugin</artifactId>
  266. <version>1.6.7</version>
  267. <extensions>true</extensions>
  268. <configuration>
  269. <serverId>sonatype-nexus-staging</serverId>
  270. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  271. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  272. </configuration>
  273. </plugin>
  274. <plugin>
  275. <groupId>org.apache.maven.plugins</groupId>
  276. <artifactId>maven-gpg-plugin</artifactId>
  277. <version>1.5</version>
  278. <executions>
  279. <execution>
  280. <id>sign-artifacts</id>
  281. <phase>verify</phase>
  282. <goals>
  283. <goal>sign</goal>
  284. </goals>
  285. </execution>
  286. </executions>
  287. </plugin>
  288. </plugins>
  289. <defaultGoal>compile</defaultGoal>
  290. <finalName>ms-mcms</finalName>
  291. </build>
  292. </project>