I have just downloaded and installed M2Eclipse, but it fails to update the index of the central repo.
At the same time, Maven itself is able to download artifacts from the repo (via command line).
I had the settings.xml
file in maven/conf
, and I copied it to .m2/
directory, but it didn't help.
I have proxy, but proxy settings are given in settings.xml
- commands from command line work fine, but not in Eclipse. In Eclipse it gives me this:
Unable to update index for central|http://repo1.maven.org/maven2
UPDATE:
This is what I get when I try to create a new Maven Project:
Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE from any of the configured repositories.
Could not resolve artifact
Failed to resolve version for org.apache.maven.archetypes:maven-archetype-quickstart:pom:RELEASE: Could not find metadata org.apache.maven.archetypes:maven-archetype-quickstart/maven-metadata.xml in local (C:Documents and Settingsuser.m2
epository)
Failed to resolve version for org.apache.maven.archetypes:maven-archetype-quickstart:pom:RELEASE: Could not find metadata org.apache.maven.archetypes:maven-archetype-quickstart/maven-metadata.xml in local (C:Documents and Settingsuser.m2
epository)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…