Steven: Thanks for the response. That would work -- except the profiles need to be mutually exclusive. If the "my.release.profile" is active, the "my.snapshot.profile" needs to be inactive. Anybody got any idea why the exact syntax from the Super POM does nothing? Barrett :: Barrett Nuzum Consultant, Skill Development Direct: 918.640.4414 Fax: 972.789.1340
Valtech Technologies, Inc. 5080 Spectrum Drive Suite 700 West Addison, Texas 75001 www.valtech.com <http://www.valtech.com/> making IT business friendly ________________________________ From: Steven Rowe [mailto:[EMAIL PROTECTED] Sent: Tue 7/17/2007 9:03 AM To: Maven Users List Subject: Re: Profile activation - release 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]