Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: maven-archiver-2.5
-
Component/s: maven-archiver
-
Labels:None
-
Number of attachments :
Description
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?
Attachments
Issue Links
| This issue relates to: | ||||
| MNG-4112 | Set property containing the currently executing maven version. |
|
|
|
| This issue is depended upon by: | ||||
| MJBOSSPACK-51 | Add Maven version used to Created-By entry in manifest |
|
|
|
| MEJB-56 | Add Maven version used to Created-By entry in manifest |
|
|
|
| MEAR-145 | Add Maven version used to Created-By entry in manifest |
|
|
|
| MWAR-273 | Add Maven version used to Created-By entry in manifest |
|
|
|
| MJAR-148 | Add Maven version used to Created-By entry in manifest |
|
|
|
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.