Ah i understand your point then you need to create the java folder under main manually , i think this should be a bug for the web archetype plugin .
cheers, Javed On 6/13/06, Mike Lundin <[EMAIL PROTECTED]> wrote:
Javed, That's what I tried originally, but when I do that the folders that would normally appear for Java sources are not created. The directory structure becomes: MavenWebAppEx src main resources webapp WEB-INF I still need to manually add the java source folders. I was thinking there was a way to run multiple archetypes in the same directory, but I have yet to get that to work (I end up getting subprojects with dependencies). Thanks much, Mike On 6/13/06, javed mandary <[EMAIL PROTECTED]> wrote: > > Assuming you want to create a webapp with > > 1. package : com.mymaven.example.web > 2.war name: MavenWebAppEx > > Use the following command to have the maven-archetype-webapp create the > webapp for you: > > mvn archetype:create > -DgroupId=com.mymaven.example.web-DartifactId=MavenWebAppEx > -Dpackagename= > com.mymaven.example.web -DarchetypeArtifactId=maven-archetype-webapp > > hope that helps, > Javed > > On 6/13/06, Wayne Fay <[EMAIL PROTECTED]> wrote: > > > > If you drill down in the Central (ibiblio) repo and the Snapshot repo, > > you will find a number of Archetypes, including j2ee-simple, webapp, > > portlet etc. > > http://www.ibiblio.org/maven2/org/apache/maven/archetypes/ > > > > Give them all a try and see what kind of directories, poms, etc are > > created by each one -- perhaps you will find what you were originally > > looking for... > > > > But manually creating directories and modifying poms is the way I > > personally create most of my projects. > > > > Wayne > > > > On 6/10/06, Mike Lundin <[EMAIL PROTECTED]> wrote: > > > Ben, > > > > > > That's the kind of feedback I was looking for, yes. For some reason, > I > > had > > > it in my head that you shouldn't touch the directory structure once > the > > > archetype did it's work, but as I think about it, the pom that both > > > archetypes create is almost the same. Thinking along those lines, > > adding > > > the directories manually begins to make sense. > > > > > > Thanks much for your responses, > > > Mike > > > > > > On 6/10/06, ben short <[EMAIL PROTECTED]> wrote: > > > > > > > > Mike, > > > > > > > > I have used maven for a couple of webapps, usally I use the webapp > > > > archetype to generate the pom and initial structure then I create > the > > > > java directory manually. Once you have created them maven will > compile > > > > the jva source as normal, and the class files get moved to the > correct > > > > place in the produced war. > > > > > > > > I dont know of a archtype that does this for you, but that dosent > mean > > > > there isn't one. > > > > > > > > Also I have created a project that has a webapp module and a java > > > > module. For this I used the quick start archetype to create the jar > > > > module, and the webapp to create the webapp module. I then moved the > > > > out directory's produced under a project directory and created the > > > > project pom manually. > > > > > > > > I hope this is of some help... > > > > > > > > Ben > > > > > > > > > > > > > > > > On 6/10/06, Mike Lundin <[EMAIL PROTECTED]> wrote: > > > > > Ben, > > > > > > > > > > I was assuming that there was an archetype out there that would > > generate > > > > > that structure for me. Is that not the case? > > > > > > > > > > Mike > > > > > > > > > > On 6/9/06, ben short <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > Mike, > > > > > > > > > > > > You can just create the directorys you need from the link .. > > > > > > > > > > > > > > > > > > > > > > > > > http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html > > > > > > > > > > > > Or you can create a seperate project that has the java source > and > > add > > > > > > it as a dependacy of your webapp. > > > > > > > > > > > > > > > > > > > > > > > > Ben > > > > > > > > > > > > On 6/10/06, Mike Lundin <[EMAIL PROTECTED]> wrote: > > > > > > > I'm working on creating a new webapp project using maven and > the > > > > > > > archetype:create with the maven-archetype-webapp archetype. I > > may > > > > not > > > > > > > understand things correctly, but I don't see some directories > > that I > > > > > > would > > > > > > > assume would be in there. There is nothing for Java src files > > or > > > > > > anything > > > > > > > like that in there. > > > > > > > > > > > > > > Should those be in there, or is the preferred method to > created > > > > multiple > > > > > > > maven projects and make them all dependencies on each > other? I > > > > tried > > > > > > > creating archetypes within archetypes (by changing package to > > pom), > > > > but > > > > > > that > > > > > > > seem to disregard the archetype I sent in and only ever used > the > > > > > > quickStart > > > > > > > archetype. > > > > > > > > > > > > > > Any help on this would be greatly appreciated -- and feel free > > to > > > > point > > > > > > me > > > > > > > to a URL that has more information. I've looked through the > > > > resources I > > > > > > > know and am not finding anything definitive. > > > > > > > > > > > > > > Thanks much, > > > > > > > Mike > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > Mike Lundin > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > Mike Lundin > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- Mike Lundin