[ 
https://jira.codehaus.org/browse/MJAVADOC-376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=333239#comment-333239
 ] 

ryenus commented on MJAVADOC-376:
---------------------------------

Robert, thank you for the complements! I know I only did the minimum :-)

BTW, are we thinking about how to unify all these properties? I think we can 
have just one classifier property that applies to all kind of generated files, 
e.g. in my case to have the javadoc jar for jdk6 named properly, we need to set 
maven.javadoc.classifier to 'javadoc-jdk6', but shouldn't the 'javadoc' part 
already part of the file? Similarly

'sources' should be a builtin for sources jar filenames
'test-sources' should be a builtin for test sources jar filenames
'javadoc' should be a builtin for javadoc jar filenames
'test-javadoc' should be a builtin for test javadoc jar filenames
'test' should be a builtin for binary test jar filenames

this way, we just need to specify one and only one classifier 'jdk6' to have 
this classifier attached to all the names of the generated files.

                
> please add property 'maven.javadoc.classifier'
> ----------------------------------------------
>
>                 Key: MJAVADOC-376
>                 URL: https://jira.codehaus.org/browse/MJAVADOC-376
>             Project: Maven Javadoc Plugin
>          Issue Type: Improvement
>            Reporter: ryenus
>            Assignee: Olivier Lamy
>             Fix For: 2.9.2
>
>
> We need an easier way to customize the name of the generated javadoc jar file.
> * For maven-jar-plugin, there's a {{classifier}} attribute.
> * For maven-source-plugin, it's even better, there's a 
> {{maven.source.classifier}} property
> But for maven-javadoc-plugin, there's no chance to customize, the classifier 
> is hardcoded to "javadoc", making it very hard to customize the file name of 
> the generated javadoc jar, which is needed when a classifier is needed to 
> differentiate an artifact for multiple jdk vesions.
> By adding support for the {{maven.javadoc.classifier}} property, it would be 
> much more straightforward and consistent.
> Thanks

--
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

Reply via email to