pom.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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>4.1.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. <dependency>
  29. <groupId>de.codecentric</groupId>
  30. <artifactId>spring-boot-admin-starter-client</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.projectlombok</groupId>
  34. <artifactId>lombok</artifactId>
  35. </dependency>
  36. </dependencies>
  37. <build>
  38. <finalName>${project.artifactId}</finalName>
  39. <plugins>
  40. <plugin>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-maven-plugin</artifactId>
  43. <version>${spring-boot.version}</version>
  44. <configuration>
  45. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  46. </configuration>
  47. <executions>
  48. <execution>
  49. <goals>
  50. <goal>repackage</goal>
  51. </goals>
  52. </execution>
  53. </executions>
  54. </plugin>
  55. <plugin>
  56. <groupId>com.spotify</groupId>
  57. <artifactId>docker-maven-plugin</artifactId>
  58. <version>${docker.plugin.version}</version>
  59. <configuration>
  60. <imageName>${docker.namespace}/${project.artifactId}:${project.version}</imageName>
  61. <dockerDirectory>${project.basedir}</dockerDirectory>
  62. <dockerHost>${docker.registry.host}</dockerHost>
  63. <registryUrl>${docker.registry.url}</registryUrl>
  64. <serverId>${docker.registry.url}</serverId>
  65. <resources>
  66. <resource>
  67. <targetPath>/</targetPath>
  68. <directory>${project.build.directory}</directory>
  69. <include>${project.build.finalName}.jar</include>
  70. </resource>
  71. </resources>
  72. </configuration>
  73. </plugin>
  74. </plugins>
  75. </build>
  76. </project>