pom.xml 13 KB

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