You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2010/01/12 17:34:55 UTC

[jira] Closed: (MNG-3563) Content of a property ending with .url gets overwritten with the content of from the pom.xml

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

Brett Porter closed MNG-3563.
-----------------------------

       Resolution: Cannot Reproduce
    Fix Version/s:     (was: 2.2.x)

cannot reproduce as described using Maven 2.0.9. Please attach a test project if this is still a problem in 2.2.1 or 3.0-alpha-X

> Content of a property ending with .url gets overwritten with the content of <url></url> from the pom.xml
> --------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-3563
>                 URL: http://jira.codehaus.org/browse/MNG-3563
>             Project: Maven 2 & 3
>          Issue Type: Bug
>    Affects Versions: 2.0.9
>         Environment: Linux
>            Reporter: Stephan Kleine
>
> If one creates a property e.g. named jdbc.url in a parent pom.xml and then refers to that property via ${jdbc.url} in a resource file of a subproject whose pom.xml is derived from the one that declares the jdbc.url property the content is overwritten with the content of the <url> tag during the filtering step.
> E.g.
> com.example.project contains:
> <jdbc.url>jdbc:mysql://localhost:3306/TestDB</jdbc.url>
> in its pom.xml
> com.example.subproject is derived from com.example.project and contains 
> url="${jdbc.url}
> in some db setup file and
> <url>http://maven.apache.org</url>
> in its pom.xml
> The resulting content, after the filtering step, will be "url="http://maven.apache.org"" instead of "url="jdbc:mysql://localhost:3306/TestDB"".

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