pom.xml.versionsBackup 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  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. <parent>
  7. <groupId>com.elab.core</groupId>
  8. <artifactId>elab-parent</artifactId>
  9. <version>2.0.0</version>
  10. </parent>
  11. <groupId>com.elab.core</groupId>
  12. <artifactId>elab-core</artifactId>
  13. <version>2.0.0</version>
  14. <packaging>jar</packaging>
  15. <properties>
  16. <java-version>1.8</java-version>
  17. <profiles.active>test</profiles.active>
  18. <springframework.version>4.1.6.RELEASE</springframework.version>
  19. </properties>
  20. <!-- jetty插件 -->
  21. <build>
  22. <plugins>
  23. <plugin>
  24. <groupId>org.apache.maven.plugins</groupId>
  25. <artifactId>maven-compiler-plugin</artifactId>
  26. <configuration>
  27. <source>${java-version}</source>
  28. <target>${java-version}</target>
  29. </configuration>
  30. </plugin>
  31. <plugin>
  32. <groupId>org.eclipse.jetty</groupId>
  33. <artifactId>jetty-maven-plugin</artifactId>
  34. <version>9.4.5.v20170502</version>
  35. <configuration>
  36. <stopPort>9981</stopPort>
  37. <stopKey>foo</stopKey>
  38. <scanIntervalSeconds>10</scanIntervalSeconds>
  39. <httpConnector>
  40. <port>8080</port>
  41. </httpConnector>
  42. <webAppConfig>
  43. <contextPath>/elab</contextPath>
  44. </webAppConfig>
  45. </configuration>
  46. </plugin>
  47. <plugin>
  48. <artifactId>maven-war-plugin</artifactId>
  49. <version>2.1.1</version>
  50. <configuration>
  51. <packagingExcludes>WEB-INF/web.xml</packagingExcludes>
  52. <warName>${profiles.active}</warName>
  53. </configuration>
  54. </plugin>
  55. <plugin>
  56. <groupId>org.apache.maven.plugins</groupId>
  57. <artifactId>maven-jar-plugin</artifactId>
  58. <configuration>
  59. <excludes>
  60. <exclude>com/elab/core/controller/HelloController.class</exclude>
  61. <exclude>com/elab/core/service/**</exclude> <!--排除一些不需要打包的class文件,此处是排除aboutjar包下的所有class文件-->
  62. <exclude>com/elab/core/dao/IHelloDao.class</exclude>
  63. <exclude>com/elab/core/dao/impl/**</exclude>
  64. <exclude>com/elab/core/models/**</exclude>
  65. <exclude>applicationContext-datasource.xml</exclude>
  66. <exclude>global-config.xml</exclude>
  67. <exclude>META-INF/app.properties</exclude>
  68. <exclude>spring-mvc.xml</exclude>
  69. <exclude>database.properties</exclude>
  70. <exclude>dictionary/**</exclude>
  71. <exclude>sql/**</exclude>
  72. </excludes>
  73. </configuration>
  74. </plugin>
  75. <!-- 打包源码插件 -->
  76. <plugin>
  77. <groupId>org.apache.maven.plugins</groupId>
  78. <artifactId>maven-source-plugin</artifactId>
  79. <executions>
  80. <execution>
  81. <id>attach-sources</id>
  82. <goals>
  83. <goal>jar</goal>
  84. </goals>
  85. </execution>
  86. </executions>
  87. </plugin>
  88. <!-- 打包javadoc插件 -->
  89. <plugin>
  90. <groupId>org.apache.maven.plugins</groupId>
  91. <artifactId>maven-javadoc-plugin</artifactId>
  92. <!--<version>2.9</version>-->
  93. <executions>
  94. <execution>
  95. <id>attach-javadocs</id>
  96. <goals>
  97. <goal>jar</goal>
  98. </goals>
  99. <configuration>
  100. <additionalparam>-Xdoclint:none</additionalparam>
  101. </configuration>
  102. </execution>
  103. </executions>
  104. </plugin>
  105. </plugins>
  106. </build>
  107. <distributionManagement>
  108. <repository>
  109. <id>releases</id>
  110. <name>Nexus Release Repository</name>
  111. <url>http://192.168.0.11:8081/nexus/content/repositories/elab/</url>
  112. </repository>
  113. </distributionManagement>
  114. <dependencies>
  115. <dependency>
  116. <groupId>mysql</groupId>
  117. <artifactId>mysql-connector-java</artifactId>
  118. <version>5.1.18</version>
  119. </dependency>
  120. <!-- Spring Core -->
  121. <dependency>
  122. <groupId>org.springframework</groupId>
  123. <artifactId>spring-core</artifactId>
  124. <version>${springframework.version}</version>
  125. </dependency>
  126. <!-- context -->
  127. <dependency>
  128. <groupId>org.springframework</groupId>
  129. <artifactId>spring-context</artifactId>
  130. <version>${springframework.version}</version>
  131. </dependency>
  132. <!-- context -->
  133. <dependency>
  134. <groupId>org.springframework</groupId>
  135. <artifactId>spring-context-support</artifactId>
  136. <version>${springframework.version}</version>
  137. </dependency>
  138. <!-- jdbc -->
  139. <dependency>
  140. <groupId>org.springframework</groupId>
  141. <artifactId>spring-jdbc</artifactId>
  142. <version>${springframework.version}</version>
  143. </dependency>
  144. <!-- tx -->
  145. <dependency>
  146. <groupId>org.springframework</groupId>
  147. <artifactId>spring-tx</artifactId> <!--spring transaction-->
  148. <version>${springframework.version}</version>
  149. </dependency>
  150. <!-- beans -->
  151. <dependency>
  152. <groupId>org.springframework</groupId>
  153. <artifactId>spring-beans</artifactId>
  154. <version>${springframework.version}</version>
  155. </dependency>
  156. <!-- aop -->
  157. <dependency>
  158. <groupId>org.springframework</groupId>
  159. <artifactId>spring-aop</artifactId>
  160. <version>${springframework.version}</version>
  161. </dependency>
  162. <!-- webmvc -->
  163. <dependency>
  164. <groupId>org.springframework</groupId>
  165. <artifactId>spring-webmvc</artifactId>
  166. <version>${springframework.version}</version>
  167. </dependency>
  168. <!-- web -->
  169. <dependency>
  170. <groupId>org.springframework</groupId>
  171. <artifactId>spring-web</artifactId>
  172. <version>${springframework.version}</version>
  173. </dependency>
  174. <!-- 数据源 -->
  175. <dependency>
  176. <groupId>com.alibaba</groupId>
  177. <artifactId>druid</artifactId>
  178. <version>1.1.6</version>
  179. </dependency>
  180. <!-- 工具 -->
  181. <dependency>
  182. <groupId>com.alibaba</groupId>
  183. <artifactId>fastjson</artifactId>
  184. <version>1.2.16</version>
  185. </dependency>
  186. <!-- https://mvnrepository.com/artifact/commons-net/commons-net -->
  187. <dependency>
  188. <groupId>commons-net</groupId>
  189. <artifactId>commons-net</artifactId>
  190. <version>3.1</version>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.aspectj</groupId>
  194. <artifactId>aspectjweaver</artifactId>
  195. <version>1.8.4</version>
  196. </dependency>
  197. <dependency>
  198. <groupId>com.google.guava</groupId>
  199. <artifactId>guava</artifactId>
  200. <version>18.0</version>
  201. </dependency>
  202. <!-- xml解析 -->
  203. <dependency>
  204. <groupId>com.fasterxml.jackson.core</groupId>
  205. <artifactId>jackson-databind</artifactId>
  206. <version>2.2.2</version>
  207. </dependency>
  208. <!-- 中文转pinyin -->
  209. <dependency>
  210. <groupId>com.belerweb</groupId>
  211. <artifactId>pinyin4j</artifactId>
  212. <version>2.5.0</version>
  213. </dependency>
  214. <dependency>
  215. <groupId>org.codehaus.plexus</groupId>
  216. <artifactId>plexus-utils</artifactId>
  217. <version>3.0.8</version>
  218. </dependency>
  219. <dependency>
  220. <groupId>org.slf4j</groupId>
  221. <artifactId>slf4j-api</artifactId>
  222. <version>1.7.21</version>
  223. </dependency>
  224. <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12 -->
  225. <dependency>
  226. <groupId>org.slf4j</groupId>
  227. <artifactId>slf4j-log4j12</artifactId>
  228. <version>1.7.21</version>
  229. </dependency>
  230. <!-- log4j 日志 本地存储 -->
  231. <!--<dependency>
  232. <groupId>log4j</groupId>
  233. <artifactId>log4j</artifactId>
  234. <version>1.2.16</version>
  235. </dependency>
  236. -->
  237. <!-- log4 日志 mongodb数据库存储 -->
  238. <dependency>
  239. <groupId>org.log4mongo</groupId>
  240. <artifactId>log4mongo-java</artifactId>
  241. <version>0.7.4</version>
  242. </dependency>
  243. <dependency>
  244. <groupId>org.apache.commons</groupId>
  245. <artifactId>commons-lang3</artifactId>
  246. <version>3.4</version>
  247. </dependency>
  248. <!--发送邮件 -->
  249. <dependency>
  250. <groupId>javax.mail</groupId>
  251. <artifactId>mail</artifactId>
  252. <version>1.4.1</version>
  253. </dependency>
  254. <!-- 模板 -->
  255. <dependency>
  256. <groupId>org.freemarker</groupId>
  257. <artifactId>freemarker</artifactId>
  258. <version>2.3.16</version>
  259. </dependency>
  260. <!-- servlet -->
  261. <dependency>
  262. <groupId>javax.servlet</groupId>
  263. <artifactId>javax.servlet-api</artifactId>
  264. <version>3.1.0</version>
  265. </dependency>
  266. <!-- 文件上传 -->
  267. <dependency>
  268. <groupId>commons-fileupload</groupId>
  269. <artifactId>commons-fileupload</artifactId>
  270. <version>1.3.1</version>
  271. </dependency>
  272. <!-- encoding -->
  273. <dependency>
  274. <groupId>org.apache.axis</groupId>
  275. <artifactId>axis</artifactId>
  276. <version>1.4</version>
  277. </dependency>
  278. <!--<dependency>-->
  279. <!--<groupId>com.dianping.cat</groupId>-->
  280. <!--<artifactId>cat-core</artifactId>-->
  281. <!--<version>2.0.0</version>-->
  282. <!--</dependency>-->
  283. <dependency>
  284. <groupId>junit</groupId>
  285. <artifactId>junit</artifactId>
  286. <version>4.12</version>
  287. <scope>test</scope>
  288. </dependency>
  289. </dependencies>
  290. </project>