Maven 2 & 3

Plugins can't get project properties

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0.5
  • Fix Version/s: 2.0.6
  • Component/s: None
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

For a plugin to get the project's properties, it should define a field as follows:
/**

  • The whole project.
  • @parameter expression="${project.properties}"
  • @required
  • @readonly
    */
    private java.util.Properties properties;

However, because of a bug in Plexus (see PLX-327), these properties are always empty. This Plexus bug needs to be fixed and Maven should include the fixed plexus-container-default library.

Issue Links

Activity

Hide
Jason van Zyl added a comment -

Patched plexus-container created and deploy and used in the 2.0.6 version of maven.

Show
Jason van Zyl added a comment - Patched plexus-container created and deploy and used in the 2.0.6 version of maven.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: