Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
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
Attachments
Issue Links
- relates to
-
MINSTALL-18 Bad algorithm to decide if the main artifact is to be installed or not
- Closed