Go ahead and send your pom.xml for the WAR project so we can figure it out.
It's ok to have java code specific to the webapp in the WAR project. -Stephen On 3/22/06, Gareth Western <[EMAIL PROTECTED]> wrote: > Hi, > > I'm just getting started with Maven and i'm jumping straight in to the deep > end by trying to convert our existing multi-module project from large, > complex Ant scripts to a (hopefully, by the end of it) simpler POM. The end > result for the project is to create a WAR file, containing each of the > previously complied modules as JARs. The directory structure is something > like this: > > -module1 > --src > ---java > -module2 > --src > ---java > ... > -warModule > --src > ---java > ---webapp > > My first question is: is it ok to have both web application stuff (web.xml / > graphics / etc) as well as java code to be compiled all in the same module > (ie "warModule")? Or would it be better practice to take the Java classes > from the warModule and create another module / JAR just for those, and then > include those in to warModule? > > My second question is: I now have the project compiling and creating a WAR > file. This WAR contains the web.xml, graphics and the JARs from the other > modules, however it also seems to be including all the CLASS files from > these JARs (ie the expanded JARs). So for example in the WAR I'll have a > copy of module1.jar (which contains myClass1.class and myClass2.class), as > well as a copy of myClass1.class and myClass2.class. > > Does anyone know what I could be doing to cause this? If not I can post a > copy of the pom.xml from the modules (either the JAR ones, the WAR one, or > both?). > > Thanks for any and all help. > > Gareth > > -- Stephen Duncan Jr www.stephenduncanjr.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
