pom.xml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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>ruoyi</artifactId>
  7. <groupId>com.ruoyi</groupId>
  8. <version>3.8.6</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <packaging>jar</packaging>
  12. <artifactId>rouyi-api</artifactId>
  13. <description>
  14. api服务入口
  15. </description>
  16. <dependencies>
  17. <!-- spring-boot-devtools -->
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-devtools</artifactId>
  21. <optional>true</optional> <!-- 表示依赖不会传递 -->
  22. </dependency>
  23. <!-- swagger3-->
  24. <dependency>
  25. <groupId>io.springfox</groupId>
  26. <artifactId>springfox-boot-starter</artifactId>
  27. </dependency>
  28. <!-- Mysql驱动包 -->
  29. <dependency>
  30. <groupId>mysql</groupId>
  31. <artifactId>mysql-connector-java</artifactId>
  32. </dependency>
  33. <!-- 核心模块-->
  34. <dependency>
  35. <groupId>com.ruoyi</groupId>
  36. <artifactId>ruoyi-framework</artifactId>
  37. </dependency>
  38. </dependencies>
  39. <build>
  40. <plugins>
  41. <plugin>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-maven-plugin</artifactId>
  44. <version>2.1.1.RELEASE</version>
  45. <configuration>
  46. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  47. </configuration>
  48. <executions>
  49. <execution>
  50. <goals>
  51. <goal>repackage</goal>
  52. </goals>
  53. </execution>
  54. </executions>
  55. </plugin>
  56. <plugin>
  57. <groupId>org.apache.maven.plugins</groupId>
  58. <artifactId>maven-war-plugin</artifactId>
  59. <version>3.1.0</version>
  60. <configuration>
  61. <failOnMissingWebXml>false</failOnMissingWebXml>
  62. <warName>${project.artifactId}</warName>
  63. </configuration>
  64. </plugin>
  65. </plugins>
  66. <finalName>${project.artifactId}</finalName>
  67. </build>
  68. </project>