pom.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.1.0.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.fd</groupId>
  12. <artifactId>gis_cesium</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>gis_cesium</name>
  15. <packaging>war</packaging>
  16. <description>Demo project for Spring Boot</description>
  17. <properties>
  18. <java.version>1.8</java.version>
  19. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  20. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  21. <maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
  22. <swagger2.version>2.9.2</swagger2.version>
  23. <lang3.version>3.7</lang3.version>
  24. </properties>
  25. <dependencies>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-web</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.projectlombok</groupId>
  32. <artifactId>lombok</artifactId>
  33. <optional>true</optional>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-test</artifactId>
  38. <scope>test</scope>
  39. </dependency>
  40. <!--swagger2核心包和swagger-ui界面包-->
  41. <dependency>
  42. <groupId>io.springfox</groupId>
  43. <artifactId>springfox-swagger2</artifactId>
  44. <version>${swagger2.version}</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>io.springfox</groupId>
  48. <artifactId>springfox-swagger-ui</artifactId>
  49. <version>${swagger2.version}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-data-jpa</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>mysql</groupId>
  57. <artifactId>mysql-connector-java</artifactId>
  58. </dependency>
  59. <!--StringUtils -->
  60. <dependency>
  61. <groupId>org.apache.commons</groupId>
  62. <artifactId>commons-lang3</artifactId>
  63. <version>${lang3.version}</version>
  64. </dependency>
  65. <!-- Alibaba fastjson-->
  66. <dependency>
  67. <groupId>com.alibaba</groupId>
  68. <artifactId>fastjson</artifactId>
  69. <version>1.2.47</version>
  70. </dependency>
  71. </dependencies>
  72. <build>
  73. <plugins>
  74. <!--需要这样配置才能打包-->
  75. <plugin>
  76. <groupId>org.apache.maven.plugins</groupId>
  77. <artifactId>maven-compiler-plugin</artifactId>
  78. <version>3.1</version>
  79. <configuration>
  80. <source>${java.version}</source>
  81. <target>${java.version}</target>
  82. </configuration>
  83. </plugin>
  84. <plugin>
  85. <groupId>org.apache.maven.plugins</groupId>
  86. <artifactId>maven-surefire-plugin</artifactId>
  87. <version>${maven-surefire-plugin.version}</version>
  88. <configuration>
  89. <skipTests>true</skipTests> <!--默认关掉单元测试 -->
  90. </configuration>
  91. </plugin>
  92. </plugins>
  93. <!--jar default name -->
  94. <finalName>cesium</finalName>
  95. </build>
  96. </project>