pom.xml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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>MQTT</groupId>
  7. <artifactId>MQTT</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <packaging>war</packaging>
  10. <!--<name>MQTT Maven Webapp</name>-->
  11. <!--&lt;!&ndash; FIXME change it to the project's website &ndash;&gt;-->
  12. <!--<url>http://www.example.com</url>-->
  13. <properties>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. <maven.compiler.source>1.7</maven.compiler.source>
  16. <maven.compiler.target>1.7</maven.compiler.target>
  17. <springVersion>4.3.1.RELEASE</springVersion>
  18. <spring.version>4.3.1.RELEASE</spring.version>
  19. <hibernateVersion>4.3.5.Final</hibernateVersion>
  20. <jstlVersion>1.2</jstlVersion>
  21. <taglibVersion>1.1.2</taglibVersion>
  22. <servletVersion>3.0-alpha-1</servletVersion>
  23. <jsonVersion>1.9.13</jsonVersion>
  24. <jacksonVersion>2.5.0</jacksonVersion>
  25. <mysqlVersion>5.1.38</mysqlVersion>
  26. <c3p0Version>0.9.1.2</c3p0Version>
  27. <log4jVersion>1.2.17</log4jVersion>
  28. <lombokVersion>1.16.10</lombokVersion>
  29. </properties>
  30. <dependencies>
  31. <!--fastjson-->
  32. <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
  33. <dependency>
  34. <groupId>com.alibaba</groupId>
  35. <artifactId>fastjson</artifactId>
  36. <version>1.2.62</version>
  37. </dependency>
  38. <!--时间工具-->
  39. <dependency>
  40. <groupId>joda-time</groupId>
  41. <artifactId>joda-time</artifactId>
  42. <version>2.10.1</version>
  43. </dependency>
  44. <!-- 单元测试 -->
  45. <dependency>
  46. <groupId>junit</groupId>
  47. <artifactId>junit</artifactId>
  48. <version>3.8.1</version>
  49. <scope>test</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.apache.commons</groupId>
  53. <artifactId>commons-lang3</artifactId>
  54. <version>3.9</version>
  55. </dependency>
  56. <!-- spring-->
  57. <dependency>
  58. <groupId>org.springframework</groupId>
  59. <artifactId>spring-beans</artifactId>
  60. <version>${springVersion}</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework</groupId>
  64. <artifactId>spring-core</artifactId>
  65. <version>${springVersion}</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.springframework</groupId>
  69. <artifactId>spring-context</artifactId>
  70. <version>${springVersion}</version>
  71. </dependency>
  72. <!--spring AOP相关-->
  73. <dependency>
  74. <groupId>org.springframework</groupId>
  75. <artifactId>spring-aspects</artifactId>
  76. <version>${spring.version}</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.springframework</groupId>
  80. <artifactId>spring-orm</artifactId>
  81. <version>${springVersion}</version>
  82. </dependency>
  83. <!-- spring web + spring MVC-->
  84. <dependency>
  85. <groupId>org.springframework</groupId>
  86. <artifactId>spring-web</artifactId>
  87. <version>${springVersion}</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.springframework</groupId>
  91. <artifactId>spring-webmvc</artifactId>
  92. <version>${springVersion}</version>
  93. </dependency>
  94. <!--<dependency>-->
  95. <!--<groupId>org.springframework</groupId>-->
  96. <!--<artifactId>spring-aop</artifactId>-->
  97. <!--<version>4.3.12.RELEASE</version>-->
  98. <!--</dependency>-->
  99. <!-- log4j配置, 视情况添加-->
  100. <dependency>
  101. <groupId>log4j</groupId>
  102. <artifactId>log4j</artifactId>
  103. <version>${log4jVersion}</version>
  104. </dependency>
  105. <!-- lombok插件导包-->
  106. <dependency>
  107. <groupId>org.projectlombok</groupId>
  108. <artifactId>lombok</artifactId>
  109. <version>${lombokVersion}</version>
  110. <scope>provided</scope>
  111. </dependency>
  112. <!-- hibernate配置-->
  113. <dependency>
  114. <groupId>org.hibernate</groupId>
  115. <artifactId>hibernate-core</artifactId>
  116. <version>${hibernateVersion}</version>
  117. </dependency>
  118. <!-- hibernate 缓存, 视情况添加-->
  119. <dependency>
  120. <groupId>org.hibernate</groupId>
  121. <artifactId>hibernate-ehcache</artifactId>
  122. <version>${hibernateVersion}</version>
  123. </dependency>
  124. <!-- jsp页面使用的jstl支持-->
  125. <dependency>
  126. <groupId>jstl</groupId>
  127. <artifactId>jstl</artifactId>
  128. <version>${jstlVersion}</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>taglibs</groupId>
  132. <artifactId>standard</artifactId>
  133. <version>${taglibVersion}</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>javax.servlet</groupId>
  137. <artifactId>servlet-api</artifactId>
  138. <version>${servletVersion}</version>
  139. <scope>provided</scope>
  140. </dependency>
  141. <!-- DataBase数据库连接 mysql包-->
  142. <dependency>
  143. <groupId>mysql</groupId>
  144. <artifactId>mysql-connector-java</artifactId>
  145. <version>${mysqlVersion}</version>
  146. </dependency>
  147. <!-- 数据库连接池-->
  148. <dependency>
  149. <groupId>c3p0</groupId>
  150. <artifactId>c3p0</artifactId>
  151. <version>${c3p0Version}</version>
  152. </dependency>
  153. <!-- json数据 使springMVC可以返回json值 ,视情况添加-->
  154. <dependency>
  155. <groupId>org.codehaus.jackson</groupId>
  156. <artifactId>jackson-mapper-asl</artifactId>
  157. <version>${jsonVersion}</version>
  158. </dependency>
  159. <!-- Jackson可以轻松的将Java对象转换成json对象和xml文档,同样也可以将json、xml转换成Java对象-->
  160. <dependency>
  161. <groupId>com.fasterxml.jackson.core</groupId>
  162. <artifactId>jackson-core</artifactId>
  163. <version>${jacksonVersion}</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>com.fasterxml.jackson.core</groupId>
  167. <artifactId>jackson-annotations</artifactId>
  168. <version>${jacksonVersion}</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>com.fasterxml.jackson.core</groupId>
  172. <artifactId>jackson-databind</artifactId>
  173. <version>${jacksonVersion}</version>
  174. </dependency>
  175. <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpcore -->
  176. <dependency>
  177. <groupId>org.apache.httpcomponents</groupId>
  178. <artifactId>httpcore</artifactId>
  179. <version>4.4.10</version>
  180. </dependency>
  181. <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
  182. <dependency>
  183. <groupId>org.apache.httpcomponents</groupId>
  184. <artifactId>httpclient</artifactId>
  185. <version>4.5.6</version>
  186. </dependency>
  187. <!--<dependency>
  188. <groupId>commons-collections</groupId>
  189. <artifactId>commons-collections</artifactId>
  190. <version>3.1</version>
  191. </dependency>-->
  192. <dependency>
  193. <groupId>commons-lang</groupId>
  194. <artifactId>commons-lang</artifactId>
  195. <version>2.6</version>
  196. </dependency>
  197. <dependency>
  198. <groupId>org.hibernate</groupId>
  199. <artifactId>hibernate-c3p0</artifactId>
  200. <version>4.3.5.Final</version>
  201. </dependency>
  202. </dependencies>
  203. <build>
  204. <!--<finalName>MQTT</finalName>-->
  205. <!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
  206. <plugins>
  207. <!-- java编译插件 -->
  208. <plugin>
  209. <groupId>org.apache.maven.plugins</groupId>
  210. <artifactId>maven-compiler-plugin</artifactId>
  211. <version>3.2</version>
  212. <configuration>
  213. <source>1.8</source>
  214. <target>1.8</target>
  215. </configuration>
  216. </plugin>
  217. <!--<plugin>-->
  218. <!--<groupId>org.apache.maven.plugins</groupId>-->
  219. <!--<artifactId>maven-war-plugin</artifactId>-->
  220. <!--<version>2.1.1</version>-->
  221. <!--<configuration>-->
  222. <!--<webXml>WebContent\WEB-INF\web.xml</webXml>-->
  223. <!--</configuration>-->
  224. <!--</plugin>-->
  225. </plugins>
  226. </build>
  227. </project>