You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2016/07/30 19:20:20 UTC

[jira] [Commented] (MNG-6074) Maven should print a warning if no model version has been set in a POM file.

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

Hudson commented on MNG-6074:
-----------------------------

SUCCESS: Integrated in maven-3.x #1347 (See [https://builds.apache.org/job/maven-3.x/1347/])
[MNG-6074] Maven should print a warning if no model version has been set (schulte: rev 45a04204f720c9ed9c70c825fdb7834adb83852c)
* maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java


> Maven should print a warning if no model version has been set in a POM file.
> ----------------------------------------------------------------------------
>
>                 Key: MNG-6074
>                 URL: https://issues.apache.org/jira/browse/MNG-6074
>             Project: Maven
>          Issue Type: Improvement
>            Reporter: Christian Schulte
>            Assignee: Christian Schulte
>            Priority: Critical
>             Fix For: 3.4.0
>
>
> Maven currently only validates the model version to equal {{4.0.0}} when set. The XML element is optional. Starting with Maven 3.4.0 a warning message should be printed whenever no model version has been set so that it becomes possible to use that version to decide about Maven behaviour. For example: In Maven 3.5 we could add support for a new model version {{4.1.0}} which may be used to decide about how Maven 3.5 should behave. Behaviour for model version {{4.0.0}} will be the same as in Maven 3.4. Behaviour for model version {{4.1.0}} could be different. For this the model version needs to be set.



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