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

MySQL 5.7.16 ZIP package installation and configuration tutorial

This article shares the installation and configur...

Several common methods of sending requests using axios in React

Table of contents Install and introduce axios dep...

Overview and differences between html inline elements and html block-level elements

Block-level element features : •Always occupies a ...

Vue implements image drag and drop function

This article example shares the specific code of ...

A brief discussion on three methods of asynchronous replication in MySQL 8.0

In this experiment, we configure MySQL standard a...

Right align multiple elements in the same row under div in css

Method 1: float:right In addition, floating will ...

A brief discussion on macrotasks and microtasks in js

Table of contents 1. About JavaScript 2. JavaScri...

Vue plugin error: Vue.js is detected on this page. Problem solved

Vue plugin reports an error: Vue.js is detected o...

Ten useful and simple MySQL functions

function 0. Display current time Command: select ...

Implementation of webpack-dev-server to build a local server

Table of contents Preface webpack-deb-server webp...