Getting Started - mvn error

View: New views
2 Messages — Rating Filter:   Alert me  

Getting Started - mvn error

by hilco :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I tried the Quick Start/5 Minute Tutorial but I keep getting an error:
"Embedded error: OldArchetype does not exist." (see below). Does
anyone know how to fix this?

Cheers,
Hilco

$ mvn archetype:create -DarchetypeVersion=1.0-SNAPSHOT
-DarchetypeGroupId=org.codehaus.plexus.examples
-DarchetypeArtifactId=plexus-examples-tutorial -DartifactId=tutorial
-DgroupId=test -DremoteRepositories=http://snapshots.repository.codehaus.org

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Plexus Component
[INFO]    task-segment: [archetype:create] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: test
[INFO] We are using command line specified remote repositories:
http://snapshots.repository.codehaus.org/
[INFO] snapshot
org.codehaus.plexus.examples:plexus-examples-tutorial:1.0-SNAPSHOT:
checking for updates from id0
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/examples/plexus-examples-tutorial/1.0-SNAPSHOT/plexus-examples-tutorial-1.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error creating from archetype

Embedded error: OldArchetype does not exist.
http://repo1.maven.org/maven2/org/codehaus/plexus/examples/plexus-examples-tutorial/1.0-SNAPSHOT/plexus-examples-tutorial-1.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Fri Nov 28 22:06:12 PST 2008
[INFO] Final Memory: 10M/146M
[INFO] ------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Parent Message unknown Re: Getting Started - mvn error

by hilco :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2008/11/28 Jason van Zyl <jvanzyl@...>:
> What version of Maven are you using?

Maven version: 2.0.9
Java version: 1.6.0_10
OS name: "linux" version: "2.6.27-gentoo-r2" arch: "i386" Family: "unix"

> If you use Eclipse it's generally much easier to use m2eclipse to get
> started.

I've been trying NetBeans because I've found Eclipse to be rather
buggy (well, not Eclipse itself so much but the plugins). I'll give it
a try though.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email