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