pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. <parent>
  7. <groupId>com.ruoyi</groupId>
  8. <artifactId>ruoyi</artifactId>
  9. <version>3.8.8</version>
  10. </parent>
  11. <packaging>jar</packaging>
  12. <artifactId>bd-location</artifactId>
  13. <properties>
  14. <maven.compiler.source>8</maven.compiler.source>
  15. <maven.compiler.target>8</maven.compiler.target>
  16. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17. </properties>
  18. <dependencies>
  19. <!-- spring-boot-devtools -->
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-devtools</artifactId>
  23. <optional>true</optional> <!-- 表示依赖不会传递 -->
  24. </dependency>
  25. <!-- swagger3-->
  26. <dependency>
  27. <groupId>io.springfox</groupId>
  28. <artifactId>springfox-boot-starter</artifactId>
  29. </dependency>
  30. <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
  31. <dependency>
  32. <groupId>io.swagger</groupId>
  33. <artifactId>swagger-models</artifactId>
  34. <version>1.6.2</version>
  35. </dependency>
  36. <!-- Mysql驱动包 -->
  37. <dependency>
  38. <groupId>mysql</groupId>
  39. <artifactId>mysql-connector-java</artifactId>
  40. </dependency>
  41. <!-- 核心模块-->
  42. <dependency>
  43. <groupId>com.ruoyi</groupId>
  44. <artifactId>ruoyi-framework</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.dtflys.forest</groupId>
  48. <artifactId>forest-spring-boot-starter</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>net.dreamlu</groupId>
  52. <artifactId>mica-mqtt-client-spring-boot-starter</artifactId>
  53. </dependency>
  54. </dependencies>
  55. <build>
  56. <plugins>
  57. <plugin>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-maven-plugin</artifactId>
  60. <version>2.5.15</version>
  61. <configuration>
  62. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  63. </configuration>
  64. <executions>
  65. <execution>
  66. <goals>
  67. <goal>repackage</goal>
  68. </goals>
  69. </execution>
  70. </executions>
  71. </plugin>
  72. <plugin>
  73. <groupId>org.apache.maven.plugins</groupId>
  74. <artifactId>maven-war-plugin</artifactId>
  75. <version>3.1.0</version>
  76. <configuration>
  77. <failOnMissingWebXml>false</failOnMissingWebXml>
  78. <warName>${project.artifactId}</warName>
  79. </configuration>
  80. </plugin>
  81. <!--The configuration of maven-antrun-plugin 打zip包-->
  82. <plugin>
  83. <groupId>org.apache.maven.plugins</groupId>
  84. <artifactId>maven-antrun-plugin</artifactId>
  85. <version>1.8</version>
  86. <executions>
  87. <execution>
  88. <id>package</id>
  89. <phase>package</phase>
  90. <configuration>
  91. <target>
  92. <ant antfile="build.xml">
  93. <target name="Build"/>
  94. </ant>
  95. </target>
  96. </configuration>
  97. <goals>
  98. <goal>run</goal>
  99. </goals>
  100. </execution>
  101. </executions>
  102. </plugin>
  103. </plugins>
  104. <finalName>${project.artifactId}</finalName>
  105. </build>
  106. </project>