Maven Deployment Error io.apigee.buildTools.enterprise4g.mavenplugin:1.1.2

bsram78
Participant I

[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.537 s [INFO] Finished at: 2019-02-13T16:42:30+05:30 [INFO] Final Memory: 7M/91M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.2:deploy (default-cli) on project sow-btba-mobile-subscription-api: MojoExecutionException: Remote host closed connection during handshake: SSL peer shut down incorrectly -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.537 s [INFO] Finished at: 2019-02-13T16:42:30+05:30 [INFO] Final Memory: 7M/91M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.2:deploy (default-cli) on project sow-btba-mobile-subscription-api: MojoExecutionException: Remote host closed connection during handshake: SSL peer shut down incorrectly -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

0 11 482
11 REPLIES 11

Hi @shiva ram

Welcome to the community !

We will need more info on the issue. Just the stack trace log wont be sufficient to help. What is the command you are passing? All the configs correct?

From the above, I found "MojoExecutionException: Remote host closed connection during handshake: SSL peer shut down incorrectly" which usually happens when the machine that is executing this maven call is not able to hit the Management server. I am not sure if you are using the SaaS Version or Private cloud (OPDK), what ever be the case, just be sure that you have access to call the API. I would recommend you to make a Management API call directly from the machine and see if it gives you a response.

Maven Commands

export MAVEN_OPTS='-Dusername=****@gmail.com - Dpassword=********'

mvn clean apigee-enterprise:deploy -Ptest

I am using free trial of apigee and i want to deploy api proxy from my local machine to apigee edge using maven.

what changes should i make in pom.xml file.

Please refer the pom file

pom.txt

Hi @shiva ram

Thanks for the pom. Your config for "apigee.hosturl" and "apigee.apiversion" are incorrect, it should be

<apigee.hosturl>https://api.enterprise.apigee.com</apigee.hosturl>
<apigee.apiversion>v1</apigee.apiversion>

Update that in your pom and try

Hi @Sai Saran Vaidyanathan

I updated the pom then also i got same error.it is working in another machine.

Problem is in maven?


Whats the difference between your machine and other machine it worked on? Did you check the Maven Version and Java version ? Did you compare the logs ?

Hi @Sai Saran Vaidyanathan

I checked the java and maven version it is same, still i am unable to deploy it.

Can you share the logs from the maven command ?

Hi @Sai Saran Vaidyanathan

Please refer the attachment.

Remote host closed connection during handshake: SSL peer shut down incorrectly

Looks like you are not able to connect to https://api.enterprise.apigee.com from the network you are in.

Probably you need to pass your proxy host in your maven command, something like

-Dhttp.proxyHost=<http_proxy_ip> -Dhttp.proxyPort=<http_proxy_port> \
-Dhttps.proxyHost=<https_proxy_ip> -Dhttps.proxyPort=<https_proxy_port>

More info here and here