pom.xml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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.0</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. <properties>
  17. <pagehelper.boot.version>1.2.5</pagehelper.boot.version>
  18. <swagger.version>2.7.0</swagger.version>
  19. </properties>
  20. <dependencies>
  21. <!-- spring-boot-devtools -->
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-devtools</artifactId>
  25. <optional>true</optional> <!-- 表示依赖不会传递 -->
  26. </dependency>
  27. <!-- pagehelper 分页插件 -->
  28. <dependency>
  29. <groupId>com.github.pagehelper</groupId>
  30. <artifactId>pagehelper-spring-boot-starter</artifactId>
  31. <version>${pagehelper.boot.version}</version>
  32. </dependency>
  33. <!-- swagger2-->
  34. <dependency>
  35. <groupId>io.springfox</groupId>
  36. <artifactId>springfox-swagger2</artifactId>
  37. <version>${swagger.version}</version>
  38. </dependency>
  39. <!-- swagger2-UI-->
  40. <dependency>
  41. <groupId>io.springfox</groupId>
  42. <artifactId>springfox-swagger-ui</artifactId>
  43. <version>${swagger.version}</version>
  44. </dependency>
  45. <!-- 核心模块-->
  46. <dependency>
  47. <groupId>com.ruoyi</groupId>
  48. <artifactId>ruoyi-framework</artifactId>
  49. <version>${ruoyi.version}</version>
  50. </dependency>
  51. </dependencies>
  52. <build>
  53. <plugins>
  54. <plugin>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-maven-plugin</artifactId>
  57. <configuration>
  58. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  59. </configuration>
  60. <executions>
  61. <execution>
  62. <goals>
  63. <goal>repackage</goal>
  64. </goals>
  65. </execution>
  66. </executions>
  67. </plugin>
  68. <plugin>
  69. <groupId>org.apache.maven.plugins</groupId>
  70. <artifactId>maven-war-plugin</artifactId>
  71. <version>3.0.0</version>
  72. <configuration>
  73. <failOnMissingWebXml>false</failOnMissingWebXml>
  74. <warName>${artifactId}</warName>
  75. </configuration>
  76. </plugin>
  77. </plugins>
  78. <finalName>${artifactId}</finalName>
  79. </build>
  80. </project>