When using the docker-maven-plugin plug-in, Maven cannot pull the corresponding jar package. The following problems occur: Maven version: Mirror repository configuration: <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> Modify the docker-maven-plugin plugin version to: 0.4.13 and it will work normally <build> <plugins> <plugin> <groupId>com.spotify</groupId> <artifactId>docker-maven-plugin</artifactId> <version>0.4.13</version> <configuration> <imageName>itmuch/microservice-discovery-eureka:0.0.1</imageName> <cmd>["java", "-version"]</cmd> <entryPoint>["java", "-jar", "${project.build.finalName}.jar"]</entryPoint> <!-- Here is the configuration for copying the jar package to the specified directory of the docker container--> <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}</directory> <include>${project.build.finalName}.jar</include> </resource> </resources> </configuration> </plugin> </plugins> </build> This is the end of this article about the docker-maven-plugin plugin cannot pull the corresponding jar package. For more related content about the docker maven plugin plugin cannot pull, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: What are the differences between xHTML and HTML tags?
>>: 6 inheritance methods of JS advanced ES6
Assumption: The stored procedure is executed ever...
Pull the image docker pull mysql View the complet...
My machine environment: Windows 2008 R2 MySQL 5.6...
Before talking about CSS priority, we need to und...
How to write join If you use left join, is the ta...
Better-scroll scrolling principle As a parent con...
Note: nginx installed via brew Website root direc...
This article shares the specific code of jQuery t...
This article shares the specific code of js to re...
1. Single row overflow 1. If a single line overfl...
//grammar: @media mediatype and | not | only (med...
This article shares the specific code of JavaScri...
How to view linux files Command to view file cont...
Today I will share with you a source code contain...
Three ways to define functions in JS Let me expla...