On Tue, Jul 31, 2007 at 05:38:53PM +0300, Eugeny N Dzhurinsky wrote: > On Tue, Jul 31, 2007 at 08:40:14AM -0400, Ian Springer wrote: > > Eugeny N Dzhurinsky wrote: > >> Hello! > >> > >> Could somebody please explain how is it possible to create WAR file from > >> WEB > >> application, but instead of having Java sources compiled and placed into > >> WEB-INF/classes - package those classes as a JAR file and place it into > >> WEB-INF/lib/? > >> > > <archiveClasses>true</archiveClasses> in the plugin config. > > For some reason it doesn't work: > > > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <configuration> > <source>1.5</source> > <target>1.5</target> > </configuration> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-war-plugin</artifactId> > <version>2.0</version> > <configuration> > <archiveClasses>true</archiveClasses> > </configuration> > </plugin> > </plugins> > </build>
I just implemented this: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <archiveClasses>true</archiveClasses> </configuration> </plugin> </plugins> </build> and it worked! Is version 2.0 is broken? -- Eugene N Dzhurinsky
pgpAnUyp9q1pM.pgp
Description: PGP signature