You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "ryenus (JIRA)" <ji...@codehaus.org> on 2013/09/17 07:38:53 UTC
[jira] (MJAR-170) please add property 'maven.jar.classifier'
ryenus created MJAR-170:
---------------------------
Summary: please add property 'maven.jar.classifier'
Key: MJAR-170
URL: https://jira.codehaus.org/browse/MJAR-170
Project: Maven JAR Plugin
Issue Type: Improvement
Affects Versions: 2.4
Reporter: ryenus
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:
{code:xml}
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>jdk6</classifier>
</configuration>
</execution>
</executions>
</plugin>
{code}
By adding support for the {{maven.jar.classifier}} property, it would be much more straightforward and consistent.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira