You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2016/04/27 14:35:12 UTC

[jira] [Comment Edited] (MSHARED-513) Regression: Created-By row in manifest does not include Maven version

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

Michael Osipov edited comment on MSHARED-513 at 4/27/16 12:34 PM:
------------------------------------------------------------------

Where is {{maven.version}} available by default? I would not use {{userProperties}} as this could be overridden for {{<prerequisites>>}} and/or enforcer.


was (Author: michael-o):
Where is {{maven.version}} available by default?

> Regression: Created-By row in manifest does not include Maven version
> ---------------------------------------------------------------------
>
>                 Key: MSHARED-513
>                 URL: https://issues.apache.org/jira/browse/MSHARED-513
>             Project: Maven Shared Components
>          Issue Type: Bug
>          Components: maven-archiver
>    Affects Versions: maven-archiver-3.0.1
>         Environment: Maven 3.3.3, Oracle JDK 1.7.0_79
>            Reporter: Anders Hammar
>            Assignee: Anders Hammar
>
> This is a regression of MSHARED-38.
> The code has been changed to:
> {code}
> String mavenVersion = session.getUserProperties().getProperty( "maven.version" );
> {code}
> which is wrong. It should be:
> {code}
> String mavenVersion = session.getExecutionProperties().getProperty( "maven.version" );
> {code}
> The root cause is probably that the unit test has been incorrectly changed so that the dummy Maven session is not correctly created. Possibly this slipped through when moving to Maven 3.0 requirements.



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