Unable to install source or javadoc artifacts in local repository
-----------------------------------------------------------------

         Key: MINSTALL-24
         URL: http://jira.codehaus.org/browse/MINSTALL-24
     Project: Maven 2.x Install Plugin
        Type: Bug

    Versions: 2.1    
    Reporter: Chris Hagmann
    Priority: Critical


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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to