pom.xml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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.1</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <packaging>jar</packaging>
  12. <artifactId>ruoyi-admin</artifactId>
  13. <description>
  14. web服务入口
  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. <!-- swagger2-->
  24. <dependency>
  25. <groupId>io.springfox</groupId>
  26. <artifactId>springfox-swagger2</artifactId>
  27. <version>${swagger.version}</version>
  28. </dependency>
  29. <!-- swagger2-UI-->
  30. <dependency>
  31. <groupId>io.springfox</groupId>
  32. <artifactId>springfox-swagger-ui</artifactId>
  33. <version>${swagger.version}</version>
  34. </dependency>
  35. <!-- 核心模块-->
  36. <dependency>
  37. <groupId>com.ruoyi</groupId>
  38. <artifactId>ruoyi-framework</artifactId>
  39. <version>${ruoyi.version}</version>
  40. </dependency>
  41. </dependencies>
  42. <build>
  43. <plugins>
  44. <plugin>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-maven-plugin</artifactId>
  47. <configuration>
  48. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  49. </configuration>
  50. <executions>
  51. <execution>
  52. <goals>
  53. <goal>repackage</goal>
  54. </goals>
  55. </execution>
  56. </executions>
  57. </plugin>
  58. <plugin>
  59. <groupId>org.apache.maven.plugins</groupId>
  60. <artifactId>maven-war-plugin</artifactId>
  61. <version>3.0.0</version>
  62. <configuration>
  63. <failOnMissingWebXml>false</failOnMissingWebXml>
  64. <warName>${artifactId}</warName>
  65. </configuration>
  66. </plugin>
  67. </plugins>
  68. <finalName>${artifactId}</finalName>
  69. </build>
  70. </project>