Hello,

am trying to get maven 2 to build wars of the form
<artifact>-<version>-<classifier>.war


I configure this:

     <plugin>
       <artifactId>maven-war-plugin</artifactId>
       <configuration>
         <warSourceDirectory>webapp</warSourceDirectory>
         <webResources>
           <classifier>${webapp.classifier}</classifier>
         </webResources>
       </configuration>
     </plugin>

and this:

   <profile>
     <id>build-delbd</id>
     <activation>
       <property>
         <name>type</name>
         <value>delbd</value>
       </property>
</activation> <properties>
       <webapp.classifier>delbd</webapp.classifier>
     </properties>
   </profile>

And i get this when issue a mvn package:
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------ [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-war-plugin:2.1-alpha-1

   (found static expression: 'delbd' which may act as a default value).


Cause: Cannot assign configuration entry 'classifier' to 'class org.apache.maven.model.Resource' from 'delbd', which is of type class java.lang.String


Can someone explain me? The Docs on maven web site states that war plugin takes a String for classifier, but it seems to fails. How should i do it? Thanks.

--
David Delbecq
Institut Royal Météorologique
Ext:557


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to