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

Maven v4 / Plugin v4 Tidy Up parameters and messages

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.1.2
    • None
    • get
    • None

    Description

      The error message reads;

      [ERROR] Failed to execute goal on project artifact-id: Could not resolve dependencies for project group-id:artifact-id:jar:VERSION: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.joda:joda-beans:jar:2.8.1 has not been downloaded from it before. -> [Help 1]
      

      But you can't simply copy and paste that into get like this;

      mvnw -N org.apache.maven.plugins:maven-dependency-plugin:3.1.2:get -Dartifact=org.joda:joda-beans:jar:2.8.1
      

      It needs to be this;

      mvnw -N org.apache.maven.plugins:maven-dependency-plugin:3.1.2:get -Dartifact=org.joda:joda-beans:2.8.1
      

      The documentation for get requires this syntax;

      groupId:artifactId:version[:packaging[:classifier]].

      For Maven v4.x and/or maven-dependency-plugin v4.x could the error message match the input format, or the input format match the error message for easier copy/paste usage.

      Personally I would prefer the error message to match the get artifact syntax as it makes more sense for me to be groupId:artifactId:version:packaging.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: