Hello! Maven should always be run where the pom.xml resides. When you did a "mvn archetype:create ...", maven created the directory of your project that contains the skeleton and the default pom.xml, so you'd really have to "cd" there.
Doing "mvn archetype:create" creates an individual project. If the project exists, maven reports a "BUILD ERROR" to avoid ruining whatever's in the existing project. I think it's safer that way. In your case, having the app and the site residing in a single project, I think you could just create the app, then manually do site in it. Or you could treat the app and site as separate projects that you could merge later on (manually or as a multi-project). Hope it helps. Nap On 1/6/06, Rick Mann <[EMAIL PROTECTED]> wrote: > > Hi folks. I've been using the Maven Ant plugin a bit, and decided to > start a new project from the ground-up using Maven. I also figured I > should run through the (fairly excellent) Getting Started guide: > > http://maven.apache.org/guides/getting-started/index.html > > It mostly works great. But I ran into a small issue and a large one. > > The small one was that the first time they introduce "mvn compile", > it doesn't work unless you cd to your artifactId directory (my-app in > the example). If you do it from the directory above, where you were > when you ran mvn archetype:create, it doesn't work. > > Then, later, they show a couple more archetype:create examples, one > to create a bunch of source for the site, and one to create a webapp > (which is what I want to do). These don't work from within "my-app"; > they create a second "my-app" inside it. You have to CD up one level > to get them to work. > > But, worse than that, they don't work because "my-app" already > exists! I would like to do both the webapp and site archetypes, but I > don't know how to do that. The documentation for the plugin is almost > nonexistent. > > So, anyone got any ideas? Many thanks in advance... > > -- > Rick > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
