diff --git a/samples/APIandConfig/shared-pom.xml b/samples/APIandConfig/shared-pom.xml index 657102a..4fc4bfd 100644 --- a/samples/APIandConfig/shared-pom.xml +++ b/samples/APIandConfig/shared-pom.xml @@ -69,7 +69,7 @@ com.apigee.edge.config apigee-config-maven-plugin - 2.4.0 + 2.4.4 create-config-targetserver diff --git a/samples/EdgeConfig/shared-pom.xml b/samples/EdgeConfig/shared-pom.xml index 535da83..d81c928 100644 --- a/samples/EdgeConfig/shared-pom.xml +++ b/samples/EdgeConfig/shared-pom.xml @@ -26,7 +26,7 @@ com.apigee.edge.config apigee-config-maven-plugin - 2.4.0 + 2.4.4 create-config-targetserver diff --git a/src/main/java/com/apigee/edge/config/mavenplugin/GatewayAbstractMojo.java b/src/main/java/com/apigee/edge/config/mavenplugin/GatewayAbstractMojo.java index 25b8b54..3bfe1e5 100644 --- a/src/main/java/com/apigee/edge/config/mavenplugin/GatewayAbstractMojo.java +++ b/src/main/java/com/apigee/edge/config/mavenplugin/GatewayAbstractMojo.java @@ -355,11 +355,11 @@ public ServerProfile getProfile() { CredentialsProvider credsProvider = new BasicCredentialsProvider(); credsProvider.setCredentials(new AuthScope(mavenProxy.getHost(), mavenProxy.getPort()), new UsernamePasswordCredentials(mavenProxy.getUsername(), mavenProxy.getPassword())); - builder.setProxy(proxy); builder.setDefaultCredentialsProvider(credsProvider); buildProfile.setProxyUsername(mavenProxy.getUsername()); buildProfile.setProxyPassword(mavenProxy.getPassword()); } + builder.setProxy(proxy); buildProfile.setApacheHttpClient(builder.build()); //Set Proxy configurations