org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.spotify:docker-maven-plugin:0.4.6:build (default) on project MyProject: Exception caught

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Amazon ECR token in config.json not picked up

    GitHub | 8 months ago | ocker-docker-gummi-klokker
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.spotify:docker-maven-plugin:0.4.6:build (default) on project MyProject: Exception caught

    Root Cause Analysis

    1. com.spotify.docker.client.shaded.javax.ws.rs.NotAuthorizedException

      HTTP 401 Unauthorized

      at org.glassfish.jersey.client.JerseyInvocation.convertToException()
    2. jersey-core-client
      ClientRuntime$2.run
      1. org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:984)
      2. org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:799)
      3. org.glassfish.jersey.client.JerseyInvocation.access$500(JerseyInvocation.java:91)
      4. org.glassfish.jersey.client.JerseyInvocation$5.completed(JerseyInvocation.java:760)
      5. org.glassfish.jersey.client.ClientRuntime.processResponse(ClientRuntime.java:197)
      6. org.glassfish.jersey.client.ClientRuntime.access$300(ClientRuntime.java:78)
      7. org.glassfish.jersey.client.ClientRuntime$2.run(ClientRuntime.java:179)
      7 frames
    3. Jersey Core
      RequestScope.runInScope
      1. org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
      2. org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
      3. org.glassfish.jersey.internal.Errors.process(Errors.java:315)
      4. org.glassfish.jersey.internal.Errors.process(Errors.java:297)
      5. org.glassfish.jersey.internal.Errors.process(Errors.java:267)
      6. org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:340)
      6 frames
    4. jersey-core-client
      ClientRuntime$3.run
      1. org.glassfish.jersey.client.ClientRuntime$3.run(ClientRuntime.java:209)
      1 frame
    5. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      2. java.util.concurrent.FutureTask.run(Unknown Source)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      5. java.lang.Thread.run(Unknown Source)
      5 frames