You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org> on 2007/09/25 13:46:11 UTC

[jira] Deleted: (MNG-3216) maven profile activation does not work through parent inheritance

     [ http://jira.codehaus.org/browse/MNG-3216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Venisse deleted MNG-3216:
----------------------------------


> maven profile activation does not work through parent inheritance
> -----------------------------------------------------------------
>
>                 Key: MNG-3216
>                 URL: http://jira.codehaus.org/browse/MNG-3216
>             Project: Maven 2
>          Issue Type: Bug
>            Reporter: tony nys
>
> When I have a simple maven module with the following profile definition inside the pom, it works:
> ...
>   <profile>
>     <id>TONY</id>
> 	<activation>
> 	<property>
> 	<name>user.name</name>
> 	<value>HV58HR</value>
> 	</property>
> 	</activation>
>     <properties>
>     </properties>
>    
> So in this case, my profile is activated based on my OS user name
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'help'.
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Web Enabled Leasing
> [INFO]    task-segment: [help:active-profiles] (aggregator-style)
> [INFO] ----------------------------------------------------------------------------
> [INFO] [help:active-profiles]
> [INFO]
> Active Profiles for Project 'be.inglease.wel:parent:pom:4.0.2':
> The following profiles are active:
>  - TONY (source: pom)
> ------------------
> However, if I now have the profiles definition in the "parent" pom, it doesn't work when I build a child project
> So the child project references the parent pom containing the profiles and the activation, but when it is built,
> the profile is not activated
> PARENT POM:
> ...
>   <profiles>
>   <profile>
>     <id>TONY</id>
> 	<activation>
> 	<property>
> 	<name>user.name</name>
> 	<value>HV58HR</value>
> 	</property>
> 	</activation>
>     <properties>
> ...
> CHILD POM (the one being built)
> <project>
> 	<parent>
> 		<groupId>be.inglease.wel</groupId>
> 		<artifactId>parent</artifactId>
> 		<version>4.0.2</version>
> 		</parent>
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'help'.
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Web Enabled Leasing Web Application
> [INFO]    task-segment: [help:active-profiles] (aggregator-style)
> [INFO] ----------------------------------------------------------------------------
> [INFO] [help:active-profiles]
> [INFO]
> Active Profiles for Project 'be.inglease.wel:wel-webapp:jar:4.0.2':
> There are no active profiles.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira