maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MNG-4126) [regression] Properties defined in profiles.xml of parent are not inherited during multimodule build
Date Thu, 09 Apr 2009 21:03:53 GMT

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

Benjamin Bentmann closed MNG-4126.
----------------------------------

         Assignee: Benjamin Bentmann
       Resolution: Fixed
    Fix Version/s: 2.1.1

Fixed in [r763796|http://svn.eu.apache.org/viewvc?view=rev&revision=763796], thanks for
the patch!

> [regression] Properties defined in profiles.xml of parent are not inherited during multimodule
build
> ----------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4126
>                 URL: http://jira.codehaus.org/browse/MNG-4126
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation, Profiles
>    Affects Versions: 2.1.0
>         Environment: OS: Windows XP Professional.
> Java: 1.4.2_06
> Maven: 2.1.0
>            Reporter: denis dudinski
>            Assignee: Benjamin Bentmann
>             Fix For: 2.1.1
>
>         Attachments: DefaultMavenProjectBuilder.patch, profiles-xml-it.zip
>
>
> Next multimodule project structure is given:
> /
> --/parent/
> ------------pom.xml           - this is aggregator which holds reference to child module
in <modules> section. 
> ------------profiles.xml      - contains custom property  "test.property=test-property-value".
       
> --/child/
> ------------/src/main/resources/child.properties  - contains property "some.useful.property=@test.property@".
This property should be filtered using value defined   -                                 
                                                    in profiles.xml.
> ------------/pom.xml                                                    - contains reference
to parent/pom.xml in <parent> pom section.
> So, when I run "mvn clean install" using parent/pom.xml I expect that in child/target/child.properties
I will see filtered property "some.useful.property=test-property-value". But property remains
unfiltered. src/main/resources in child/pom.xml are marjed as filtered.
> Also, when I run the same command from "child" folder then property is filtered with
right value. In single module build all works.
> Maven 2.0.10 behaves in expected way and filters this property in both cases.
> See attached test case.

-- 
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

        

Mime
View raw message