pom.xml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  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. <modelVersion>4.0.0</modelVersion>
  4. <groupId>cn.superdesk.libs</groupId>
  5. <artifactId>superdesk-libs</artifactId>
  6. <version>1.3.1-SNAPSHOT</version>
  7. <packaging>pom</packaging>
  8. <description>Java 后台开发套件</description>
  9. <name>superdesk-libs</name>
  10. <url>http://www.superdesk.cn</url>
  11. <developers>
  12. <developer>
  13. <name>superdesk</name>
  14. <email></email>
  15. <organization>superdesk</organization>
  16. <organizationUrl>https://www.superdesk.cn</organizationUrl>
  17. </developer>
  18. </developers>
  19. <properties>
  20. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  21. <compiler.jdk.version>1.8</compiler.jdk.version>
  22. <output.encoding>utf-8</output.encoding>
  23. <spring.version>5.0.6.RELEASE</spring.version>
  24. <spring-boot.version>2.0.2.RELEASE</spring-boot.version>
  25. <kafka.version>0.10.2.0</kafka.version>
  26. <zkclient.version>0.10</zkclient.version>
  27. <zookeeper.version>3.4.9</zookeeper.version>
  28. <!-- 3.1.0 the lastest 3.2.0-SNAPSHOT-->
  29. <jedis.version>2.9.0</jedis.version>
  30. <mybatis.version>3.4.5</mybatis.version>
  31. <mapper.version>3.5.3</mapper.version>
  32. <jsqlparser.version>2.1</jsqlparser.version>
  33. <!-- 1.6.20 -->
  34. <lombok.version>1.18.4</lombok.version>
  35. <druid.version>1.0.16</druid.version>
  36. <junit.version>4.12</junit.version>
  37. </properties>
  38. <modules>
  39. <module>superdesk-libs-common</module>
  40. <module>superdesk-libs-kafka</module>
  41. <module>superdesk-libs-spring</module>
  42. <module>superdesk-libs-cache</module>
  43. <module>superdesk-libs-scheduler</module>
  44. <module>superdesk-libs-mybatis</module>
  45. <module>superdesk-libs-rest</module>
  46. <module>superdesk-libs-common2</module>
  47. <module>superdesk-libs-filesystem</module>
  48. <module>superdesk-libs-springboot-starter</module>
  49. <module>superdesk-libs-springweb</module>
  50. <!--
  51. <module>superdesk-libs-log</module>
  52. <module>superdesk-libs-search</module>
  53. <module>superdesk-libs-tx</module>
  54. -->
  55. <module>superdesk-libs-event</module>
  56. <module>superdesk-libs-security</module>
  57. </modules>
  58. <dependencies>
  59. <dependency>
  60. <groupId>org.apache.logging.log4j</groupId>
  61. <artifactId>log4j-core</artifactId>
  62. <version>2.7</version>
  63. <optional>true</optional>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.apache.logging.log4j</groupId>
  67. <artifactId>log4j-slf4j-impl</artifactId>
  68. <version>2.7</version>
  69. <optional>true</optional>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.slf4j</groupId>
  73. <artifactId>slf4j-api</artifactId>
  74. <version>1.7.21</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>junit</groupId>
  78. <artifactId>junit</artifactId>
  79. <version>4.12</version>
  80. <scope>test</scope>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.springframework</groupId>
  84. <artifactId>spring-test</artifactId>
  85. <version>${spring.version}</version>
  86. <scope>test</scope>
  87. </dependency>
  88. </dependencies>
  89. <profiles>
  90. <profile>
  91. <id>release</id>
  92. <build>
  93. <plugins>
  94. <plugin>
  95. <groupId>org.apache.maven.plugins</groupId>
  96. <artifactId>maven-compiler-plugin</artifactId>
  97. <configuration>
  98. <source>${compiler.jdk.version}</source>
  99. <target>${compiler.jdk.version}</target>
  100. <encoding>${output.encoding}</encoding>
  101. </configuration>
  102. </plugin>
  103. <plugin>
  104. <groupId>org.apache.maven.plugins</groupId>
  105. <artifactId>maven-deploy-plugin</artifactId>
  106. <configuration>
  107. <skip>false</skip>
  108. </configuration>
  109. </plugin>
  110. <plugin>
  111. <groupId>org.apache.maven.plugins</groupId>
  112. <artifactId>maven-javadoc-plugin</artifactId>
  113. <version>2.9.1</version>
  114. <executions>
  115. <execution>
  116. <id>attach-javadocs</id>
  117. <goals>
  118. <goal>jar</goal>
  119. </goals>
  120. <configuration>
  121. <additionalparam>-Xdoclint:none</additionalparam>
  122. </configuration>
  123. </execution>
  124. </executions>
  125. </plugin>
  126. <!--中央仓库-->
  127. <!--<plugin>-->
  128. <!--<groupId>org.apache.maven.plugins</groupId>-->
  129. <!--<artifactId>maven-gpg-plugin</artifactId>-->
  130. <!--<executions>-->
  131. <!--<execution>-->
  132. <!--<id>sign-artifacts</id>-->
  133. <!--<phase>verify</phase>-->
  134. <!--<goals>-->
  135. <!--<goal>sign</goal>-->
  136. <!--</goals>-->
  137. <!--</execution>-->
  138. <!--</executions>-->
  139. <!--</plugin>-->
  140. </plugins>
  141. </build>
  142. </profile>
  143. </profiles>
  144. <build>
  145. <plugins>
  146. <plugin>
  147. <groupId>org.apache.maven.plugins</groupId>
  148. <artifactId>maven-compiler-plugin</artifactId>
  149. <configuration>
  150. <source>${compiler.jdk.version}</source>
  151. <target>${compiler.jdk.version}</target>
  152. <encoding>${output.encoding}</encoding>
  153. </configuration>
  154. </plugin>
  155. <!-- 打包时打不打源代码上去 -->
  156. <!--<plugin>-->
  157. <!--<groupId>org.apache.maven.plugins</groupId>-->
  158. <!--<artifactId>maven-source-plugin</artifactId>-->
  159. <!--<version>2.4</version>-->
  160. <!--<executions>-->
  161. <!--<execution>-->
  162. <!--<id>attach-sources</id>-->
  163. <!--<phase>verify</phase>-->
  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-deploy-plugin</artifactId>
  173. <configuration>
  174. <skip>false</skip>
  175. </configuration>
  176. </plugin>
  177. </plugins>
  178. </build>
  179. <!-- Nexus Repository OSS 2.x it not like that config -->
  180. <!-- mvn clean deploy -P release -DskipTests=true -Dgpg.passphrase=admin123 -->
  181. <!-- mvn clean deploy -P release -DskipTests=true -->
  182. <!-- localhost Nexus Repository OSS 3.15.2-0 -->
  183. <!--<distributionManagement>-->
  184. <!--<repository>-->
  185. <!--<id>nexus-releases</id>-->
  186. <!--&lt;!&ndash;<name>Project RELEASE</name>&ndash;&gt;-->
  187. <!--<url>http://127.0.0.1:28080/repository/maven-releases</url>-->
  188. <!--</repository>-->
  189. <!--<snapshotRepository>-->
  190. <!--<id>nexus-snapshots</id>-->
  191. <!--&lt;!&ndash;<name>Porject SNAPSHOTS</name>&ndash;&gt;-->
  192. <!--<url>http://127.0.0.1:28080/repository/maven-snapshots</url>-->
  193. <!--</snapshotRepository>-->
  194. <!--</distributionManagement>-->
  195. <!-- publichost Nexus Repository OSS 3.15.2-0 -->
  196. <distributionManagement>
  197. <repository>
  198. <id>nexus-releases</id>
  199. <name>Project RELEASE</name>
  200. <url>https://nexus.superdesk.cn/repository/maven-releases</url>
  201. </repository>
  202. <snapshotRepository>
  203. <id>nexus-snapshots</id>
  204. <name>Porject SNAPSHOTS</name>
  205. <url>https://nexus.superdesk.cn/repository/maven-snapshots</url>
  206. </snapshotRepository>
  207. </distributionManagement>
  208. </project>