On 26-Jan-06, at 9:50 AM, Mayorgaadame, Alex wrote:
Laurie,
It's not failing but the mvn archetype:create goal has to be run in
an empty folder.
That's the problem, though: following the Getting Started Guide, when
you run the site archetype you aren't *in* an empty directory...
The site archetype is not so complex, so you're better choice IMHO
is to follow this guide:
http://maven.apache.org/guides/mini/guide-site.html
It's very straight forward and you'll learn what's going on behind
the scenes.
Thanks for the link,
L.
Regards,
Alex
-----Original Message-----
From: Laurie Harper [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 26, 2006 9:35 AM
To: Maven Users List
Subject: [M2] 'site' archetype failing
I just started getting a project set up with M2 and I've run into a
problem following along with the current Getting Started Guide [1].
I'm sure I must be missing something obvious, but I'm not sure what...
[tmp] $ mvn -version
Maven version: 2.0.2
[tmp] $ mvn archetype:create -DgroupId=com.mycompany.app -
DartifactId=my-app
...
[INFO]
----------------------------------------------------------------------
--
----
[INFO] BUILD SUCCESSFUL
[INFO]
----------------------------------------------------------------------
--
----
...
[tmp] $ mvn archetype:create -DgroupId=com.mycompany.app -
DartifactId=my-app -DarchetypeGroupId=org.apache.maven.archetypes -
DarchetypeArtifactId=maven-archetype-site
...
[INFO]
----------------------------------------------------------------------
--
----
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------
--
----
[INFO] my-app already exists - please run from a clean directory
[INFO]
----------------------------------------------------------------------
--
-
...
I tried running the site archetype from the my-app directory created
by the base archetype, but that just resulted in a nested my-app/my-
app... I also tried running the archetypes in the opposite order, but
got the same error. Any help appreciated ;-)
L.
[1] http://maven.apache.org/guides/getting-started/index.html
--
Laurie Harper
Open Source advocate, Java geek: http://www.holoweb.net/laurie
Founder, Zotech Software: http://www.zotechsoftware.com/
---------------------------------------------------------------------
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]
--
Laurie Harper
Open Source advocate, Java geek: http://www.holoweb.net/laurie
Founder, Zotech Software: http://www.zotechsoftware.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]