Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4
-
None
-
None
-
Patch
Description
For maven-source-plugin, adding a classifier to the source jar file name is as simple as:
- setup property <maven.source.classifier>jdk6-sources</maven.source.classifier>
- setup the right version of Maven source plugin, e.g. version 2.2.1
And that's enough.
But to add a classifier to the binary jar file name, we must use the very verbose way of configuring the maven-jar-plugin, as below:
<plugin> <artifactId>maven-jar-plugin</artifactId> <executions> <execution> <phase>package</phase> <goals> <goal>jar</goal> </goals> <configuration> <classifier>jdk6</classifier> </configuration> </execution> </executions> </plugin>
By adding support for the maven.jar.classifier property, it would be much more straightforward and consistent.