pom.xml 8.4 KB

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