Spring Boot configures docker-maven-plugin to build and push images (Dockerfile)

0. Prerequisites: docker, maven, and java have been installed, and the private server of the docker image has been set up and the network has been activated This article is built based on Docker, and you can also specify the build information to build in the POM, you can search by yourself 1. First, open […]

The SpringBoot project uses the docker-maven-plugin plug-in to build docker images and push them to docker hub or docker registry private server

(1573 messages) The SpringBoot project uses the docker-maven-plugin plugin to build the docker image and push it to the docker hub or docker registry private server_spring boot docker plugin_FLY-DUCK’s blog-CSDN bloghttps://blog.csdn.net/fly_duck/article/details/124709727 (1574 messages) Use the Dockerfile file to make a java jar frame package image specific process_memory、of’s blog-CSDN blog https://blog.csdn.net/qq_25406669/article/details/98853529 We know that docker can […]

Spring Boot configures docker-maven-plugin to build and push images

1. Background 1. Before optimization: At present, to build a docker image is to execute mvn clean package first, put the jar package in the target directory on the server, and then build the image through Dockerfile. There are many steps, and you need to log in to the server every time to operate, which […]

[Solved] spring-boot-maven-plugin:2.3.2.RELEASE:repackage failed: Unable to find main class

Questions When executing the install of the public package, it fails, prompting: Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.2.RELEASE:repackage (repackage) on project common: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin: 2.3.2.RELEASE: repackage failed: Unable to find main class Reason: The main class could not be found (this package is a public package, no main class is required) Solution In […]

[Solved] nstall packaging error: Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.7.RELEASE:

nstall packaging error: Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.7.RELEASE:repackage (repackage) on project zbbzfw-common: Execution repackage of goal org.springframework.boot:spring-boot-maven- plugin:2.3.7.RELEASE:repackage failed: Unable to find main class Solution <!– <build>–> <!– <plugins>–> <!– <plugin>–> <!– <groupId>org.springframework.boot</groupId>–> <!– <artifactId>spring-boot-maven-plugin</artifactId>–> <!– </plugin>–> <!– </plugins>–> <!– </build>–>

[Solved] About SpringBoot packaging and compilation error Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.2.6.REL

Solve Failed to execute goal org.springfram….Package and compile error 1. Error content 2. Start troubleshooting 3. Solution 4. Cause Analysis 1. Error content Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.2.6.RELEASE :repackage (default) on project airtransportation-web-admin: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:2.2.6.RELEASE: repackage failed: Unable to find a single main class from the following candidates [com.esituo.ApplicationStarter, com.esituo.web.track.EmsRecordController] 2. Start […]

[Solved] Cannot resolve plugin org.springframework.bootspring-boot-maven-plugin solution

Solution one Because this springboot plug-in is a public component, if maven cannot be downloaded, the first reaction is that there is a problem with your image. The maven image is outside the wall and may not be accessible. Replace it with a domestic image, such as Alibaba Cloud. In the maven installation directory –> […]

[Solved] Spring Boot Maven packaging error: Failed to execute goal org.springframework.bootspring-boot-maven-plugin

In springboot, I want to use jsp to test related problems, but the final package is wrong, and then I look for bugs~ At first, I thought it was the same as other types of errors. I thought that the reason for the error was that the following configuration was introduced in pom.xml: <build> ?<plugins> […]

[Solved] [Error] When IDEA built SpringBoot, MVN reported that the plugin was not found ‘org.springframework.bootspring-boot-maven-plugin’

[Error] When IDEA built SpringBoot, MVN reported that the plugin was not found ‘org.springframework.boot:spring-boot-maven-plugin:’ 1. Error reporting scenario description 2. Problem lock 3. Solutions 1. Error Scenario Description When using IDEASpring Initailizr to create a SpringBoot project, the Spring-boot-maven-plugin plugin is marked in red in pom.xml after the project is created. The mvn console reports […]

[Solved] Plug-in pit _maven-plugin not found when Idea creates maven project, tomcat7-maven-plugin not found plugin error

The pit of the plugin when Idea creates a maven project _maven-plugin not found, tomcat7-maven-plugin not found plugin error Environment: idea2021-02-01 maven3.6.1 java version “1.8.0_201” Problem: New maven project maven’s plugin is popular tomcat7-maven-plugin became popular, Adding the version is useless (most of the Internet is mentioning this version) Resolve: First question: You may be […]