apigee / apigee-deploy-maven-plugin

Apache License 2.0
80 stars 169 forks source link

maven: deploy-bundle error #126

Closed SGoutami closed 4 years ago

SGoutami commented 4 years ago

[ERROR] Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.7:deploy (deploy-bundle) on project APIProxy: : MojoExecutionException: connect timed out -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.7:deploy (deploy-bundle) on project APIProxy

when the respective parent pom is used to deploy the package to apigee edge, the above error is faced. tried it with version 1.1.4, 1.1.6, 1.1.7, 2.0.0.

ssvaidyanathan commented 4 years ago

@SGoutami - do you have a https proxy within your corporate network ? Looks like the plugin is not able to hit api.enterprise.apigee.com

SGoutami commented 4 years ago

yes we do have proxy set up and i have added the log for reference

ssvaidyanathan commented 4 years ago

Please remove the logs added above as it has some sensitive info and please change your Apigee password.

From the logs above, I see there is a settings.xml in your Jenkins directory - /root/.m2/settings.xml. So just add the config there if its not already configured

SGoutami commented 4 years ago

All the data above in the log were mocked and none were sensitive. Anyways I have removed the log. Let me give it a try. Thank you.

SGoutami commented 4 years ago

No luck yet.Same deploy-bundle issue with connection timeout error.

[ERROR] Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.2.1:deploy (deploy-bundle) on project mock: connect timed out

The MojoExecutionException got removed

ssvaidyanathan commented 4 years ago

Did you configure the proxy in $HOME/.m2/settings.xml ? If you have configured it correctly, in your maven logs you should see something like set proxy to {host}:{port} that you configured in your settings.xml NOTE: It has to be https protocol

SGoutami commented 4 years ago

image

the settings.xml is configured nicely. But I am still getting the error: [ERROR] Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.2.1:deploy (deploy-bundle) on project mock: connect timed out

What can be other possible places for the error, which I can give a try ?

SGoutami commented 4 years ago

Deployment is Working fine now. You were correct with the proxy set up.