pom.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. <parent>
  6. <artifactId>GeoHazardMonitor</artifactId>
  7. <groupId>com.ozs</groupId>
  8. <version>1.0-SNAPSHOT</version>
  9. <relativePath>../pom.xml</relativePath>
  10. </parent>
  11. <modelVersion>4.0.0</modelVersion>
  12. <packaging>jar</packaging>
  13. <version>1.0-SNAPSHOT</version>
  14. <artifactId>hazard-admin</artifactId>
  15. <description>
  16. web服务入口
  17. </description>
  18. <dependencies>
  19. <!-- webSocket web端 消息推送 -->
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-web</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-websocket</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-starter-test</artifactId>
  35. <scope>test</scope>
  36. <exclusions>
  37. <exclusion>
  38. <groupId>org.junit.vintage</groupId>
  39. <artifactId>junit-vintage-engine</artifactId>
  40. </exclusion>
  41. </exclusions>
  42. </dependency>
  43. <!--lombok -->
  44. <dependency>
  45. <groupId>org.projectlombok</groupId>
  46. <artifactId>lombok</artifactId>
  47. <version>1.16.18</version>
  48. </dependency>
  49. <!-- spring-boot-devtools -->
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-devtools</artifactId>
  53. <optional>true</optional> <!-- 表示依赖不会传递 -->
  54. </dependency>
  55. <!-- swagger3-->
  56. <!-- <dependency>-->
  57. <!-- <groupId>io.springfox</groupId>-->
  58. <!-- <artifactId>springfox-boot-starter</artifactId>-->
  59. <!-- </dependency>-->
  60. <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
  61. <dependency>
  62. <groupId>io.swagger</groupId>
  63. <artifactId>swagger-models</artifactId>
  64. <version>1.6.2</version>
  65. </dependency>
  66. <!-- Mysql驱动包 -->
  67. <dependency>
  68. <groupId>mysql</groupId>
  69. <artifactId>mysql-connector-java</artifactId>
  70. </dependency>
  71. <!-- 核心模块-->
  72. <dependency>
  73. <groupId>com.ozs</groupId>
  74. <artifactId>base-framework</artifactId>
  75. </dependency>
  76. <!-- 定时任务-->
  77. <dependency>
  78. <groupId>com.ozs</groupId>
  79. <artifactId>base-quartz</artifactId>
  80. </dependency>
  81. <!-- 代码生成-->
  82. <dependency>
  83. <groupId>com.ozs</groupId>
  84. <artifactId>base-generator</artifactId>
  85. </dependency>
  86. <!-- 业务代码-->
  87. <dependency>
  88. <groupId>com.ozs</groupId>
  89. <artifactId>business-service</artifactId>
  90. <exclusions>
  91. <exclusion>
  92. <artifactId>mybatis-plus-extension</artifactId>
  93. <groupId>com.baomidou</groupId>
  94. </exclusion>
  95. </exclusions>
  96. </dependency>
  97. </dependencies>
  98. <build>
  99. <plugins>
  100. <plugin>
  101. <groupId>org.springframework.boot</groupId>
  102. <artifactId>spring-boot-maven-plugin</artifactId>
  103. <version>2.1.1.RELEASE</version>
  104. <configuration>
  105. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  106. </configuration>
  107. <executions>
  108. <execution>
  109. <goals>
  110. <goal>repackage</goal>
  111. </goals>
  112. </execution>
  113. </executions>
  114. </plugin>
  115. <plugin>
  116. <groupId>org.apache.maven.plugins</groupId>
  117. <artifactId>maven-war-plugin</artifactId>
  118. <version>3.1.0</version>
  119. <configuration>
  120. <failOnMissingWebXml>false</failOnMissingWebXml>
  121. <warName>${project.artifactId}</warName>
  122. </configuration>
  123. </plugin>
  124. </plugins>
  125. <finalName>${project.artifactId}</finalName>
  126. </build>
  127. </project>