[ https://issues.apache.org/jira/browse/MINSTALL-3?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17965842#comment-17965842 ]
Olivier Lamy commented on MINSTALL-3: ------------------------------------- This project has moved from Jira to GitHub Issues. This issue was migrated to [apache/maven-install-plugin#139|https://github.com/apache/maven-install-plugin/issues/139]. > The install plugin fails if there are only "attached" artifacts. > ---------------------------------------------------------------- > > Key: MINSTALL-3 > URL: https://issues.apache.org/jira/browse/MINSTALL-3 > Project: Maven Install Plugin (Moved to GitHub Issues) > Issue Type: Bug > Reporter: jps > Assignee: Brett Porter > Priority: Major > Fix For: 2.1 > > Original Estimate: 0.5h > Time Spent: 0.25h > Remaining Estimate: 0h > > Usually, classifiers are used to produce attached artifacts, together with > the "main" artifact. In some cases, however, it is not possible to produce > the different flavors of the artifacts simultaneously (for example, for a > version with debug and without debug). > Then, in order to have a single artifact _with_ a classifier, one can > configure the jar plugin as follow: > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-jar-plugin</artifactId> > <configuration> > <classifier>someclassifier</classifier> > </configuration> > </plugin> > However, this cause the install plugin (and probably also the deploy plugin) > to fail, because it cannot find the "main" artifact: > [INFO] [jar:jar] > [INFO] Building jar: > /home/julien/cvs/java/libs/attr/target/libattr-3.0-nodebug.jar > [INFO] [install:install] > [INFO] Installing /home/julien/cvs/java/libs/attr/target/classes to > /home/julien/.m2/repository/unicity/libattr/3.0/libattr-3.0.jar -- This message was sent by Atlassian Jira (v8.20.10#820010)