pom.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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-vue-plus</artifactId>
  7. <groupId>com.ruoyi</groupId>
  8. <version>3.2.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. <!-- spring-boot-devtools -->
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-devtools</artifactId>
  21. <optional>true</optional> <!-- 表示依赖不会传递 -->
  22. </dependency>
  23. <!-- Mysql驱动包 -->
  24. <dependency>
  25. <groupId>mysql</groupId>
  26. <artifactId>mysql-connector-java</artifactId>
  27. </dependency>
  28. <!-- 核心模块-->
  29. <dependency>
  30. <groupId>com.ruoyi</groupId>
  31. <artifactId>ruoyi-framework</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>com.ruoyi</groupId>
  35. <artifactId>ruoyi-system</artifactId>
  36. </dependency>
  37. <!-- 定时任务 @deprecated 3.4.0删除 迁移至xxl-job -->
  38. <!-- <dependency>-->
  39. <!-- <groupId>com.ruoyi</groupId>-->
  40. <!-- <artifactId>ruoyi-quartz</artifactId>-->
  41. <!-- </dependency>-->
  42. <dependency>
  43. <groupId>com.ruoyi</groupId>
  44. <artifactId>ruoyi-job</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.ruoyi</groupId>
  48. <artifactId>ruoyi-oss</artifactId>
  49. </dependency>
  50. <!-- 代码生成-->
  51. <dependency>
  52. <groupId>com.ruoyi</groupId>
  53. <artifactId>ruoyi-generator</artifactId>
  54. </dependency>
  55. <!-- demo模块 -->
  56. <dependency>
  57. <groupId>com.ruoyi</groupId>
  58. <artifactId>ruoyi-demo</artifactId>
  59. </dependency>
  60. </dependencies>
  61. <build>
  62. <finalName>${project.artifactId}</finalName>
  63. <plugins>
  64. <plugin>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-maven-plugin</artifactId>
  67. <version>${spring-boot.version}</version>
  68. <configuration>
  69. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  70. </configuration>
  71. <executions>
  72. <execution>
  73. <goals>
  74. <goal>repackage</goal>
  75. </goals>
  76. </execution>
  77. </executions>
  78. </plugin>
  79. <plugin>
  80. <groupId>org.apache.maven.plugins</groupId>
  81. <artifactId>maven-war-plugin</artifactId>
  82. <version>3.2.0</version>
  83. <configuration>
  84. <failOnMissingWebXml>false</failOnMissingWebXml>
  85. <warName>${project.artifactId}</warName>
  86. </configuration>
  87. </plugin>
  88. <plugin>
  89. <groupId>com.spotify</groupId>
  90. <artifactId>docker-maven-plugin</artifactId>
  91. <version>${docker.plugin.version}</version>
  92. <configuration>
  93. <imageName>${docker.namespace}/ruoyi-server:${project.version}</imageName>
  94. <dockerDirectory>${project.basedir}</dockerDirectory>
  95. <dockerHost>${docker.registry.host}</dockerHost>
  96. <registryUrl>${docker.registry.url}</registryUrl>
  97. <serverId>${docker.registry.url}</serverId>
  98. <resources>
  99. <resource>
  100. <targetPath>/</targetPath>
  101. <directory>${project.build.directory}</directory>
  102. <include>${project.build.finalName}.jar</include>
  103. </resource>
  104. </resources>
  105. </configuration>
  106. </plugin>
  107. </plugins>
  108. </build>
  109. </project>