pom.xml 11 KB

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