spotify / docker-maven-plugin

INACTIVE: A maven plugin for Docker
Apache License 2.0
2.67k stars 575 forks source link

Getting com.spotify.docker.client.shaded.org.apache.http.client.ClientProtocolException . #402

Closed abhisheknn closed 5 years ago

abhisheknn commented 6 years ago

Following plugin configuration was giving me error .

<plugin>
            <groupId>com.spotify</groupId>
            <artifactId>dockerfile-maven-plugin</artifactId>
            <version>1.3.6</version>
            <configuration>
            <useConfigFile>false</useConfigFile>
            <useMavenSettingsForAuth>true</useMavenSettingsForAuth> 
                <repository>${docker.image.prefix}/dockerAgent</repository>
            <buildArgs>
        <JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
            </buildArgs>
            </configuration>
    <executions>
    <execution>
        <id>default</id>
        <phase>install</phase>
        <goals>
            <goal>build</goal>
        </goals>
    </execution>
    </executions>
        </plugin> 

The Issue got resolved by changing the "dockerAgent" to dockeragent (all letters in small cases).

This Error/Exception should be properly handled, should not throw ClientProtocolException.

Originally posted by @abhisheknn in https://github.com/spotify/docker-maven-plugin/issues/357#issuecomment-427558008

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.