maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Adams <matt...@matthewadams.me>
Subject Re: Problem reusing specific plugin executions with profiles
Date Fri, 08 Feb 2013 18:16:12 GMT
Wayne Fay wrote
>> If you then need the executions in the root and only some children... put
>> the executions in pluginManagement in the root but without calling out
>> any
>> goals. Repeat the executions in 
> <plugins>
>  in the root, calling out the
>> goals for those to execute and specifying 
> <inherited>
> false
> </inherited>
>  and
>> then finally repeat for the child projects
> 
> I doubt that solves his problem. He wants to be able to specify from
> the command line which profiles to utilize during this specific build
> of a given module -- so editing poms etc is not going to interest him.
> I could be wrong though.

The reason it solved my problem was because I specify via the command line
the profiles I want to activate, then, in the pom's <profile> sections, I
configure the particular plugin executions I want in the child pom's
<project><profiles><profile><id>...</id><build><plugins>
section.

-matthew



--
View this message in context: http://maven.40175.n5.nabble.com/Problem-reusing-specific-plugin-executions-with-profiles-tp5746276p5746397.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


Mime
View raw message