0

我正在尝试使用 maven 插件构建 docker 映像。我在我的 spring boot 应用程序中使用 Spotify docker 插件。

这是我的 pom.xml 的插件部分

    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
        <plugin>
            <groupId>com.spotify</groupId>
            <artifactId>dockerfile-maven-plugin</artifactId>
            <version>1.4.13</version>
            <configuration>
                <repository>${docker.image.prefix}/${docker.image.name}</repository>
                <tag>${project.version}</tag>
            </configuration>
        </plugin>
    </plugins>

当我运行我的mvn dockerfile:build我有以下错误:

    Could not build image: entry 'pom.xml' closed at '4150' before the '6047' bytes specified in the header were written -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
4

0 回答 0