pom.xml 3.0 KB

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