pom.xml 13 KB

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