Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
maven-common-artifact-filters-1.2
-
None
Description
When a pattern is matched against the dependency trail of an artifact in the PatternInclusionArtifactFilter and PatternExclusionArtifactFilter, the whole trail is considered at once (using a comma-separated list of items in the trail). This means that only particular wildcard patterns will ever match, and it should be virtually impossible to use an exact match.
A far better approach would be to iterate through the dependency trail and try to match the patterns against each dep-trail item separately, to avoid problems of detecting the boundaries between items during the pattern-matching process.