<project> ... <packaging>war</packaging> <build> <plugins> <artifactId>maven-war-plugin</artifactId> <configuration> <*archiveClasses>false</****archiveClasses>*** </configuration> </plugins> </build> </project>
On Tue, Feb 26, 2008 at 8:13 PM, Marco Mistroni <[EMAIL PROTECTED]> wrote: > Stephen, > thanks a lot! it was exactly what i was after > any chances u can share your pom.xml? > > thanks in advance and regards > marco > > On Tue, Feb 26, 2008 at 8:26 AM, Stephen Connolly < > [EMAIL PROTECTED]> wrote: > > > We have developed a lot of web apps with Maven and IDEA. > > > > The war plugin builds an exploded war file in target/${ > > project.build.finalName} > > > > There is a configuration option for the war plugin that controls whether > > it > > packages up the classes in the war module as a jar file and puts that in > > WEB-INF/lib or leaves them as classes in WEB-INF/classes > > > > As to the other dependencies, if they don't end up in WEB-INF/lib, how > > will > > you know that your webapp works? > > > > -Stephen > > > > On Mon, Feb 25, 2008 at 10:12 PM, Marco Mistroni <[EMAIL PROTECTED]> > > wrote: > > > > > hello all > > > @work, we are developing a web application using IntelliJ IDEA. > > > we are not using maven, so structure of directory is as follows > > > > > > jsp (contains jsps and WEB-INF) > > > src > > > |__ java > > > |__ test > > > > > > plus, we are launching tomcat from intelliJ, making tomcat point to > the > > > exploded directory jsp (in fact, the target-classes directory is > > > jsp\web-inf\classes) > > > > > > we are using ant to build the app, which put all the classes in > > > jsp\web-inf\classes. we have tomcat pointing to that directory so that > > > every > > > change in the jsp > > > is immediately reflected on the browser. > > > > > > i wanted to move to maven, but i feel the directory structure imposed > by > > > maven will prevent me from doing what i am doing now. > > > as example > > > > > > maven build a WAR in the target\<yourartifact> directory... .. > so > > > unless i 'hack' maven by > > > specifying as target-classes directory the jsp\web-inf\classes, > i'll > > > have > > > problems... > > > also because in building war maven automatically add all the > > dependencies > > > to > > > web-inf\lib directory..... > > > > > > i feel i cannot do that with maven.... unless i do some hacks > > > > > > > > > has anyone ever end up in a similar situation? > > > > > > > > > regards > > > marco > > > > > >