pom.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.yingying</groupId>
  6. <artifactId>tourist</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <packaging>jar</packaging>
  9. <name>tourist</name>
  10. <description>tourist questionnaire for Nation Day</description>
  11. <parent>
  12. <groupId>org.springframework.boot</groupId>
  13. <artifactId>spring-boot-starter-parent</artifactId>
  14. <version>1.5.9.RELEASE</version>
  15. <relativePath/> <!-- lookup parent from repository -->
  16. </parent>
  17. <properties>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  20. <java.version>1.8</java.version>
  21. </properties>
  22. <profiles>
  23. <profile>
  24. <id>prod</id>
  25. <properties>
  26. <config.dir>prod</config.dir>
  27. </properties>
  28. </profile>
  29. <profile>
  30. <id>dev</id>
  31. <properties>
  32. <config.dir>dev</config.dir>
  33. </properties>
  34. <activation>
  35. <activeByDefault>true</activeByDefault>
  36. </activation>
  37. </profile>
  38. <profile>
  39. <id>qa</id>
  40. <properties>
  41. <config.dir>qa</config.dir>
  42. </properties>
  43. </profile>
  44. </profiles>
  45. <dependencies>
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-web</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-test</artifactId>
  53. <scope>test</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-devtools</artifactId>
  58. <scope>runtime</scope>
  59. </dependency>
  60. <!-- mysql -->
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-starter-jdbc</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>mysql</groupId>
  67. <artifactId>mysql-connector-java</artifactId>
  68. <scope>runtime</scope>
  69. </dependency>
  70. <!-- redis -->
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-starter-data-redis</artifactId>
  74. </dependency>
  75. <!-- lombok -->
  76. <dependency>
  77. <groupId>org.projectlombok</groupId>
  78. <artifactId>lombok</artifactId>
  79. <optional>true</optional>
  80. </dependency>
  81. <!-- mybatis-plus -->
  82. <dependency>
  83. <groupId>com.baomidou</groupId>
  84. <artifactId>mybatis-plus-boot-starter</artifactId>
  85. <version>2.2.0</version>
  86. </dependency>
  87. <!-- druid -->
  88. <dependency>
  89. <groupId>com.alibaba</groupId>
  90. <artifactId>druid-spring-boot-starter</artifactId>
  91. <version>1.1.0</version>
  92. </dependency>
  93. <!-- thymeleaf -->
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  97. </dependency>
  98. <dependency>
  99. <groupId>net.sourceforge.nekohtml</groupId>
  100. <artifactId>nekohtml</artifactId>
  101. </dependency>
  102. <!-- commons -->
  103. <dependency>
  104. <groupId>org.apache.commons</groupId>
  105. <artifactId>commons-io</artifactId>
  106. <version>1.3.2</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.apache.commons</groupId>
  110. <artifactId>commons-lang3</artifactId>
  111. <version>3.4</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.apache.httpcomponents</groupId>
  115. <artifactId>httpclient</artifactId>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.apache.httpcomponents</groupId>
  119. <artifactId>httpcore</artifactId>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.apache.httpcomponents</groupId>
  123. <artifactId>httpmime</artifactId>
  124. </dependency>
  125. <!-- json -->
  126. <dependency>
  127. <groupId>com.alibaba</groupId>
  128. <artifactId>fastjson</artifactId>
  129. <version>1.2.45</version>
  130. </dependency>
  131. </dependencies>
  132. <build>
  133. <plugins>
  134. <plugin>
  135. <groupId>org.springframework.boot</groupId>
  136. <artifactId>spring-boot-maven-plugin</artifactId>
  137. </plugin>
  138. <plugin>
  139. <groupId>org.apache.maven.plugins</groupId>
  140. <artifactId>maven-compiler-plugin</artifactId>
  141. <configuration>
  142. <source>1.8</source>
  143. <target>1.8</target>
  144. </configuration>
  145. </plugin>
  146. </plugins>
  147. <resources>
  148. <resource>
  149. <filtering>true</filtering>
  150. <directory>src/main/resources/env/${config.dir}</directory>
  151. <includes>
  152. <include>*.*</include>
  153. </includes>
  154. </resource>
  155. <resource>
  156. <directory>src/main/resources/</directory>
  157. </resource>
  158. </resources>
  159. </build>
  160. </project>