Maven 2 & 3

DefaultArtifactFactory.createDependencyArtifact sets scope to null

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 2.0.4
  • Fix Version/s: 2.0.8
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

There are four createDependencyArtifact methods in DefaultArtifactFactory, all of which take scope as an argument. One of the four fails to pass the scope into the createArtifact method.

Specifically,

public Artifact createDependencyArtifact( String groupId, String artifactId, VersionRange versionRange, String type,
String classifier, String scope )

{ return createArtifact( groupId, artifactId, versionRange, type, classifier, null, null ); }

should be

public Artifact createDependencyArtifact( String groupId, String artifactId, VersionRange versionRange, String type,
String classifier, String scope )

{ return createArtifact( groupId, artifactId, versionRange, type, classifier, scope, null ); }

Activity

Hide
Brian Fox added a comment -

Already fixed by Carlos in svn rev: 568659 (Maven 2.0.8)

Show
Brian Fox added a comment - Already fixed by Carlos in svn rev: 568659 (Maven 2.0.8)

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: