Maven Issues - mvn install
Now I'm not sure if this is the correct forum to post this on but I couldn't find any forum which seemed to specialise in build tools. If this is not the correct forum, please feel free to move to a more appropriate place.
I'm new to Maven and am having an issue when trying to use the 'mvn install' command on a project. The output I'm getting is:
Code :
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resour
ces-plugin/2.3/maven-resources-plugin-2.3.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resour
ces-plugin/2.3/maven-resources-plugin-2.3.pom
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: org.apache.maven.plugins:maven-resources-plugin
Reason: POM 'org.apache.maven.plugins:maven-resources-plugin' not found in repository: Unable to download the artifact from any repository
org.apache.maven.plugins:maven-resources-plugin: pom:2.3
from the specified remote repositories:
central (http: //repo1.maven.org/maven2)
for project org.apache.maven.plugins:maven-resources-plugin
I know that I'm sitting behind proxy but (I think) I have added the correct <proxy> credentials in my settings.xml file.
Could the error message I'm getting be down to the fact that my proxy is not actually setup correctly? Is there anyway I can test this?
Thanks for your help in advance.
Re: Maven Issues - mvn install
Yes Id say you are getting this error because maven cant download an artifact you need.
// Json
Re: Maven Issues - mvn install
So do you think its because I haven't got my <proxy> setup in my settings.xml file? It currently looks something similar to:
Code :
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>MyUsername</username>
<password>MyPassword</password>
<host>MyHost</host>
<port>80</port>
<nonProxyHosts>MyHost2</nonProxyHosts>
</proxy>
(with the username, password, etc replaced with their correct values). Does this look correct? Is there anyway I can test to confirm that it is definately the proxy causing the issue?
Re: Maven Issues - mvn install
What version of Maven are you using?
// Json
Re: Maven Issues - mvn install
Re: Maven Issues - mvn install
If your proxy username is on a domain you will need to have the domain in the username box as well.
Code :
<username>MyDomain/MyUsername</username>
// Json