You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Anders Hammar (JIRA)" <ji...@codehaus.org> on 2012/01/18 09:53:02 UTC

[jira] (MSHARED-38) Archiver should be adding "Created-By: Apache Maven _2.0.4_" to the manifest

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

Anders Hammar commented on MSHARED-38:
--------------------------------------

Unfortunately it seems as the API of MavenArchiver needs to be altered so that MavenSession as well is passed in to be able retrieve the maven.version property.
                
> Archiver should be adding "Created-By: Apache Maven _2.0.4_" to the manifest
> ----------------------------------------------------------------------------
>
>                 Key: MSHARED-38
>                 URL: https://jira.codehaus.org/browse/MSHARED-38
>             Project: Maven Shared Components
>          Issue Type: Bug
>          Components: maven-archiver
>            Reporter: Matthew Beermann
>
> The maven-archiver currently adds the string "Created-By: Apache Maven" to the manifest of all projects. This is good, but it needs to be more specific - e.g. Apache Maven 2.0.4. This would have two major benefits:
>   1) It would bring it in line with the "Build-Jdk" field, which has values like "1.5.0_09"
>   2) It would help in having truly repeatable builds - potentially, you need to know which version of Maven was used to build an artifact
> I'd write the patch myself if I could figure out how to get at the information... it's in a @component called "runtimeInformation", but how do you access components from a low-level library like maven-archiver?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira