Every time you perform a goal for the first time, Maven downloads everything it needs to work. Maybe it can't connect to internet because of a Proxy or something like that or it is configure to not connect at all. Check that.
Hope it works :D On 3/30/06, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Hi I am trying to create my first Maven project as guided in the "Maven > GettingStarted Guide" > > But I get the following errors. Any ideas? This is my first step after > installing Maven202. > > Thanks, > > c:>mvn -e archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app > > > [INFO] Scanning for projects... > [INFO] Reactor build order: > [INFO] Maven Quick Start Archetype > [INFO] Maven Mojo Archetype > [INFO] Unnamed - com.devx.greeter:greeter-web:war:1.0-SNAPSHOT > [INFO] Unnamed - com.devx.greeter:greeter:pom:1.0-SNAPSHOT > [INFO] Searching repository for plugin with prefix: 'archetype'. > [WARNING] Cannot resolve plugin-mapping metadata for groupId: > org.apache.maven.plugins - IGNORING. > [WARNING] Cannot resolve plugin-mapping metadata for groupId: > org.codehaus.mojo - IGNORING. > [INFO] > > ---------------------------------------------------------------------------- > [ERROR] BUILD ERROR > [INFO] > > ---------------------------------------------------------------------------- > [INFO] Error building POM (may not be this project's POM). > > > Project ID: org.apache.maven.plugins:maven-archetype-plugin > > Reason: Error getting POM for > 'org.apache.maven.plugins:maven-archetype-plugin' from the repository: > Unable to read local cop > y of metadata: Cannot read metadata from > > 'c:\MavenRepo\org\apache\maven\plugins\maven-archetype-plugin\maven-metadata-central > .xml': attribute value must start with quotation or apostrophe not s > (position: TEXT seen ...</head>\r\n<body>\r\n<link rel=s > ... @6:12) > org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST > > > > > [INFO] > > ---------------------------------------------------------------------------- > [INFO] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: Error resolving > version for 'org.apache.maven.plugins:maven-archetype > -plugin': Unable to read the metadata file for artifact > 'org.apache.maven.plugins:maven-archetype-plugin:pom': Error getting > POM for 'org.apache.maven.plugins:maven-archetype-plugin' from the > repository: Unable to read local copy of metadata: Cannot > read metadata from > 'c:\MavenRepo\org\apache\maven\plugins\maven-archetype-plugin\maven- > metadata-central.xml': > attribute value > must start with quotation or apostrophe not s (position: TEXT seen > ...</head>\r\n<body>\r\n<link rel=s... @6:12) > org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST >
