Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
2.1
-
None
-
None
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.
Attachments
Issue Links
- is duplicated by
-
MINSTALL-32 classifier does not work on install:install-file, default artifact overwritten
- Closed