pom.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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-extend</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-monitor-admin</artifactId>
  13. <dependencies>
  14. <!-- SpringWeb模块 -->
  15. <dependency>
  16. <groupId>org.springframework.boot</groupId>
  17. <artifactId>spring-boot-starter-web</artifactId>
  18. </dependency>
  19. <!-- spring security 安全认证 -->
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-security</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>de.codecentric</groupId>
  26. <artifactId>spring-boot-admin-starter-server</artifactId>
  27. </dependency>
  28. </dependencies>
  29. <build>
  30. <finalName>${project.artifactId}</finalName>
  31. <plugins>
  32. <plugin>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-maven-plugin</artifactId>
  35. <version>${spring-boot.version}</version>
  36. <configuration>
  37. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  38. </configuration>
  39. <executions>
  40. <execution>
  41. <goals>
  42. <goal>repackage</goal>
  43. </goals>
  44. </execution>
  45. </executions>
  46. </plugin>
  47. <plugin>
  48. <groupId>com.spotify</groupId>
  49. <artifactId>docker-maven-plugin</artifactId>
  50. <version>${docker.plugin.version}</version>
  51. <configuration>
  52. <imageName>${docker.namespace}/${project.artifactId}:${project.version}</imageName>
  53. <dockerDirectory>${project.basedir}</dockerDirectory>
  54. <dockerHost>${docker.registry.host}</dockerHost>
  55. <registryUrl>${docker.registry.url}</registryUrl>
  56. <serverId>${docker.registry.url}</serverId>
  57. <resources>
  58. <resource>
  59. <targetPath>/</targetPath>
  60. <directory>${project.build.directory}</directory>
  61. <include>${project.build.finalName}.jar</include>
  62. </resource>
  63. </resources>
  64. </configuration>
  65. </plugin>
  66. </plugins>
  67. </build>
  68. </project>