[ 
https://issues.apache.org/jira/browse/MINSTALL-24?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17965872#comment-17965872
 ] 

Olivier Lamy commented on MINSTALL-24:
--------------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-install-plugin#192|https://github.com/apache/maven-install-plugin/issues/192].
 

> Unable to install source or javadoc artifacts in local repository
> -----------------------------------------------------------------
>
>                 Key: MINSTALL-24
>                 URL: https://issues.apache.org/jira/browse/MINSTALL-24
>             Project: Maven Install Plugin (Moved to GitHub Issues)
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Chris Hagmann
>            Assignee: Mike Perham
>            Priority: Critical
>             Fix For: 2.2
>
>
> 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 was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to