You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (Jira)" <ji...@apache.org> on 2022/01/26 15:55:00 UTC

[jira] [Created] (MSHARED-1030) PatternIncludesArtifactFilter incorrect filtering with classifier

Slawomir Jaranowski created MSHARED-1030:
--------------------------------------------

             Summary: PatternIncludesArtifactFilter incorrect filtering with classifier
                 Key: MSHARED-1030
                 URL: https://issues.apache.org/jira/browse/MSHARED-1030
             Project: Maven Shared Components
          Issue Type: Bug
          Components: maven-common-artifact-filters
    Affects Versions: maven-common-artifact-filters-3.2.0
            Reporter: Slawomir Jaranowski


For pattern:
{code:java}
org.surefire.dependency:dependent-artifact2:*:*:tests-jdk15
{code}
and {{{}artifact{}}}:
{code:java}
 groupId:    org.surefire.dependency
 artifactId: dependent-artifact2
 version:    1.0
 scope:      test
 type:       jar
 classifier: tests-jdk15
{code}
code:
{code:java}
 filter = PatternIncludesArtifactFilter( pattern );
 filter.iclude( artifact ) <-- return false
{code}

For version: {{3.1.1}}  
{code}
filter.iclude( artifact ) < -- return true
{code}




--
This message was sent by Atlassian Jira
(v8.20.1#820001)