Maven Project Web Site
  1. Maven Project Web Site
  2. MNGSITE-98

Correction to the Maven POM Reference - install:install-file example misses "-Dpackaging=jar"

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Labels:
      None
    • Flags:
      Patch

      Description

      In http://maven.apache.org/pom.html#Dependencies
      Using the example:

      ...There are three methods for dealing with this scenario.
      Install the dependency locally using the install plugin. The method is the simplest recommended method. For example:

      mvn install:install-file -Dfile=non-maven-proj.jar -DgroupId=some.group -DartifactId=non-maven-proj -Dversion=1

      • end in maven build error:
        "Missing group, artifact, version, or packaging information".

      To fix this problem, "-Dpackaging=jar" should be added to the command line.
      The correct example command is:

      mvn install:install-file -Dfile=non-maven-proj.jar -DgroupId=some.group -DartifactId=non-maven-proj -Dversion=1 -Dpackaging=jar

        Activity

        Yuri Volkov created issue -
        Benjamin Bentmann made changes -
        Field Original Value New Value
        Assignee Benjamin Bentmann [ bentmann ]
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 12:11:45 UTC 2015 [ 1428235905420 ]
        Mark Thomas made changes -
        Workflow jira [ 12723678 ] Default workflow, editable Closed status [ 12762749 ]
        Mark Thomas made changes -
        Patch Submitted Yes [ 10763 ]
        Flags Patch [ 10430 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 00:47:18 UTC 2015 [ 1428281238819 ]
        Mark Thomas made changes -
        Workflow jira [ 12961335 ] Default workflow, editable Closed status [ 12998024 ]

          People

          • Assignee:
            Benjamin Bentmann
            Reporter:
            Yuri Volkov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development