Yeah, it was added in 2.0.1, iirc. So he could specify version 2.0.1 if he wants to stick to a defined version (which I like to do).
-- Eric Redmond http://blog.propellors.net On 7/31/07, Wayne Fay <[EMAIL PROTECTED]> wrote: > > No, in all likelihood, version 2.0 of the war plugin did not have this > feature. It must have been added in a version greater than 2.0. > > Wayne > > On 7/31/07, Eugeny N Dzhurinsky <[EMAIL PROTECTED]> wrote: > > 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 > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >