pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  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. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.elab.core</groupId>
  7. <artifactId>elab-parent</artifactId>
  8. <packaging>pom</packaging>
  9. <version>2.0.4.12-SNAPSHOT</version>
  10. <modules>
  11. <module>elab-core</module>
  12. <module>elab-cache</module>
  13. <module>elab-log</module>
  14. <module>elab-spring</module>
  15. <module>elab-db</module>
  16. <module>elab-annotation</module>
  17. <module>elab-mq</module>
  18. <module>elab-mongodb</module>
  19. <!--<module>elab-system-web</module>-->
  20. <module>elab-alert</module>
  21. <module>elab-rocketMQ</module>
  22. <module>elab-es</module>
  23. </modules>
  24. <properties>
  25. <java-version>1.8</java-version>
  26. <profiles.active>test</profiles.active>
  27. <!--<springframework.version>4.3.16.RELEASE</springframework.version>-->
  28. <springframework.version>5.1.3.RELEASE</springframework.version>
  29. <springboot.version>2.0.5.RELEASE</springboot.version>
  30. <mysql.connector.version>5.1.38</mysql.connector.version>
  31. <druid.version>1.1.6</druid.version>
  32. <fastjson.version>1.2.47</fastjson.version>
  33. <swagger_version>2.8.0</swagger_version>
  34. </properties>
  35. <dependencyManagement>
  36. <dependencies>
  37. <dependency>
  38. <groupId>com.elab.core</groupId>
  39. <artifactId>elab-core</artifactId>
  40. <version>${project.version}</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>mysql</groupId>
  44. <artifactId>mysql-connector-java</artifactId>
  45. <version>${mysql.connector.version}</version>
  46. </dependency>
  47. <!-- Spring Core -->
  48. <dependency>
  49. <groupId>org.springframework</groupId>
  50. <artifactId>spring-core</artifactId>
  51. <version>${springframework.version}</version>
  52. </dependency>
  53. <!-- context -->
  54. <dependency>
  55. <groupId>org.springframework</groupId>
  56. <artifactId>spring-context</artifactId>
  57. <version>${springframework.version}</version>
  58. </dependency>
  59. <!-- context -->
  60. <dependency>
  61. <groupId>org.springframework</groupId>
  62. <artifactId>spring-context-support</artifactId>
  63. <version>${springframework.version}</version>
  64. </dependency>
  65. <!-- jdbc -->
  66. <dependency>
  67. <groupId>org.springframework</groupId>
  68. <artifactId>spring-jdbc</artifactId>
  69. <version>${springframework.version}</version>
  70. </dependency>
  71. <!-- tx -->
  72. <dependency>
  73. <groupId>org.springframework</groupId>
  74. <artifactId>spring-tx</artifactId> <!--spring transaction-->
  75. <version>${springframework.version}</version>
  76. </dependency>
  77. <!-- beans -->
  78. <dependency>
  79. <groupId>org.springframework</groupId>
  80. <artifactId>spring-beans</artifactId>
  81. <version>${springframework.version}</version>
  82. </dependency>
  83. <!-- aop -->
  84. <dependency>
  85. <groupId>org.springframework</groupId>
  86. <artifactId>spring-aop</artifactId>
  87. <version>${springframework.version}</version>
  88. </dependency>
  89. <!-- webmvc -->
  90. <dependency>
  91. <groupId>org.springframework</groupId>
  92. <artifactId>spring-webmvc</artifactId>
  93. <version>${springframework.version}</version>
  94. </dependency>
  95. <!-- web -->
  96. <dependency>
  97. <groupId>org.springframework</groupId>
  98. <artifactId>spring-web</artifactId>
  99. <version>${springframework.version}</version>
  100. </dependency>
  101. <!-- 数据源 -->
  102. <dependency>
  103. <groupId>com.alibaba</groupId>
  104. <artifactId>druid</artifactId>
  105. <version>${druid.version}</version>
  106. </dependency>
  107. <!-- 工具 -->
  108. <dependency>
  109. <groupId>com.alibaba</groupId>
  110. <artifactId>fastjson</artifactId>
  111. <version>${fastjson.version}</version>
  112. </dependency>
  113. <!-- https://mvnrepository.com/artifact/commons-net/commons-net -->
  114. <dependency>
  115. <groupId>commons-net</groupId>
  116. <artifactId>commons-net</artifactId>
  117. <version>3.6</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.aspectj</groupId>
  121. <artifactId>aspectjweaver</artifactId>
  122. <version>1.8.13</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>com.google.guava</groupId>
  126. <artifactId>guava</artifactId>
  127. <version>27.0.1-jre</version>
  128. </dependency>
  129. <!-- xml解析 -->
  130. <dependency>
  131. <groupId>com.fasterxml.jackson.core</groupId>
  132. <artifactId>jackson-databind</artifactId>
  133. <version>2.9.8</version>
  134. </dependency>
  135. <!-- 中文转pinyin -->
  136. <dependency>
  137. <groupId>com.belerweb</groupId>
  138. <artifactId>pinyin4j</artifactId>
  139. <version>2.5.0</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.codehaus.plexus</groupId>
  143. <artifactId>plexus-utils</artifactId>
  144. <version>3.0.24</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.slf4j</groupId>
  148. <artifactId>slf4j-api</artifactId>
  149. <version>1.7.25</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.slf4j</groupId>
  153. <artifactId>slf4j-log4j12</artifactId>
  154. <version>1.7.25</version>
  155. </dependency>
  156. <!-- log4j 日志 本地存储 -->
  157. <!--<dependency>
  158. <groupId>log4j</groupId>
  159. <artifactId>log4j</artifactId>
  160. <version>1.2.16</version>
  161. </dependency>
  162. -->
  163. <!-- log4 日志 mongodb数据库存储 -->
  164. <!--<dependency>-->
  165. <!--<groupId>org.log4mongo</groupId>-->
  166. <!--<artifactId>log4mongo-java</artifactId>-->
  167. <!--<version>0.9.0</version>-->
  168. <!--</dependency>-->
  169. <dependency>
  170. <groupId>org.springframework.data</groupId>
  171. <artifactId>spring-data-mongodb</artifactId>
  172. <version>2.0.6.RELEASE</version>
  173. </dependency>
  174. <dependency>
  175. <groupId>javax.validation</groupId>
  176. <artifactId>validation-api</artifactId>
  177. <version>1.1.0.Final</version>
  178. </dependency>
  179. <dependency>
  180. <groupId>org.hibernate</groupId>
  181. <artifactId>hibernate-validator</artifactId>
  182. <version>5.4.1.Final</version>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.apache.commons</groupId>
  186. <artifactId>commons-lang3</artifactId>
  187. <version>3.7</version>
  188. </dependency>
  189. <!--发送邮件 -->
  190. <dependency>
  191. <groupId>javax.mail</groupId>
  192. <artifactId>mail</artifactId>
  193. <version>1.4.7</version>
  194. </dependency>
  195. <!-- 模板 -->
  196. <dependency>
  197. <groupId>org.freemarker</groupId>
  198. <artifactId>freemarker</artifactId>
  199. <version>2.3.23</version>
  200. </dependency>
  201. <!-- servlet -->
  202. <dependency>
  203. <groupId>javax.servlet</groupId>
  204. <artifactId>javax.servlet-api</artifactId>
  205. <version>3.1.0</version>
  206. </dependency>
  207. <!-- 文件上传 -->
  208. <dependency>
  209. <groupId>commons-fileupload</groupId>
  210. <artifactId>commons-fileupload</artifactId>
  211. <version>1.3.3</version>
  212. </dependency>
  213. <!-- encoding -->
  214. <dependency>
  215. <groupId>org.apache.axis</groupId>
  216. <artifactId>axis</artifactId>
  217. <version>1.4</version>
  218. </dependency>
  219. <!--<dependency>-->
  220. <!--<groupId>com.dianping.cat</groupId>-->
  221. <!--<artifactId>cat-core</artifactId>-->
  222. <!--<version>2.0.0</version>-->
  223. <!--</dependency>-->
  224. <dependency>
  225. <groupId>junit</groupId>
  226. <artifactId>junit</artifactId>
  227. <version>4.12</version>
  228. <scope>test</scope>
  229. </dependency>
  230. <dependency>
  231. <groupId>com.dianping.cat</groupId>
  232. <artifactId>cat-core</artifactId>
  233. <version>3.0.0</version>
  234. </dependency>
  235. <dependency>
  236. <groupId>org.springframework</groupId>
  237. <artifactId>spring-test</artifactId>
  238. <version>${springframework.version}</version>
  239. <scope>test</scope>
  240. </dependency>
  241. <!-- https://mvnrepository.com/artifact/javax.annotation/javax.annotation-api -->
  242. <dependency>
  243. <groupId>javax.annotation</groupId>
  244. <artifactId>javax.annotation-api</artifactId>
  245. <version>1.3.2</version>
  246. </dependency>
  247. <dependency>
  248. <groupId>commons-beanutils</groupId>
  249. <artifactId>commons-beanutils</artifactId>
  250. <version>1.9.3</version>
  251. </dependency>
  252. <dependency>
  253. <groupId>javax.persistence</groupId>
  254. <artifactId>persistence-api</artifactId>
  255. <version>1.0</version>
  256. </dependency>
  257. <dependency>
  258. <groupId>io.springfox</groupId>
  259. <artifactId>springfox-swagger2</artifactId>
  260. <version>${swagger_version}</version>
  261. </dependency>
  262. <dependency>
  263. <groupId>io.springfox</groupId>
  264. <artifactId>springfox-swagger-ui</artifactId>
  265. <version>${swagger_version}</version>
  266. </dependency>
  267. <dependency>
  268. <groupId>io.swagger</groupId>
  269. <artifactId>swagger-annotations</artifactId>
  270. <scope>compile</scope>
  271. <version>1.5.19</version>
  272. </dependency>
  273. </dependencies>
  274. </dependencyManagement>
  275. <!-- jetty插件 -->
  276. <build>
  277. <plugins>
  278. <plugin>
  279. <groupId>org.apache.maven.plugins</groupId>
  280. <artifactId>maven-compiler-plugin</artifactId>
  281. <configuration>
  282. <source>${java-version}</source>
  283. <target>${java-version}</target>
  284. </configuration>
  285. </plugin>
  286. <!-- 打包源码插件 -->
  287. <plugin>
  288. <groupId>org.apache.maven.plugins</groupId>
  289. <artifactId>maven-source-plugin</artifactId>
  290. <executions>
  291. <execution>
  292. <id>attach-sources</id>
  293. <goals>
  294. <goal>jar</goal>
  295. </goals>
  296. </execution>
  297. </executions>
  298. </plugin>
  299. <!-- 打包javadoc插件 -->
  300. <plugin>
  301. <groupId>org.apache.maven.plugins</groupId>
  302. <artifactId>maven-javadoc-plugin</artifactId>
  303. <!--<version>2.9</version>-->
  304. <executions>
  305. <execution>
  306. <id>attach-javadocs</id>
  307. <goals>
  308. <goal>jar</goal>
  309. </goals>
  310. <configuration>
  311. <additionalparam>-Xdoclint:none</additionalparam>
  312. <charset>UTF-8</charset>
  313. <encoding>UTF-8</encoding>
  314. <docencoding>UTF-8</docencoding>
  315. </configuration>
  316. </execution>
  317. </executions>
  318. </plugin>
  319. </plugins>
  320. </build>
  321. <!--mvn -DnewVersion=1.0.0-RELEASE -DgenerateBackupPoms=false versions:set-->
  322. <!--mvn -DnewVersion=1.0.0-SNAPSHOT -DgenerateBackupPoms=false versions:set-->
  323. <distributionManagement>
  324. <!--<repository>-->
  325. <!--<id>releases</id>-->
  326. <!--<name>Nexus Release Repository</name>-->
  327. <!--<url>http://192.168.0.11:8081/nexus/content/repositories/elab/</url>-->
  328. <!--</repository>-->
  329. <snapshotRepository>
  330. <id>snapshots</id>
  331. <name>User Project SNAPSHOTS</name>
  332. <url>http://192.168.0.11:8081/nexus/content/repositories/snapshots/</url>
  333. </snapshotRepository>
  334. </distributionManagement>
  335. </project>