You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

155 lines
5.3KB

  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>bugdq.com</groupId>
  7. <artifactId>short_url</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <name>short_url</name>
  10. <url>http://maven.apache.org</url>
  11. <parent>
  12. <groupId>org.springframework.boot</groupId>
  13. <artifactId>spring-boot-starter-parent</artifactId>
  14. <version>1.5.6.RELEASE</version>
  15. </parent>
  16. <properties>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. </properties>
  19. <dependencies>
  20. <!-- 下面两个引入为了操作数据库 -->
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-data-jpa</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>mysql</groupId>
  27. <artifactId>mysql-connector-java</artifactId>
  28. </dependency>
  29. <!-- 为了监控数据库 -->
  30. <dependency>
  31. <groupId>com.alibaba</groupId>
  32. <artifactId>druid</artifactId>
  33. <version>1.0.25</version>
  34. </dependency>
  35. <!-- tomcat -->
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter-tomcat</artifactId>
  39. <scope>provided</scope>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.apache.tomcat.embed</groupId>
  43. <artifactId>tomcat-embed-jasper</artifactId>
  44. <scope>provided</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>javax.servlet</groupId>
  48. <artifactId>javax.servlet-api</artifactId>
  49. <scope>provided</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>javax.servlet</groupId>
  53. <artifactId>jstl</artifactId>
  54. </dependency>
  55. <!-- spring web MVC -->
  56. <dependency>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-starter-web</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>junit</groupId>
  62. <artifactId>junit</artifactId>
  63. <scope>test</scope>
  64. </dependency>
  65. <!-- 只需引入spring-boot-devtools 即可实现热部署 -->
  66. <dependency>
  67. <groupId>org.springframework.boot</groupId>
  68. <artifactId>spring-boot-devtools</artifactId>
  69. </dependency>
  70. <!-- spring boot websocket -->
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-starter-websocket</artifactId>
  74. </dependency>
  75. <!-- Json包 -->
  76. <dependency>
  77. <groupId>com.alibaba</groupId>
  78. <artifactId>fastjson</artifactId>
  79. <version>1.2.16</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.apache.httpcomponents</groupId>
  83. <artifactId>httpclient</artifactId>
  84. <version>4.5.9</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.projectlombok</groupId>
  88. <artifactId>lombok</artifactId>
  89. <optional>true</optional>
  90. </dependency>
  91. </dependencies>
  92. <repositories>
  93. <repository>
  94. <id>spring-snapshots</id>
  95. <url>http://repo.spring.io/snapshot</url>
  96. <snapshots>
  97. <enabled>true</enabled>
  98. </snapshots>
  99. </repository>
  100. <repository>
  101. <id>spring-milestones</id>
  102. <url>http://repo.spring.io/milestone</url>
  103. <snapshots>
  104. <enabled>true</enabled>
  105. </snapshots>
  106. </repository>
  107. </repositories>
  108. <build>
  109. <plugins>
  110. <plugin>
  111. <groupId>org.springframework.boot</groupId>
  112. <artifactId>spring-boot-maven-plugin</artifactId>
  113. <version>1.4.2.RELEASE</version>
  114. </plugin>
  115. <plugin>
  116. <artifactId>maven-compiler-plugin</artifactId>
  117. <version>3.3</version>
  118. <configuration>
  119. <source>1.8</source>
  120. <target>1.8</target>
  121. <encoding>UTF-8</encoding>
  122. <compilerArguments>
  123. <extdirs>webapp/WEB-INF/lib</extdirs>
  124. </compilerArguments>
  125. </configuration>
  126. </plugin>
  127. </plugins>
  128. <resources>
  129. <resource>
  130. <directory>src/main/webapp</directory>
  131. <targetPath>META-INF/resources</targetPath>
  132. <includes>
  133. <include>**/**</include>
  134. </includes>
  135. </resource>
  136. <resource>
  137. <directory>src/main/resources</directory>
  138. </resource>
  139. </resources>
  140. </build>
  141. <pluginRepositories>
  142. <pluginRepository>
  143. <id>spring-snapshots</id>
  144. <url>http://repo.spring.io/snapshot</url>
  145. </pluginRepository>
  146. <pluginRepository>
  147. <id>spring-milestones</id>
  148. <url>http://repo.spring.io/milestone</url>
  149. </pluginRepository>
  150. </pluginRepositories>
  151. </project>