Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-237

excludeGroupId filter doesn't do exact match

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Auto Closed
    • 2.0, 2.1
    • None
    • copy-dependencies
    • None

    Description

      We are using copy-dependencies and need to exclude our product dependencies (com.company.product:artifact), however we need to include product extensions (com.company.productx.utilities:extentionArtifact). Specifying <excludeGroupIds>com.company.product</excludeGroupIds> should not inherently do a "startsWith", specifying <excludeGroupIds>com.company.product*</excludeGroupIds> should do a "startsWith".

      Guilty code from: org.apache.maven.shared.artifact.filter.collection.GroupIdFilter.java

          protected boolean compareFeatures( String lhs, String rhs )
          {
              return lhs.startsWith( rhs );
          }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jamie_townsend Jamie Townsend
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: