Hi All,
I have configured my Apigee maven plugin behind corporate proxy.
Then while deploying one sample proxy through this plugin , I am getting below error while Importing app to organization.
I am getting MojoExecutionException: Unknown host api.enterprise.apigee.com error while importing zipped package to Apigee.
I am running below command from directory where my child pom file is present:
mvn apigee-enterprise:deploy -Ptest -Dusername=*************** -Dpassword=*********** -e
Kindly advice.
HI @Siddhesh
Probably you are in a network that cannot hit that host. Please set proxy properties and run the maven commands. More info here and here
You may need to pass additional proxy parameters
-Dhttp.proxyHost=<http_proxy_ip> -Dhttp.proxyPort=<http_proxy_port> \
-Dhttps.proxyHost=<https_proxy_ip> -Dhttps.proxyPort=<https_proxy_port>
Hope this helps
Thanks Sai,
I have tried below command , Still it is giving same error:
mvn apigee-enterprise:deploy -Ptest -Dusername=********** -Dpassword=****** -Dhttp.proxyHost=proxy.****.com -Dhttp.proxyPort=80
I have already configured proxy at {M2_HOME}/conf/settings.xml.
I don't think this is a proxy issue, because with above proxy setting, I was able to download all maven repository plugins during my first run.
After that I am getting MojoExecutionException: Unknown host api.enterprise.apigee.com error while maven was trying to upload zipped folder to apigee edge.
mavendeplymenterror.txt
Kindly help.
The error clearly states that api.enterprise.apigee.com host is unknown.
Can you ping api.enterprise.apigee.com at the same computer that maven is running?
Can you curl https://api.enterprise.apigee.com/v1/organizations/testmyapi?
DNS problem?
Are you using Edge on-cloud?
Hi ylesyuk1,
I am using Edge public cloud free account.
I have tried hitting same request from POSTMAN rest client from same machine, Its working.
Are there any DNS settings in Maven?
does the ping command work for api.enterprise.apigee.com?
can you put
<ip address from ping command> api.enterprise.apigee.com
line into your hosts file to exclude any dns-behind-proxy issues
and re-run mvn command?
Yes @ylesyuk1 and @Sai Saran Vaidyanathan,
I am not able to ping api.enterprise.apigee.com from git bash from where I am running my maven deploy command.
Its saying "Ping request could not find host api.enterprise.apigee.com. Please check the name and try again."
But then how I am able to deploy same proxy bundle using postman on same machine?
You can deploy bundle using postman, as per here: http://docs.apigee.com/api-services/content/deploy-api-proxies-using-management-api
Just use file form item for post request.
But your CI/CD experience will be inferior.
You still will be better if sort out the way to use your proxy correctly. Can you try those steps:
1. Put into your hosts file line:
52.208.252.46 api.enterprise.apigee.com
2. Run curl command. It will ask your password:
curl https://api.enterprise.apigee.com/v1/organizations/<your-org>; -u <your-org-id-email> --proxy https://<yourproxyhost>:<yourproxyport>; -v
Thanks @ylesyuk1.
I have appended api.enterprise.apigee.com entry to hosts file.
But while running curl command ,I am getting below error:
Kindly help.
Hi @Siddhesh - Please check your inbox. Dropped you an email
Hi All, I Am getting below error. could you please help us out to resolve the below error?
Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.5:configure (configure-bundle-step) on project parent-pom: Execution configure-bundle-step of goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.5:configure failed: Plugin io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.5 or one of its dependencies could not be resolved: Failed to collect dependencies at io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:jar:1.1.5 -> org.apache.axis2:axis2-metadata:jar:1.3 -> org.apache.axis2:axis2-jws-api:jar:1.3: Failed to read artifact descriptor for org.apache.axis2:axis2-jws-api:jar:1.3: Could not transfer artifact org.apache.axis2:axis2-jws-api:pom:1.3 from/to central (http://repo1.maven.org/maven2): This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server (repo1.maven.org) -> [Help 1]
Can you post this as a new post ? Looks like you don't have access to the public central repo. We can discuss on the new post
Could you please look the below link.@Sai Saran Vaidyanathan
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 |