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

Dependency Plugin go-offline doesn't respect artifact classifier

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.2
    • 3.2.0
    • go-offline
    • None

    Description

      This is a regressing in 3.1.2, and does not occur in 3.1.1.

      Given a pom.xml with the following dependency:

      <dependency>
          <groupId>ca.uhn.hapi.fhir</groupId>
          <artifactId>hapi-fhir-testpage-overlay</artifactId>
          <version>5.3.0</version>
          <classifier>classes</classifier>
      </dependency>
      

      The go-offline command will try (and fail) to resolve the JAR that does not have that classifier. Version 3.1.1 of the plugin correctly resolved the right JAR.

       

      Error is:

       

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline (default-cli) on project hapi-fhir-jpaserver-starter: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact ca.uhn.hapi.fhir:hapi-fhir-testpage-overlay:jar:5.3.0 in oss-snapshots

      Attachments

        Issue Links

          Activity

            People

              slachiewicz Sylwester Lachiewicz
              jamesagnew James Agnew
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: