You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by David Delbecq <de...@oma.be> on 2008/03/20 13:34:57 UTC

setting classifier for maven war plugin

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: setting classifier for maven war plugin

Posted by David Delbecq <de...@oma.be>.
En l'instant précis du 20/03/08 13:34, David Delbecq s'exprimait en ces 
termes:
> 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.
>
Ok, stupid me putting classifier at wrong place :s

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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org