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

dependency:go-offline does not resolve classifier

    XMLWordPrintableJSON

Details

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

    Description

      I have a dependency on dojo-toolkit that says:

      <dependency>
           <groupId>org.dojotoolkit</groupId>
           <artifactId>dojo</artifactId>
           <type>zip</type>
           <version>${dojo.version}</version>
           <classifier>distribution</classifier>
       </dependency>
      

      This is a multi-module project, and this is declared in a sub-module.
      When I try to run it, it fails with:

      $ mvn dependency:go-offline
      ...
      [INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/dojotoolkit/dojo/1.10.8/dojo-1.10.8.zip
      [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]
      

      When I do a simple build:

      mvn install
      ...
      Downloading from central: https://repo.maven.apache.org/maven2/org/dojotoolkit/dojo/1.10.8/dojo-1.10.8-distribution.zip
      Downloaded from central: https://repo.maven.apache.org/maven2/org/dojotoolkit/dojo/1.10.8/dojo-1.10.8-distribution.zip (13 MB at 10 MB/s)
      

      The URL is not the same, mvn install did resolve the good file (dojo-1.10.8-distribution.zip) where dependency:go-offline only sees dojo-1.10.8-distribution.zip.

      Attachments

        Activity

          People

            Unassigned Unassigned
            fbacchella Fabrice Bacchella
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: