pom.xml 8.6 KB

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