Hi all, I've proven now that <classifier> works with Jars packaging but foes NOT with WAR packaging: I can see that when using the following config the WAR plugin is configured with the warName and outputDirectory but NOT the classifier:
Is this just a bug in the WAR plugin then? <build> <plugins> <plugin> <artifactId>maven-war-plugin</artifactId> <configuration> <classifier>fred</classifier> <warName>The WAR</warName> <outputDirectory>outputDir</outputDirectory> </configuration> </plugin> </plugins> </build> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-war-plugin:2.0-beta-2:war' --> [DEBUG] (s) classesDirectory = c:\temp\my-webapp\target\classes [DEBUG] (f) outputDirectory = outputDir [DEBUG] (s) project = [EMAIL PROTECTED] [DEBUG] (f) warName = The WAR [DEBUG] (s) warSourceDirectory = c:\temp\my-webapp\src\main\webapp [DEBUG] (s) webappDirectory = c:\temp\my-webapp\target\my-webapp-1.0-SNAPSHOT All help appreciated. Regards, Shaun. -----Original Message----- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: 09 May 2006 15:34 To: Maven Users List Subject: Re: Is <classifier> with maven-war-plugin? Classifier goes in the top of your XML file, next to artifactId and groupId, not down in the war plugin configuration. At least, that's where I've put it when I've used it on some Jar files. Give that a try. Wayne On 5/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > The <classifier> feature appears not to be supported by the WAR > plugin. Has anyone got this working? > > I always see an installed artifact of the form: > [finalname]-[version].war I'm expecting to see: > [finalname]-[version][classifier].war > > My pom.xml contains the following: > <plugins> > <plugin> > <artifactId>maven-war-plugin</artifactId> > <groupId>org.apache.maven.plugins</groupId> > <configuration> > <classifier>foobar</classifier> > </configuration> > </plugin> > </plugins> > > If I run maven with "--debug" I see no reference to "foobar" in the output. > > All help appreciated as use of classifier is essential to build for > dev, stage and live etc. > Regards, > Shaun. > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___________________________________________________________ Switch an email account to Yahoo! Mail, you could win FIFA World Cup tickets. http://uk.mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]