pom.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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>1.0.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. <dependencies>
  17. <!-- SpringBoot集成thymeleaf模板 -->
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  21. </dependency>
  22. <!-- spring-boot-devtools -->
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-devtools</artifactId>
  26. <optional>true</optional> <!-- 表示依赖不会传递 -->
  27. </dependency>
  28. <!-- swagger2-->
  29. <dependency>
  30. <groupId>io.springfox</groupId>
  31. <artifactId>springfox-swagger2</artifactId>
  32. </dependency>
  33. <!--防止进入swagger页面报类型转换错误,排除2.9.2中的引用,手动增加1.5.21版本-->
  34. <dependency>
  35. <groupId>io.swagger</groupId>
  36. <artifactId>swagger-annotations</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>io.swagger</groupId>
  40. <artifactId>swagger-models</artifactId>
  41. </dependency>
  42. <!-- Mysql驱动包 -->
  43. <dependency>
  44. <groupId>mysql</groupId>
  45. <artifactId>mysql-connector-java</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.projectlombok</groupId>
  49. <artifactId>lombok</artifactId>
  50. <scope>provided</scope> <!-- 确保运行时不需要的依赖才用 provided -->
  51. </dependency>
  52. <!-- 核心模块-->
  53. <dependency>
  54. <groupId>com.ruoyi</groupId>
  55. <artifactId>ruoyi-framework</artifactId>
  56. </dependency>
  57. <!-- 定时任务-->
  58. <dependency>
  59. <groupId>com.ruoyi</groupId>
  60. <artifactId>ruoyi-quartz</artifactId>
  61. </dependency>
  62. <!-- 代码生成-->
  63. <dependency>
  64. <groupId>com.ruoyi</groupId>
  65. <artifactId>ruoyi-generator</artifactId>
  66. </dependency>
  67. <!-- 错断链工具-->
  68. <dependency>
  69. <groupId>com.ruoyi</groupId>
  70. <artifactId>ruoyi-project</artifactId>
  71. </dependency>
  72. </dependencies>
  73. <build>
  74. <plugins>
  75. <plugin>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-maven-plugin</artifactId>
  78. <version>2.1.1.RELEASE</version>
  79. <configuration>
  80. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  81. </configuration>
  82. <executions>
  83. <execution>
  84. <goals>
  85. <goal>repackage</goal>
  86. </goals>
  87. </execution>
  88. </executions>
  89. </plugin>
  90. <plugin>
  91. <groupId>org.apache.maven.plugins</groupId>
  92. <artifactId>maven-war-plugin</artifactId>
  93. <version>3.0.0</version>
  94. <configuration>
  95. <failOnMissingWebXml>false</failOnMissingWebXml>
  96. <warName>${project.artifactId}</warName>
  97. </configuration>
  98. </plugin>
  99. </plugins>
  100. <finalName>${project.artifactId}</finalName>
  101. </build>
  102. </project>