pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. <!-- commons -->
  94. <dependency>
  95. <groupId>org.apache.commons</groupId>
  96. <artifactId>commons-io</artifactId>
  97. <version>1.3.2</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.apache.commons</groupId>
  101. <artifactId>commons-lang3</artifactId>
  102. <version>3.4</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.apache.httpcomponents</groupId>
  106. <artifactId>httpclient</artifactId>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.apache.httpcomponents</groupId>
  110. <artifactId>httpcore</artifactId>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.apache.httpcomponents</groupId>
  114. <artifactId>httpmime</artifactId>
  115. </dependency>
  116. <!-- json -->
  117. <dependency>
  118. <groupId>com.alibaba</groupId>
  119. <artifactId>fastjson</artifactId>
  120. <version>1.2.45</version>
  121. </dependency>
  122. </dependencies>
  123. <build>
  124. <plugins>
  125. <plugin>
  126. <groupId>org.springframework.boot</groupId>
  127. <artifactId>spring-boot-maven-plugin</artifactId>
  128. </plugin>
  129. <plugin>
  130. <groupId>org.apache.maven.plugins</groupId>
  131. <artifactId>maven-compiler-plugin</artifactId>
  132. <configuration>
  133. <source>1.8</source>
  134. <target>1.8</target>
  135. </configuration>
  136. </plugin>
  137. </plugins>
  138. <resources>
  139. <resource>
  140. <filtering>true</filtering>
  141. <directory>src/main/resources/env/${config.dir}</directory>
  142. <includes>
  143. <include>*.*</include>
  144. </includes>
  145. </resource>
  146. <resource>
  147. <directory>src/main/resources/</directory>
  148. </resource>
  149. </resources>
  150. </build>
  151. </project>