pom.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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>com.shawn</groupId>
  7. <artifactId>ShenzeeServer</artifactId>
  8. <version>0.0.1</version>
  9. <packaging>war</packaging>
  10. <name>ShenzeeServer</name>
  11. <description>spring discover server</description>
  12. <parent>
  13. <groupId>org.springframework.boot</groupId>
  14. <artifactId>spring-boot-starter-parent</artifactId>
  15. <version>2.0.2.RELEASE</version>
  16. <relativePath/> <!-- lookup parent from repository -->
  17. </parent>
  18. <properties>
  19. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  20. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  21. <java.version>1.8</java.version>
  22. <commons-collections4.version>4.1</commons-collections4.version>
  23. <spring-cloud.version>Finchley.RC2</spring-cloud.version>
  24. </properties>
  25. <dependencies>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-web</artifactId>
  33. <exclusions>
  34. <exclusion>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-tomcat</artifactId>
  37. </exclusion>
  38. </exclusions>
  39. </dependency>
  40. <!--修改Tomcat依赖时态,本地开发依然可以调用内嵌tomcat-->
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-tomcat</artifactId>
  44. <scope>provided</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.mybatis.spring.boot</groupId>
  48. <artifactId>mybatis-spring-boot-starter</artifactId>
  49. <version>1.3.2</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>mysql</groupId>
  53. <artifactId>mysql-connector-java</artifactId>
  54. <scope>runtime</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-starter-test</artifactId>
  59. <scope>test</scope>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.projectlombok</groupId>
  63. <artifactId>lombok</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>commons-lang</groupId>
  67. <artifactId>commons-lang</artifactId>
  68. <version>2.6</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.apache.commons</groupId>
  72. <artifactId>commons-collections4</artifactId>
  73. <version>${commons-collections4.version}</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.apache.commons</groupId>
  77. <artifactId>commons-lang3</artifactId>
  78. </dependency>
  79. <dependency>
  80. <groupId>com.alibaba</groupId>
  81. <artifactId>fastjson</artifactId>
  82. <version>1.2.58</version>
  83. </dependency>
  84. <!-- swagger2 -->
  85. <dependency>
  86. <groupId>io.springfox</groupId>
  87. <artifactId>springfox-swagger2</artifactId>
  88. <version>2.8.0</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>io.springfox</groupId>
  92. <artifactId>springfox-swagger-ui</artifactId>
  93. <version>2.8.0</version>
  94. </dependency>
  95. </dependencies>
  96. <build>
  97. <finalName>ShenzeeServer</finalName>
  98. <plugins>
  99. <!-- Package the project as an executable jar -->
  100. <plugin>
  101. <groupId>org.springframework.boot</groupId>
  102. <artifactId>spring-boot-maven-plugin</artifactId>
  103. <!-- Set the character encoding for the JVM -->
  104. <configuration>
  105. <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
  106. </configuration>
  107. </plugin>
  108. </plugins>
  109. </build>
  110. </project>