pom.xml 8.6 KB

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