The command I stated doesn't require any project setup. You should
able to just run it on your terminal and you get error.
On my Mac10.5, I get this:
~ thebugslayer$ mvn org.apache.maven.plugins:maven-archetype-plugin:
2.0-alpha-2:create -
DarchetypeGroupId=net.liftweb -
DarchetypeArtifactId=lift-archetype-basic -
DarchetypeVersion=0.6 -
DremoteRepositories=http://scala-tools.org/repo-releases -
DgroupId=com.liftone -DartifactId=liftone
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [org.apache.maven.plugins:maven-archetype-
plugin:2.0-alpha-2:create] (aggregator-style)
[INFO]
------------------------------------------------------------------------
Downloading:
http://repo1.maven.org/maven2/com/liftone/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
Downloading:
http://repo1.maven.org/maven2/com/liftone/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
[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: com.liftone
[INFO] We are using command line specified remote repositories:
http://scala-tools.org/repo-releases
Downloading:
http://repo1.maven.org/maven2/net/liftweb/lift-archetype-basic/0.6/lift-archetype-basic-0.6.jar
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: net.liftweb
ArtifactId: lift-archetype-basic
Version: 0.6
Reason: Unable to locate resource in repository
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=net.liftweb -DartifactId=lift-
archetype-basic -Dversion=0.6 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=net.liftweb -DartifactId=lift-
archetype-basic -Dversion=0.6 -Dpackaging=jar -Dfile=/path/to/file -
Durl=[url] -DrepositoryId=[id]
net.liftweb:lift-archetype-basic:jar:0.6
from the specified remote repositories:
id0 (http://scala-tools.org/repo-releases)
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Mar 11 12:42:13 EDT 2008
[INFO] Final Memory: 7M/13M
[INFO]
------------------------------------------------------------------------
On Mar 11, 2008, at 12:17 PM, Brian E. Fox wrote:
Alpha-2 restored backwards compatibility so we need to see the logs to
assist.
-----Original Message-----
From: thebugslayer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2008 10:49 AM
To: Maven Users List
Subject: maven-archetype-plugin 2.0-alpha-2 failed
Hello,
Does anyone know why the earlier version of plugin works, but the
latest
failed?
SUCESS:
mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create
\
-DarchetypeGroupId=net.liftweb \
-DarchetypeArtifactId=lift-archetype-basic \
-DarchetypeVersion=0.6 \
-DremoteRepositories=http://scala-tools.org/repo-releases \
-DgroupId=com.liftone -DartifactId=liftone
FAILED
mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-2:create
\
-DarchetypeGroupId=net.liftweb \
-DarchetypeArtifactId=lift-archetype-basic \
-DarchetypeVersion=0.6 \
-DremoteRepositories=http://scala-tools.org/repo-releases \
-DgroupId=com.liftone -DartifactId=liftone
--
theBUGslayer
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]