Maven 2 & 3

Expressions not evaluated inside <parent>

Details

  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

The version tag within the parrent block does not evaluate properties.
If I put a Version String directly in there, it works.
A correctly defined property doesn't.

Issue Links

Activity

Hide
Eric Brown added a comment -

Discussion on how to solve in 2.1 time-frame.

Show
Eric Brown added a comment - Discussion on how to solve in 2.1 time-frame.
Hide
Jean-Charles Meyrignac added a comment -

I was building Selenium, and found that I could propagate automatically the version number as follows:
<parent>
<groupId>org.openqa.selenium</groupId>
<version>${SeleniumVersion}</version>
<artifactId>selenium-rc</artifactId>
</parent>

This worked on Maven 2.0.4, but doesn't with 2.0.6.
Alas, I was forced to upgrade due to maven-assembly-plugin, version 2.2-beta-2-SNAPSHOT, which forces the use of 2.0.6.

Show
Jean-Charles Meyrignac added a comment - I was building Selenium, and found that I could propagate automatically the version number as follows: <parent> <groupId>org.openqa.selenium</groupId> <version>${SeleniumVersion}</version> <artifactId>selenium-rc</artifactId> </parent> This worked on Maven 2.0.4, but doesn't with 2.0.6. Alas, I was forced to upgrade due to maven-assembly-plugin, version 2.2-beta-2-SNAPSHOT, which forces the use of 2.0.6.
Hide
Brian Fox added a comment -

This is a duplicate of the linked issue and a contentious one at that. Anything done here should be in the context of the other issue in 2.1 ( if at all)

Show
Brian Fox added a comment - This is a duplicate of the linked issue and a contentious one at that. Anything done here should be in the context of the other issue in 2.1 ( if at all)

People

Vote (5)
Watch (5)

Dates

  • Created:
    Updated:
    Resolved: