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

Go Offline doesn't honor exclusions.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.5.0
    • None
    • go-offline
    • None
    • Linux and Mac

    Description

      Using the example below;

       

      <dependencyMangement>
        <dependencies>
          <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-configuration2</artifactId>
            <version>2.8.0</version>
            <exclusions>
              <exclusion>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-vfs2</artifactId>
              </exclusion>
            </exclusions>
          </dependency>
        </dependencies>
      </dependencyMangement>

       

      When executing `./mvnw org.apache.maven.plugins:maven-dependency-plugin:3.5.0:go-offline -Dmaven.repo.local=new-dir`.
      I wouldn't expect `commons-vfs2` to be attempted to be downloads or appear in `new-dir`.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nhoj.patrick John Patrick
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: