Maven Install Plugin
  1. Maven Install Plugin
  2. MINSTALL-24

Unable to install source or javadoc artifacts in local repository


    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:


      I couldn't find a way of installing a source archive or a javadoc archive in the local repository. Basically I'm missing the option to specify a classifier when invoking mvn install:install-file. As you can see in the output below it overwrites the main artifact (e.g. xmlc-base-2.2.9.jar)

      F:\downloads\xmlc-src-2.2.9\xmlc-src-2.2.9\xmlc\modules\xmlc\src>mvn install:ins
      tall-file -Dfile=xmlc-base-2.2.9-sources.jar -DgroupId=org.enhydra.xmlc -Dartifa
      ctId=xmlc-base -Dversion=2.2.9 -Dclassifier=sources -Dpackaging=jar
      [INFO] Scanning for projects...
      [INFO] Searching repository for plugin with prefix: 'install'.
      [INFO] -------------------------------------------------------------------------

      [INFO] Building Maven Default Project
      [INFO] task-segment: [install:install-file] (aggregator-style)
      [INFO] -------------------------------------------------------------------------

      [INFO] [install:install-file]
      [INFO] Installing F:\downloads\xmlc-src-2.2.9\xmlc-src-2.2.9\xmlc\modules\xmlc\s
      rc\xmlc-base-2.2.9-sources.jar to C:\tools\maven\m2-repository\org\enhydra\xmlc\
      [INFO] -------------------------------------------------------------------------

      [INFO] -------------------------------------------------------------------------

      [INFO] Total time: 1 second
      [INFO] Finished at: Tue Jun 13 12:58:16 PDT 2006
      [INFO] Final Memory: 2M/4M
      [INFO] -------------------------------------------------------------------------

      The exact same works when using the deploy plugin to install a source artifact in the remote repository, because that plugin accepts an optional classifier.

        Issue Links


          Chris Hagmann created issue -
          Mike Perham made changes -
          Field Original Value New Value
          Assignee Mike Perham [ mperham ]
          Mike Perham added a comment -

          Fixed and added unit test.

          Mike Perham added a comment - Fixed and added unit test.
          Mike Perham made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Fix Version/s 2.2 [ 12256 ]
          Resolution Fixed [ 1 ]
          Wendy Smoak made changes -
          Link This issue is duplicated by MINSTALL-32 [ MINSTALL-32 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 10:26:11 UTC 2015 [ 1428229571122 ]
          Mark Thomas made changes -
          Workflow jira [ 12721626 ] Default workflow, editable Closed status [ 12751201 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 00:00:18 UTC 2015 [ 1428278418685 ]
          Mark Thomas made changes -
          Workflow jira [ 12959171 ] Default workflow, editable Closed status [ 12996015 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          24d 23h 54m 1 Mike Perham 08/Jul/06 16:03


            • Assignee:
              Mike Perham
              Chris Hagmann
            • Votes:
              0 Vote for this issue
              0 Start watching this issue


              • Created: