pom.xml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  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/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.jsjty</groupId>
  5. <artifactId>chatServer</artifactId>
  6. <packaging>war</packaging>
  7. <version>1.0-SNAPSHOT</version>
  8. <name>MobileServer Maven Webapp</name>
  9. <url>http://maven.apache.org</url>
  10. <properties>
  11. <jetty.version>8.1.8.v20121106</jetty.version>
  12. <org.springframework-version>4.0.0.RELEASE</org.springframework-version>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. </properties>
  15. <dependencies>
  16. <!-- Spring -->
  17. <dependency>
  18. <groupId>org.springframework</groupId>
  19. <artifactId>spring-context</artifactId>
  20. <version>${org.springframework-version}</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>org.springframework</groupId>
  24. <artifactId>spring-webmvc</artifactId>
  25. <version>${org.springframework-version}</version>
  26. </dependency>
  27. <!-- 加入orm依赖包 -->
  28. <dependency>
  29. <groupId>org.springframework</groupId>
  30. <artifactId>spring-orm</artifactId>
  31. <version>${org.springframework-version}</version>
  32. </dependency>
  33. <!-- ehcache需要的依赖 -->
  34. <dependency>
  35. <groupId>org.springframework</groupId>
  36. <artifactId>spring-context-support</artifactId>
  37. <version>${org.springframework-version}</version>
  38. </dependency>
  39. <!-- 加入spring测试依赖包 -->
  40. <dependency>
  41. <groupId>org.springframework</groupId>
  42. <artifactId>spring-test</artifactId>
  43. <version>${org.springframework-version}</version>
  44. </dependency>
  45. <!-- 加入druid数据源依赖包 -->
  46. <dependency>
  47. <groupId>com.alibaba</groupId>
  48. <artifactId>druid</artifactId>
  49. <version>0.2.20</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.slf4j</groupId>
  53. <artifactId>slf4j-api</artifactId>
  54. <version>1.7.7</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.slf4j</groupId>
  58. <artifactId>slf4j-log4j12</artifactId>
  59. <version>1.7.7</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>log4j</groupId>
  63. <artifactId>log4j</artifactId>
  64. <version>1.2.17</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.hibernate</groupId>
  68. <artifactId>hibernate-core</artifactId>
  69. <version>4.2.2.Final</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.google.guava</groupId>
  73. <artifactId>guava</artifactId>
  74. <version>18.0</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.codehaus.jackson</groupId>
  78. <artifactId>jackson-core-asl</artifactId>
  79. <version>1.9.13</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.codehaus.jackson</groupId>
  83. <artifactId>jackson-mapper-asl</artifactId>
  84. <version>1.9.13</version>
  85. </dependency>
  86. <!-- 加入junit依赖包 -->
  87. <dependency>
  88. <groupId>junit</groupId>
  89. <artifactId>junit</artifactId>
  90. <version>4.11</version>
  91. <scope>test</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>net.sf.ehcache</groupId>
  95. <artifactId>ehcache</artifactId>
  96. <version>2.8.0</version>
  97. </dependency>
  98. <!-- 加入mysql驱动依赖包 -->
  99. <dependency>
  100. <groupId>mysql</groupId>
  101. <artifactId>mysql-connector-java</artifactId>
  102. <version>5.1.25</version>
  103. </dependency>
  104. <!-- 加入fastjson依赖包 -->
  105. <dependency>
  106. <groupId>com.alibaba</groupId>
  107. <artifactId>fastjson</artifactId>
  108. <version>1.1.31</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>javax.servlet</groupId>
  112. <artifactId>servlet-api</artifactId>
  113. <version>2.5</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>javax.servlet.jsp</groupId>
  117. <artifactId>jsp-api</artifactId>
  118. <version>2.1</version>
  119. <scope>provided</scope>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.aspectj</groupId>
  123. <artifactId>aspectjweaver</artifactId>
  124. <version>1.7.2</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>commons-net</groupId>
  128. <artifactId>commons-net</artifactId>
  129. <version>3.3</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>commons-codec</groupId>
  133. <artifactId>commons-codec</artifactId>
  134. <version>1.6</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>net.sf.ehcache</groupId>
  138. <artifactId>ehcache</artifactId>
  139. <version>2.8.0</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>commons-fileupload</groupId>
  143. <artifactId>commons-fileupload</artifactId>
  144. <version>1.3</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>commons-io</groupId>
  148. <artifactId>commons-io</artifactId>
  149. <version>2.4</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>com.google.code.gson</groupId>
  153. <artifactId>gson</artifactId>
  154. <version>2.3</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.apache.solr</groupId>
  158. <artifactId>solr-solrj</artifactId>
  159. <version>4.10.2</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.apache.poi</groupId>
  163. <artifactId>poi</artifactId>
  164. <version>3.10-FINAL</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.apache.httpcomponents</groupId>
  168. <artifactId>httpclient</artifactId>
  169. <version>4.3</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.apache.httpcomponents</groupId>
  173. <artifactId>httpmime</artifactId>
  174. <version>4.3</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.apache.httpcomponents</groupId>
  178. <artifactId>httpcore</artifactId>
  179. <version>4.3</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>commons-codec</groupId>
  183. <artifactId>commons-codec</artifactId>
  184. <version>1.10</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.quartz-scheduler</groupId>
  188. <artifactId>quartz</artifactId>
  189. <version>1.8.4</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>org.apache.shiro</groupId>
  193. <artifactId>shiro-core</artifactId>
  194. <version>1.2.3</version>
  195. </dependency>
  196. <dependency>
  197. <groupId>net.sf.json-lib</groupId>
  198. <artifactId>json-lib</artifactId>
  199. <classifier>jdk15</classifier>
  200. <version>2.4</version>
  201. </dependency>
  202. </dependencies>
  203. <build>
  204. <finalName>${project.artifactId}</finalName>
  205. <plugins>
  206. <plugin>
  207. <groupId>org.apache.maven.plugins</groupId>
  208. <artifactId>maven-compiler-plugin</artifactId>
  209. <version>2.3</version>
  210. <configuration>
  211. <source>1.7</source>
  212. <target>1.7</target>
  213. <showWarnings>true</showWarnings>
  214. </configuration>
  215. </plugin>
  216. <!-- war打包插件, 设定war包名称不带版本号 -->
  217. <plugin>
  218. <groupId>org.apache.maven.plugins</groupId>
  219. <artifactId>maven-war-plugin</artifactId>
  220. <version>2.4</version>
  221. <configuration>
  222. <warName>${project.artifactId}</warName>
  223. </configuration>
  224. </plugin>
  225. <plugin>
  226. <groupId>org.apache.maven.plugins</groupId>
  227. <artifactId>maven-javadoc-plugin</artifactId>
  228. <version>2.10.2</version>
  229. </plugin>
  230. <plugin>
  231. <groupId>org.apache.maven.plugins</groupId>
  232. <artifactId>maven-source-plugin</artifactId>
  233. <version>2.4</version>
  234. </plugin>
  235. <!-- jetty插件, 设定context path与spring profile -->
  236. <plugin>
  237. <groupId>org.mortbay.jetty</groupId>
  238. <artifactId>jetty-maven-plugin</artifactId>
  239. <version>${jetty.version}</version>
  240. <configuration>
  241. <webAppConfig>
  242. <contextPath>/${project.build.finalName}</contextPath>
  243. </webAppConfig>
  244. </configuration>
  245. </plugin>
  246. <!-- tomcat7 插件 -->
  247. <plugin>
  248. <groupId>org.apache.tomcat.maven</groupId>
  249. <artifactId>tomcat7-maven-plugin</artifactId>
  250. <version>2.2</version>
  251. <configuration>
  252. <path>${project.build.finalName}</path>
  253. </configuration>
  254. </plugin>
  255. <plugin>
  256. <groupId>org.apache.maven.plugins</groupId>
  257. <artifactId>maven-assembly-plugin</artifactId>
  258. <version>2.5.3</version>
  259. <configuration>
  260. <archive>
  261. <manifest>
  262. <mainClass></mainClass>
  263. </manifest>
  264. </archive>
  265. </configuration>
  266. </plugin>
  267. <plugin>
  268. <groupId>org.apache.maven.plugins</groupId>
  269. <artifactId>maven-site-plugin</artifactId>
  270. <version>3.4</version>
  271. <configuration>
  272. <locales>zh_CN</locales>
  273. <outputEncoding>UTF-8</outputEncoding>
  274. <inputEncoding>UTF-8</inputEncoding>
  275. </configuration>
  276. </plugin>
  277. <plugin>
  278. <groupId>org.apache.maven.plugins</groupId>
  279. <artifactId>maven-surefire-plugin</artifactId>
  280. <version>2.12.4</version>
  281. <configuration>
  282. <skipTests>true</skipTests>
  283. </configuration>
  284. </plugin>
  285. </plugins>
  286. </build>
  287. </project>