pom.xml 4.6 KB

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