Skip to content
Advertisement

error:Failed to execute goal com.google.cloud.tools:jib-maven-plugin:0.9.11:dockerBuild dockerizing JHipster-Registry

When I run this command:

mvn -e package -Pprod verify jib:dockerBuild

in jhipster-registry standard project, to dockerize this application, I get this error:

[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:0.9.11:dockerBuild (default-cli) on project jhipster-registry: Invalid image reference: JHipster Registry:5.0.0 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.google.cloud.tools:jib-maven-plugin:0.9.11:dockerBuild (default-cli) on project jhipster-registry: Invalid image reference: JHipster Registry:5.0.0

The link suggested in Help1 is:

https://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Advertisement

Answer

This is a “generic error message”. My solution is:

docker system prune

This clean the docker images/container and the build docker images of registry gonna be ok.

3 People found this is helpful
Advertisement