3

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

FChiri
  • 707
  • 8
  • 14

2 Answers2

3

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.

Joe Taras
  • 15,166
  • 7
  • 42
  • 55
FChiri
  • 707
  • 8
  • 14
1

delete target file from you project, and then execute inside terminal this command ./mvnw or ./mvnw install and after that try again with this command mvn -e package -Pprod verify jib:dockerBuild inside terminal also

Abdalrhman Alkraien
  • 645
  • 1
  • 7
  • 22