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

Dependency filtering are ignored in go-offline

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.2
    • None
    • go-offline
    • None

    Description

      I'm using a multi-modules project.
      I tried as a work around of bug MDEP-688 to tells go-offline to ignore a broken dependency being:

              <dependency>
                  <groupId>org.dojotoolkit</groupId>
                  <artifactId>dojo</artifactId>
                  <type>zip</type>
                  <version>1.10.8</version>
                  <classifier>distribution</classifier>
              </dependency>
      

      . But whatever I tried, my filter are ignored:

      mvn -B dependency:go-offline -Psonar,versions  -Dmaven.repo.local=/tmp/m2 -DexcludeGroupIds=org.dojotoolkit -DexcludeClassifiers=distribution -DexcludeArtifactIds=org.dojotoolkit:dojo:zip:1.10.8,dojo -DexcludeTypes=zip -Dtype=jar,war,pom -X
      ...
      [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline' with basic configurator -->
      [DEBUG]   (f) appendOutput = false
      [DEBUG]   (f) excludeArtifactIds = org.dojotoolkit:dojo:zip:1.10.8,dojo
      [DEBUG]   (f) excludeClassifiers = distribution
      [DEBUG]   (f) excludeGroupIds = org.dojotoolkit
      [DEBUG]   (f) excludeReactor = true
      [DEBUG]   (f) excludeTransitive = false
      [DEBUG]   (f) excludeTypes = zip
      [DEBUG]   (s) markersDirectory = .../jrds-webapp/target/dependency-maven-plugin-markers
      [DEBUG]   (f) outputAbsoluteArtifactFilename = false
      [DEBUG]   (f) overWriteIfNewer = true
      [DEBUG]   (f) overWriteReleases = false
      [DEBUG]   (f) overWriteSnapshots = false
      [DEBUG]   (s) prependGroupId = false
      [DEBUG]   (f) project = MavenProject: fr.jrds:jrds-webapp:2020.1 @ /Users/fa4/Devl/jrds/jrds-webapp/pom.xml
      ...
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline (default-cli) on project jrds-webapp: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact org.dojotoolkit:dojo:zip:1.10.8 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
      

      So I tried everything to prevent the failing artifact to be resolved, nothing succeeded.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fbacchella Fabrice Bacchella
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: