docker-maven-plugin 插件无法拉取问题

使用 docker-maven-plugin 插件时,maven无法拉取对应 jar 包。出现下面问题:
docker-maven-plugin 插件无法拉取问题_第1张图片

maven 版本:
docker-maven-plugin 插件无法拉取问题_第2张图片

镜像仓库配置:

<mirror>
      <id>alimavenid>
      <name>aliyun mavenname>
      <url>http://maven.aliyun.com/nexus/content/groups/public/url>
      <mirrorOf>centralmirrorOf>
mirror>

修改 docker-maven-plugin 插件版本 为:0.4.13 后正常

<build>
   <plugins>
        <plugin>
            <groupId>com.spotifygroupId>
            <artifactId>docker-maven-pluginartifactId>
            <version>0.4.13version>
            <configuration>
                <imageName>itmuch/microservice-discovery-eureka:0.0.1imageName>
                <cmd>["java", "-version"]cmd>
                <entryPoint>["java", "-jar", "${project.build.finalName}.jar"]entryPoint>
                
                <resources>
                    <resource>
                        <targetPath>/targetPath>
                        <directory>${project.build.directory}directory>
                        <include>${project.build.finalName}.jarinclude>
                    resource>
                resources>
            configuration>
        plugin>
    plugins>
build>

你可能感兴趣的:(Java,maven,docker)