The docker-maven-plugin plugin cannot pull the corresponding jar package

The docker-maven-plugin plugin cannot pull the corresponding jar package

When using the docker-maven-plugin plug-in, Maven cannot pull the corresponding jar package. The following problems occur:

insert image description here

Maven version:

insert image description here

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:
  • Summary of the dockerfile-maven-plugin usage guide
  • Detailed usage of docker-maven-plugin
  • Use of Maven plugin docker-maven-plugin
  • dockerfile-maven-plugin minimalist tutorial (recommended)
  • Teach you how to use docker-maven-plugin to automate deployment

<<:  What are the differences between xHTML and HTML tags?

>>:  6 inheritance methods of JS advanced ES6

Recommend

How to implement Mysql scheduled tasks under Linux

Assumption: The stored procedure is executed ever...

Tutorial on installing MySQL with Docker and implementing remote connection

Pull the image docker pull mysql View the complet...

How to reset the root password of Mysql in Windows if you forget it

My machine environment: Windows 2008 R2 MySQL 5.6...

Web page CSS priority is explained in detail for you

Before talking about CSS priority, we need to und...

Mysql join table and id auto-increment example analysis

How to write join If you use left join, is the ta...

Implementation of multi-site configuration of Nginx on Mac M1

Note: nginx installed via brew Website root direc...

jQuery implements Table paging effect

This article shares the specific code of jQuery t...

js implements mouse in and out card switching content

This article shares the specific code of js to re...

Summary of basic usage of CSS3 @media

//grammar: @media mediatype and | not | only (med...

JavaScript to achieve window display effect

This article shares the specific code of JavaScri...

Detailed explanation of commands to view linux files

How to view linux files Command to view file cont...

The latest popular script Autojs source code sharing

Today I will share with you a source code contain...