[ 
https://issues.apache.org/jira/browse/MJAVADOC-431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15081891#comment-15081891
 ] 

Peter lynch commented on MJAVADOC-431:
--------------------------------------

[~michael-o] Thanks for the MSHARED ticket link - I am fully aware what 
pom.properties contains. A missing classifier in there does not matter for this 
use case. The pom.properties still contains valuable information. If ever it 
changes to include classifier, all the better.

The use case I have stated in earlier comments is not adding a requirement that 
the artifact file name must match or that pom.properties contain all parts of 
the coordinate system ( although would be nice ). Only that the location of the 
maven generated archiver configuration is in a well known location inside the 
produced jar and that there is no other way to insert same information into a 
javadoc jar without changing the sha1 of the produced artifact or heavily 
modifying a build or introducing a complex change to the javadoc plugin.

> Allow Javadoc Jar to contain Maven descriptor
> ---------------------------------------------
>
>                 Key: MJAVADOC-431
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-431
>             Project: Maven Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.10.3
>            Reporter: Peter lynch
>            Assignee: Michael Osipov
>             Fix For: 2.10.4
>
>
> The javadoc:jar mojo explicitly prevents the Maven descriptor from being 
> added to the produced javadoc.jar file.
> https://github.com/apache/maven-plugins/blob/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocJar.java#L299-299
> I could not find an explanation or technical reason why this is done.
> Adding the maven descriptor to the javadoc jar can help expose valuable 
> information about the build that produced it and should be at the discretion 
> of the build process.
> Expected:
> - allow the archiver used to create the javadoc jar to respect the plexus 
> archiver configuration if it is configured to include the Maven descriptor.
> - preserve the default behaviour of not including the Maven descriptor, for 
> (unknown) backwards compatibility reasons only



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to