pom.xml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <artifactId>spring5-monitor</artifactId>
  6. <packaging>jar</packaging>
  7. <name>admin</name>
  8. <parent>
  9. <groupId>com.yaozhitech</groupId>
  10. <artifactId>spring5</artifactId>
  11. <version>0.1.0</version>
  12. </parent>
  13. <properties>
  14. <admin-server.version>2.1.6</admin-server.version>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter-web</artifactId>
  20. </dependency>
  21. <dependency>
  22. <groupId>de.codecentric</groupId>
  23. <artifactId>spring-boot-admin-starter-server</artifactId>
  24. <version>${admin-server.version}</version>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-security</artifactId>
  29. </dependency>
  30. </dependencies>
  31. <build>
  32. <plugins>
  33. <!--docker镜像build插件-->
  34. <plugin>
  35. <groupId>com.spotify</groupId>
  36. <artifactId>docker-maven-plugin</artifactId>
  37. <version>1.2.0</version>
  38. <configuration>
  39. <!-- 注意imageName一定要是符合正则[a-z0-9-_.]的,否则构建不会成功 -->
  40. <imageName>cike/${project.artifactId}</imageName>
  41. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  42. <rm>true</rm>
  43. <resources>
  44. <resource>
  45. <targetPath>/</targetPath>
  46. <directory>${project.build.directory}</directory>
  47. <include>${project.build.finalName}.jar</include>
  48. </resource>
  49. </resources>
  50. </configuration>
  51. </plugin>
  52. </plugins>
  53. </build>
  54. </project>