Today, activating a profile defined in a parent from the child is not possible.

/Anders

On Tue, Oct 18, 2011 at 14:35, Tomasz Pik <tom...@gmail.com> wrote:
> On Tue, Oct 18, 2011 at 1:28 PM, Dirk Olmes <d...@xanthippe.ping.de> wrote:
>> Hi,
>>
>> our Maven (2.2.1) build generates install zips with obfuscated sources
>> from the artifacts within the build. Over the last year we created more
>> and more installer packages this way, using the famous copy/paste approach.
>>
>> I'd like to clean things up so I thought I'd create a parent POM with
>> <packaging>pom</packaging> and have the installer modules inherit from
>> it. Now the problem is that in the installer-parent module I'm binding
>> plugins to the specific lifecycle phases already, e.g.
>>
>> <plugin>
>>  <groupId>org.codehaus.mojo</groupId>
>>  <artifactId>properties-maven-plugin</artifactId>
>>  <executions>
>>    <execution>
>>      <phase>initialize</phase>
>>      <goals>
>>        <goal>read-project-properties</goal>
>>      </goals>
>>      <configuration>
>>        <files>
>>          <file>${basedir}/build.properties</file>
>>        </files>
>>      </configuration>
>>    </execution>
>>  </executions>
>> </plugin>
>>
>> My problem is that I don't want the newly created installer-parent
>> module to execute those plugins but rather the child modules.
>>
>> I am aware of the <pluginManagement> section but fail to see if it would
>> help: I'd still have to list all the plugins to be executed in the
>> individual installer POMs.
>
> Maybe put those plugins into dedicated profile in parent pom and then
> activate this profile in children?
>
> Regards,
> Tomek
>
> PS http://jira.codehaus.org/browse/MNG-4154
>
>>
>> I'm thankful for any hint ...
>>
>> -dirk
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

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

Reply via email to