Did you make a clean command before ? On Thu, Jul 31, 2008 at 10:53 AM, zm <[EMAIL PROTECTED]> wrote:
> > It didn't work as expected ... :( > > I have the following in my pon.xml: > > <build> > > <outputDirectory>WebContent/WEB-INF/classes</outputDirectory> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-war-plugin</artifactId> > <version>2.0.1</version> > <executions> > <goal>explode</goal> > </executions> > <configuration> > > <archiveClasses>true</archiveClasses> > <dependentWarIncludes> > **/resources/*.* > </dependentWarIncludes> > <webResources> > <resource> > <!-- this is > relative to the pom.xml directory --> > > <directory>${basedir}/WebContent</directory> > </resource> > </webResources> > </configuration> > </plugin> > </plugins> > </build> > > The problem is that it creates a jar file inside lib dir, as expected and > just like I need it. But still it doesn't delete the classes from the > WEB-INF\classes folder. > > I've found http://jira.codehaus.org/browse/MWAR-82 this reported issue , > with no solution ... probably was tested, but still I don't get the desired > results. > > Any idea? > > Thanks > > > > > Wendy Smoak-3 wrote: > > > > On Wed, Jul 30, 2008 at 10:27 AM, zm <[EMAIL PROTECTED]> wrote: > > > >> I have a WAR project that builds correctly in Maven2. > >> > >> What I want to know, is if there is a way of making maven to do an > >> internal > >> JAR package of the WAR classes. > > > > http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html > > > > archiveClasses - boolean - Whether a JAR file will be created for the > > classes in the webapp. Using this optional configuration parameter > > will make the generated classes to be archived into a jar file and the > > classes directory will then be excluded from the webapp. Default value > > is false. > > > > (There is a configuration example on the Usage page, just replace the > > parameter name inside the configuration element, or ask if you need a > > complete example.) > > > > -- > > Wendy > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/Maven-WAR-with-self-classes-as-package-tp18738442p18750322.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >