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

Unable to install source or javadoc artifacts in local repository

    Details

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

      Description

      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\
      xmlc-base\2.2.9\xmlc-base-2.2.9.jar
      [INFO] -------------------------------------------------------------------------

      [INFO] BUILD SUCCESSFUL
      [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

          Activity

          Hide
          Mike Perham added a comment -

          Fixed and added unit test.

          Show
          Mike Perham added a comment - Fixed and added unit test.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: