Maven 2 & 3

Can't use property names in resources element

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Cannot Reproduce
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Windows XP Professional. JDK 1.5
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

<build>
    <resources>
         <resource>
            <directory>target/gen/doclet/WEB-INF/classes/META-INF</directory>
            <filtering>true</filtering>
            <targetPath>META-INF</targetPath>
         </resource>            
    </resources>
</build>

I can't use {{${project.build.directory}}} instead of target in the directory element in the above snippet. Same is true for other Maven and project properties.

Issue Links

Activity

Hide
Zarar Siddiqi added a comment -

Any news on this?

Show
Zarar Siddiqi added a comment - Any news on this?
Hide
Jérémy Soula added a comment -

The pb is on the maven core, before values are passed to the plugin. Now it is the role of maven to resolved dollar brace properties or the role of the plugin, especially in core plugins like maven-resources-plugin?

Show
Jérémy Soula added a comment - The pb is on the maven core, before values are passed to the plugin. Now it is the role of maven to resolved dollar brace properties or the role of the plugin, especially in core plugins like maven-resources-plugin?
Hide
John Casey added a comment -

need to verify that this is fixed (should have been fixed in either 2.1.0-M1 or 2.1.0).

Show
John Casey added a comment - need to verify that this is fixed (should have been fixed in either 2.1.0-M1 or 2.1.0).
Hide
Brett Porter added a comment -

works in 2.2.1

Show
Brett Porter added a comment - works in 2.2.1

People

Vote (8)
Watch (6)

Dates

  • Created:
    Updated:
    Resolved: