Hi Barrett,

Here's what I do in this situation:

<plugin>
  <artifactId>maven-release-plugin</artifactId>
  <configuration>
    ...
    <arguments>-Pmy.release.profile</arguments>
  </configuration>
</plugin>

the "-P<profile-id>" argument activates <profile-id> when the release:*
goals are run.

Steve

Barrett Nuzum wrote:
> Hi everyone.
>  
> I have a plugin that needs to be executed in two different configurations.
> One configuration is for when being released with the release plugin only.
> Another is for all other times.
>  
> I've figured out the profiles configuration for the execution of the plugins 
> -- but the
> activation is killing me. 
>  
> I noticed the Super POM has a "releasePerform" activation.
> I tried to copy it, but it did not work.
>  
> I also tried just using the existence of a property, but that did not seem to 
> work.
> That is to say --
> <profiles>
>     <profile>
>         <id>1</id>
>         <activation>
>             <property>
>                <name>!someProperty
> [...]
>     <profile>
>         <id>2</id>
>         <activation>
>             <property>
>                <name>someProperty
>  
> Any suggestions? 
>  
> Barrett


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

Reply via email to