pom.xml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <parent>
  5. <groupId>org.sonatype.oss</groupId>
  6. <artifactId>oss-parent</artifactId>
  7. <version>9</version>
  8. </parent>
  9. <modelVersion>4.0.0</modelVersion>
  10. <groupId>net.mingsoft</groupId>
  11. <artifactId>ms-mcms</artifactId>
  12. <version>4.7.2-SNAPSHOT</version>
  13. <name>${project.groupId}:${project.artifactId}</name>
  14. <description>ms-mcms tools Library</description>
  15. <url>https://github.com/ming-soft/ms-mcms</url>
  16. <licenses>
  17. <license>
  18. <name>The MIT License (MIT)</name>
  19. <url>http://mit-license.org</url>
  20. </license>
  21. </licenses>
  22. <developers>
  23. <developer>
  24. <name>mingsoft develop group</name>
  25. <email>service@mingsoft.net</email>
  26. <organization>mingsoft</organization>
  27. <organizationUrl>http://www.mingsoft.net</organizationUrl>
  28. </developer>
  29. </developers>
  30. <scm>
  31. <connection>scm:git://github.com/ming-soft/ms-mcms.git</connection>
  32. <developerConnection>scm:git@github.com:ming-soft/ms-mcms.git</developerConnection>
  33. <url>https://github.com/ming-soft/ms-mcms</url>
  34. </scm>
  35. <distributionManagement>
  36. <snapshotRepository>
  37. <id>sonatype-nexus-snapshots</id>
  38. <name>Sonatype Nexus snapshot repository</name>
  39. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  40. </snapshotRepository>
  41. <repository>
  42. <id>sonatype-nexus-staging</id>
  43. <name>Sonatype Nexus release repository</name>
  44. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  45. </repository>
  46. </distributionManagement>
  47. <properties>
  48. <java.version>1.8</java.version>
  49. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  50. </properties>
  51. <dependencies>
  52. <dependency>
  53. <groupId>net.mingsoft</groupId>
  54. <artifactId>ms-mpeople</artifactId>
  55. <version>1.0.10</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>net.mingsoft</groupId>
  59. <artifactId>ms-upgrader</artifactId>
  60. <version>1.0.11</version>
  61. </dependency>
  62. </dependencies>
  63. <build>
  64. <resources>
  65. <resource>
  66. <directory>src/main/java</directory>
  67. </resource>
  68. <resource>
  69. <directory>src/main/webapp</directory>
  70. <excludes>
  71. <exclude>html/</exclude>
  72. <exclude>static/</exclude>
  73. <exclude>upload/</exclude>
  74. <exclude>templets/</exclude>
  75. </excludes>
  76. </resource>
  77. <resource>
  78. <directory>src/main/resources</directory>
  79. </resource>
  80. </resources>
  81. <plugins>
  82. <plugin>
  83. <groupId>org.apache.maven.plugins</groupId>
  84. <artifactId>maven-jar-plugin</artifactId>
  85. <version>2.6</version>
  86. <executions>
  87. <execution>
  88. <phase>package</phase>
  89. <goals>
  90. <goal>jar</goal>
  91. </goals>
  92. </execution>
  93. </executions>
  94. <configuration>
  95. <excludes>
  96. <!--注意这玩意从编译结果目录开始算目录结构 -->
  97. <exclude>**/static/plugins/</exclude>
  98. <exclude>**/static/skin/</exclude>
  99. <exclude>**/application*.yml</exclude>
  100. <exclude>**/Dockerfile</exclude>
  101. <exclude>**/ehcache.xml</exclude>
  102. <exclude>**/upgrade/</exclude>
  103. <!-- exclude>**/config/</exclude>
  104. <exclude>**/MSApplication.*</exclude>
  105. <exclude>**/MSServletInitializer.*</exclude -->
  106. <exclude>**/*.java</exclude>
  107. </excludes>
  108. </configuration>
  109. </plugin>
  110. <plugin>
  111. <groupId>org.apache.maven.plugins</groupId>
  112. <artifactId>maven-source-plugin</artifactId>
  113. <version>2.2.1</version>
  114. <configuration>
  115. <excludes>
  116. <exclude>**/static/plugins/</exclude>
  117. <exclude>**/static/skin/</exclude>
  118. <exclude>**/application*.yml</exclude>
  119. <exclude>**/Dockerfile</exclude>
  120. <exclude>**/ehcache.xml</exclude>
  121. <exclude>**/upgrade/</exclude>
  122. <exclude>**/config/</exclude>
  123. <exclude>**/MSApplication.java</exclude>
  124. <exclude>**/MSServletInitializer.java</exclude>
  125. </excludes>
  126. </configuration>
  127. <executions>
  128. <execution>
  129. <id>attach-sources</id>
  130. <goals>
  131. <goal>jar-no-fork</goal>
  132. </goals>
  133. </execution>
  134. </executions>
  135. </plugin>
  136. <plugin>
  137. <groupId>org.apache.maven.plugins</groupId>
  138. <artifactId>maven-compiler-plugin</artifactId>
  139. <version>3.1</version>
  140. <configuration>
  141. <source>${java.version}</source>
  142. <target>${java.version}</target>
  143. <encoding>${project.build.sourceEncoding}</encoding>
  144. <showDeprecation>true</showDeprecation>
  145. <showWarnings>true</showWarnings>
  146. <compilerArguments>
  147. <verbose />
  148. <bootclasspath>${java.home}/lib/rt.jar:${java.home}/lib/jce.jar</bootclasspath>
  149. </compilerArguments>
  150. <compilerArgument>-Xlint:unchecked</compilerArgument>
  151. </configuration>
  152. <dependencies>
  153. <dependency>
  154. <groupId>org.codehaus.plexus</groupId>
  155. <artifactId>plexus-compiler-eclipse</artifactId>
  156. <version>2.1</version>
  157. </dependency>
  158. </dependencies>
  159. </plugin>
  160. <plugin>
  161. <groupId>org.apache.maven.plugins</groupId>
  162. <artifactId>maven-eclipse-plugin</artifactId>
  163. <version>2.8</version>
  164. <configuration>
  165. <additionalConfig>
  166. <file>
  167. <name>.settings/org.eclipse.core.resources.prefs</name>
  168. <content>
  169. <![CDATA[
  170. eclipse.preferences.version=1
  171. encoding/<project>=${project.build.sourceEncoding}
  172. ]]>
  173. </content>
  174. </file>
  175. </additionalConfig>
  176. </configuration>
  177. </plugin>
  178. <plugin>
  179. <artifactId>maven-surefire-plugin</artifactId>
  180. <configuration>
  181. <argLine>-Xmx256m</argLine>
  182. </configuration>
  183. </plugin>
  184. <plugin>
  185. <groupId>com.atlassian.maven.plugins</groupId>
  186. <artifactId>maven-clover2-plugin</artifactId>
  187. <version>2.6.3</version>
  188. <configuration>
  189. <licenseLocation>${clover.license.file}</licenseLocation>
  190. <encoding>${project.build.sourceEncoding}</encoding>
  191. <generateXml>true</generateXml>
  192. </configuration>
  193. </plugin>
  194. <plugin>
  195. <groupId>org.codehaus.mojo</groupId>
  196. <artifactId>findbugs-maven-plugin</artifactId>
  197. <version>1.2</version>
  198. <configuration>
  199. <findbugsXmlOutput>true</findbugsXmlOutput>
  200. <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
  201. <xmlOutput>true</xmlOutput>
  202. </configuration>
  203. </plugin>
  204. <plugin>
  205. <groupId>org.apache.maven.plugins</groupId>
  206. <artifactId>maven-javadoc-plugin</artifactId>
  207. <version>2.9.1</version>
  208. <configuration>
  209. <charset>UTF-8</charset>
  210. <encoding>UTF-8</encoding>
  211. <docencoding>UTF-8</docencoding>
  212. <javadocExecutable>${java.home}/../bin/javadoc</javadocExecutable>
  213. <additionalparam>-Xdoclint:none</additionalparam>
  214. </configuration>
  215. <executions>
  216. <execution>
  217. <id>attach-javadocs</id>
  218. <goals>
  219. <goal>jar</goal>
  220. </goals>
  221. </execution>
  222. </executions>
  223. </plugin>
  224. <plugin>
  225. <groupId>org.apache.maven.plugins</groupId>
  226. <artifactId>maven-war-plugin</artifactId>
  227. <version>2.6</version>
  228. <configuration>
  229. <webResources>
  230. <resource>
  231. <directory>src/main/webapp/WEB-INF</directory>
  232. <targetPath>WEB-INF</targetPath>
  233. <filtering>true</filtering>
  234. <includes>
  235. <include>**/*.xml</include>
  236. </includes>
  237. <excludes>
  238. <exclude>web.xml</exclude>
  239. </excludes>
  240. </resource>
  241. </webResources>
  242. <attachClasses>true</attachClasses>
  243. <warSourceExcludes> */web.xml,static</warSourceExcludes>
  244. <failOnMissingWebXml>false</failOnMissingWebXml>
  245. <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>
  246. </configuration>
  247. </plugin>
  248. <plugin>
  249. <groupId>org.apache.maven.plugins</groupId>
  250. <artifactId>maven-release-plugin</artifactId>
  251. <configuration>
  252. <arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
  253. </configuration>
  254. </plugin>
  255. <plugin>
  256. <groupId>org.sonatype.plugins</groupId>
  257. <artifactId>nexus-staging-maven-plugin</artifactId>
  258. <version>1.6.7</version>
  259. <extensions>true</extensions>
  260. <configuration>
  261. <serverId>sonatype-nexus-staging</serverId>
  262. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  263. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  264. </configuration>
  265. </plugin>
  266. <plugin>
  267. <groupId>org.apache.maven.plugins</groupId>
  268. <artifactId>maven-gpg-plugin</artifactId>
  269. <version>1.5</version>
  270. <executions>
  271. <execution>
  272. <id>sign-artifacts</id>
  273. <phase>verify</phase>
  274. <goals>
  275. <goal>sign</goal>
  276. </goals>
  277. </execution>
  278. </executions>
  279. </plugin>
  280. </plugins>
  281. <defaultGoal>compile</defaultGoal>
  282. <finalName>ms-mcms</finalName>
  283. </build>
  284. </project>