Maven 2.x Ant Plugin

Classpath generation should honour system-scope.

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.2
  • Fix Version/s: 2.3
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    1

Description

At the moment, dependencies are downloaded in the get-deps-target. For system dependencies, this is not necessary - the classpath-entries should directly reference the systemPath.

Activity

Hide
Michael Thomas added a comment - - edited

I've added a patch against the 2.2-release.

What does it do:

  • for system scope artifacts, the corresponding dependency is looked up and the systemPath is returned as path
  • as the systemPath contains no more properties, each property value is replaced by its key, e.g. C:\project\target\archiv.jar becomes {{${basedir}\target\archiv.jar}}
  • for system scope artifacts, no get-deps-entry is created

This allows for the generation of Ant files to be used in environments, where no Maven repository is available.

Show
Michael Thomas added a comment - - edited I've added a patch against the 2.2-release. What does it do:
  • for system scope artifacts, the corresponding dependency is looked up and the systemPath is returned as path
  • as the systemPath contains no more properties, each property value is replaced by its key, e.g. C:\project\target\archiv.jar becomes {{${basedir}\target\archiv.jar}}
  • for system scope artifacts, no get-deps-entry is created
This allows for the generation of Ant files to be used in environments, where no Maven repository is available.
Hide
Benjamin Bentmann added a comment -

Done in r829673.

Show
Benjamin Bentmann added a comment - Done in r829673.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: