Trying to push a Maven built image to Docker Hub with the authentication details specified in ~/.docker/config.json (as created by docker login) doesn't pull in the correct credentials, resulting in:
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.13:push (push-image) on project publisher: Exception caught: denied: requested access to the resource is denied -> [Help 1]
Setting up the element in ~/.m2/settings.xml works as expected.
Trying to push a Maven built image to Docker Hub with the authentication details specified in ~/.docker/config.json (as created by docker login) doesn't pull in the correct credentials, resulting in:
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.13:push (push-image) on project publisher: Exception caught: denied: requested access to the resource is denied -> [Help 1]
Setting up the element in ~/.m2/settings.xml works as expected.
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T20:39:06+01:00) Maven home: /usr/local/Cellar/maven/3.5.0/libexec Java version: 1.8.0_60, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre Default locale: en_GB, platform encoding: UTF-8 OS name: "mac os x", version: "10.12.4", arch: "x86_64", family: "mac"