Well, I don't know what's your issue. It's outside nuxeo. You should be
able to download artifacts from public maven repositories.
I suppose looking at
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.pom
in your browser works too ?
(nevermind about repo1 or repo2, these are redirections done by maven).
Which maven version do you use ? We recommend 2.0.9 or 2.0.10.
Maybe your local repository is corrupted, try to remove (rename if you
don't want to loose it) ~/.m2/repository/
At least, I think a workaround would be to setup Nuxeo repositories in
order to download this artifact from our caches. You may try, create a
file ~/.m2/settings.xml and paste into it:
<setttings>
<repositories>
<repository>
<id>public</id>
<url>http://maven.nuxeo.org/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>public-snapshot</id>
<url>http://maven.nuxeo.org/public-snapshot</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</settings>
But, if it works, it is only a workaround and doesn't explain why your
maven cannot download artifacts from default repository.
Mirto Silvio Busico a écrit :
Julien CARSIQUE ha scritto:
Hello,
Maybe was the maven public repository down when you tested. I just
tried to reproduce your issue and it works fine for me:
mvn
org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create
-DartifactId=test -DgroupId=com.company.sandbox.test
-DarchetypeArtifactId=nuxeo-archetype-start \
-DarchetypeGroupId=org.nuxeo.archetypes -DarchetypeVersion=5.1.6
-DremoteRepositories=http://maven.nuxeo.org/nuxeo-release
[INFO] Scanning for projects...
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.pom
4K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype/1.0-alpha-7/maven-archetype-1.0-alpha-7.pom
3K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-parent/2/maven-archetype-parent-2.pom
2K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven-parent-5.pom
14K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom
3K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.jar
12K downloaded
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Default Project
...
Could you please try again ? If it doesn't work, try to "ping
repo2.maven.org" or look into a net browser if you can reach
"http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-7/".
Cheers,
Julien
Well, I still have the same error.
Also copy&paste your command gives the same error
The ping to repo2 works
I see:
mi...@msb02:/My/SW/Nuxeo$ ping repo2.maven.org
PING repo2.maven.org (38.97.124.18) 56(84) bytes of data.
64 bytes from 38.97.124.18: icmp_seq=1 ttl=48 time=141 ms
64 bytes from 38.97.124.18: icmp_seq=2 ttl=48 time=141 ms
^C64 bytes from 38.97.124.18: icmp_seq=3 ttl=48 time=141 ms
--- repo2.maven.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 10409ms
rtt min/avg/max/mdev = 141.591/141.668/141.723/0.056 ms
mi...@msb02:/My/SW/Nuxeo$
Trying the URL I see a directory with numerous files dated 30-aug-2007
Question: you asked to ping repo2.maven.org but in the command
repo1.maven.org is referenced. Is this correct?
What can I try?
Thanks
Mirto
--
Julien Carsique, Nuxeo (Paris, France)
www.nuxeo.com - The Open Source ECM Platform - www.nuxeo.org
Nuxeo ECM Stack - The Java EE, scalable, standard-based ECM Platform
[email protected] | Tel: +33 1 40 33 79 87
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm