Problem in resolving apigee-edge-maven-plugin dependencies

Not applicable

I am using the Apigee Maven Deployment plugin to start with deploying the proxy on Apigee with maven. For this i just cloned the project and run the following commands in the project directory,

  • cd samples/forecastweatherapi-recommended/src/gateway/forecastweatherapi
  • mvn install -Ptest -Dusername={apigee-edge-email} -Dpassword={apigee-edge-password} -Dorg={apigee-edge-org}

And then i got the below error,

[ERROR] Plugin io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:jar:1.1.5: Could not transfer artifact io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:pom:1.1.5 from/to central (http://repo1.maven.org/maven2): repo1.maven.org: Temporary failure in name resolution: Unknown host repo1.maven.org: Temporary failure in name resolution -> [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/PluginResolutionException

Can anyone help me resolve this ?

0 4 1,214
4 REPLIES 4

Hi @Harsh Sharma

Error message says "Temporary failure in name resolution: Unknown host repo1.maven.org". This is error might occur if your running maven behind organisation proxy.

You need to update setting.xml with your organisation proxy details

<proxies>
    <proxy>
        <active>true</active>
        <protocol>http</protocol>
        <host>IPAddressOfYourGateway</host>
        <port>8080</port>
        <username>YourNetworkUserName</username>
        <password>YourNetworkPassword</password>
        <nonProxyHosts>LocalIPAddress1|LocalIPAddress2|LocalIPAddress3</nonProxyHosts>
     </proxy>
 </proxies>

Hi,

Where can i find this file setting.xml ? And i did not get, what exactly kind of information we are going to store here. On an apigee proxy, we have the host as,

http://<organization name>-<environment>.apigee.net/<basepath>

According to your comment, If we are going to store this URL as host, then what will be the PORT number for this ?

Sorry my bad. I did not mean Apigee proxy. I meant proxy server of your network.

Settings.xml file can be found in C:\Users\{username}\.m2 folder. It it is not present there you can create one.

Attached sample settings.txt for you reference. You can get the proxy server information from internet explorer. check the LAN settings.

Not applicable

Check your maven version, for me this error fixed when I updated my machine maven version to


Apache Maven 3.5.0