I don't have any proxies configured. The strange thing is that when I built the WAR project - maven was able to download some of the artifacts (from central repo), and some of them did not (this is why I tried to install manually - for example javax-persistence) - here is my settings.xml file (I removed comments):

<settings xmlns="http://maven.apache.org/settings/1.0.0";
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd";>

<localRepository>C:\_TOOLS\apache-maven-2.0.10\maven-repo</localRepository>

 <proxies>
 </proxies>

 <servers>
 </servers>

 <mirrors>

<mirror>
  <id>codehaus snapshot mirror</id>
  <name>Mirror site of Codehaus</name>
  <url>http://repo1.maven.org/maven2</url>
  <mirrorOf>snapshots</mirrorOf>
</mirror>
<mirror>
  <id>codehaus mirror</id>
  <name>Mirror Site of Codehaus</name>
  <url>http://repo1.maven.org/maven2</url>
  <mirrorOf>codehaus</mirrorOf>
</mirror>
</mirrors>


 <profiles>
 <profile>
   <id>default</id>
   <repositories>
         <repository>
         <id>maven2-repository.dev.java.net</id>
         <name>Java.net Repository for Maven</name>
         <url>http://download.java.net/maven/2/</url>
         <layout>default</layout>
       </repository>
   </repositories>
   </profile>
 </profiles>

 <activeProfiles>
   <activeProfile>default</activeProfile>
 </activeProfiles>

</settings>


Am I missing something here?




Brian Fox pisze:
Check that you don't have a proxy blocking you.

On 4/26/2009 11:15 AM, pjotr wrote:
Hi,

I am not able to get maven-install-plugin (when executing 'mvn install' command)- getting the following error:

[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------ Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.2/maven-install-plugin-2.2.pom Downloading: http://download.java.net/maven/2//org/apache/maven/plugins/maven-install-plugin/2.2/maven-install-plugin-2.2.pom Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.2/maven-install-plugin-2.2.pom [INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-install-plugin
Version: 2.2

Reason: Unable to download the artifact from any repository

org.apache.maven.plugins:maven-install-plugin:pom:2.2

from the specified remote repositories:
central (http://repo1.maven.org/maven2),
maven2-repository.dev.java.net (http://download.java.net/maven/2/)

I checked (http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.2) - required jar and pom is there. Any ideas how to solve it?

Regards
pjotr

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to