You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by li...@escalon.de on 2005/11/21 19:31:52 UTC

Setting an arbitrary property for a plugin within its configuration

Hi,

I always need to run the eclipse plugin with a certain profile (some common resources must be ignored, the eclipse plugin does not yet properly add common resources outside project folders).

We defined a build profile that does not define this resource and activate it using a role property on the commandline, like so:

mvn eclipse:eclipse -Drole=eclipse

Is it possible to set this property permanently within the plugin configuration?

Something like:

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<configuration>
  <properties>
    <role>eclipse</role>
  </properties>
</configuration>
</plugin>

This particular syntax does not work, I tried it :-(

Regards,
Dietrich

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


Re: Setting an arbitrary property for a plugin within its configuration

Posted by Maria Odea Ching <oc...@mergere.com>.
Hi  Dietrich,

You could specify a property (role, eclipse) inside the properties tag 
of your pom.xml file (outside of the plugin configuration),
then use the property defined to configure your eclipse plugin.

-Deng


lists@escalon.de wrote:

>Hi,
>
>I always need to run the eclipse plugin with a certain profile (some common resources must be ignored, the eclipse plugin does not yet properly add common resources outside project folders).
>
>We defined a build profile that does not define this resource and activate it using a role property on the commandline, like so:
>
>mvn eclipse:eclipse -Drole=eclipse
>
>Is it possible to set this property permanently within the plugin configuration?
>
>Something like:
>
><plugin>
><groupId>org.apache.maven.plugins</groupId>
><artifactId>maven-eclipse-plugin</artifactId>
><configuration>
>  <properties>
>    <role>eclipse</role>
>  </properties>
></configuration>
></plugin>
>
>This particular syntax does not work, I tried it :-(
>
>Regards,
>Dietrich
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>  
>


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