Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.2
-
Fix Version/s: 2.3
-
Component/s: None
-
Labels:None
Description
A project contains as resource the following Velocity template
src/main/resources/App.txt
${url}
${id}
${version}
${anotherProperty}
${infoBean.url}
${infoBean.id}
${infoBean.anotherProperty}
${infoBean.version}
${infoBean.myUrl}
${infoBean.myId}
${pom.version}
When filtering is set for this file the resulted output is wrong
target/classes/App.txt
http://maven.apache.org
maven.bugs:filtres:jar:1.0-SNAPSHOT
1.0-SNAPSHOT
anotherValue
http://maven.apache.org
maven.bugs:filtres:jar:1.0-SNAPSHOT
${infoBean.anotherProperty}
1.0-SNAPSHOT
${infoBean.myUrl}
${infoBean.myId}
1.0-SNAPSHOT
While it is acceptable to have ${pom.version} replaced or even ${id} or ${version}, the ${infoBean.*} lines should be left untouched as long as such properties are not defined for the project.
A sample project is attached...
Issue Links
- duplicates
-
MRESOURCES-20
Filtering ${foo.file} evaluates to in full path to pom.xml
-
fix with using last maven-filtering version