怎么把弹簧引导应用发布到港口

  介绍

小编给大家分享一下怎么把弹簧引导应用发布到港口,希望大家阅读完这篇文章之后都有所收获、下面让我们一起去探讨吧!

<强>设置。xml配置

& lt; server>   ,,& lt; id> docker-hub   ,,& lt; username> admin   ,,& lt; password> Harbor12345   & lt;才能/server>

<强>砰的一声。xml配置

& lt;/parent>   ,,,& lt; groupId> com.topcheer   ,,,& lt; artifactId> docker   ,,,& lt; version> 0.0.1-SNAPSHOT   ,,,& lt; name> docker   ,,,& lt; description> Demo  project  for  Spring  Boot      & lt;才能properties>   ,,,& lt; project.build.sourceEncoding> UTF-8   ,,,& lt; project.reporting.outputEncoding> UTF-8   ,,,& lt; java.version> 1.8 & lt;/java.version>   ,,,& lt; docker.image.prefix> topcheer   ,,,& lt; docker.repostory> 192.168.180.105:1180   & lt;才能/properties>      & lt;才能dependencies>   ,,      ,,,& lt; dependency>   ,,,,,& lt; groupId> org.springframework.boot   ,,,,,& lt; artifactId> spring-boot-starter-web   ,,,& lt;/dependency>      ,,,& lt; dependency>   ,,,,,& lt; groupId> org.springframework.boot   ,,,,,& lt; artifactId> spring-boot-starter-test   ,,,,,& lt; scope> test   ,,,& lt;/dependency>   & lt;才能/dependencies>   ,,   & lt;才能repositories>   ,,,& lt; repository>   ,,,,,& lt; id> spring-milestones   ,,,,,& lt; name> Spring  Milestones   ,,,,,& lt; url> https://repo.spring.io/milestone   ,,,& lt;/repository>   & lt;才能/repositories>   ,,      ,,& lt; build>   ,,,& lt; finalName> docker   ,,,& lt; plugins>   ,,,,,& lt; plugin>   ,,,& lt; groupId> org.springframework.boot   ,,,& lt; artifactId> spring-boot-maven-plugin   ,,,,,& lt; !——加入下面两项配置——比;   ,,,,,& lt; executions>   ,,,,,,& lt; execution>   ,,,,,,,& lt; goals>   ,,,,,,,,& lt; goal> repackage   ,,,,,,,& lt;/goals>   ,,,,,,& lt;/execution>   ,,,,,& lt;/executions>   ,,,,,& lt; configuration>   ,,,,,,,,& lt; includeSystemScope> true   ,,,,,& lt;/configuration>   ,,& lt;/plugin>   ,,,,,& lt; plugin>   ,,,,,,,& lt; groupId> com.spotify   ,,,,,,,& lt; artifactId> docker-maven-plugin   ,,,,,,,& lt; version> 1.2.0   ,,,,,,,& lt; executions>   ,,,,,,,,,& lt; execution>   ,,,,,,,,,,,& lt; phase> package   ,,,,,,,,,,,& lt; goals>   ,,,,,,,,,,,,,& lt; goal> build   ,,,,,,,,,,,& lt;/goals>   ,,,,,,,,,& lt;/execution>   ,,,,,,,,,& lt; execution>   ,,,,,,,,,,,& lt; id> tag-image   ,,,,,,,,,,,& lt; phase> package   ,,,,,,,,,,,& lt; goals>   ,,,,,,,,,,,,,& lt; goal> tag   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null

怎么把弹簧引导应用发布到港口