Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 47682200BF7 for ; Mon, 9 Jan 2017 11:32:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 46440160B49; Mon, 9 Jan 2017 10:32:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BD052160B3E for ; Mon, 9 Jan 2017 11:32:04 +0100 (CET) Received: (qmail 73716 invoked by uid 500); 9 Jan 2017 10:31:58 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 73356 invoked by uid 99); 9 Jan 2017 10:31:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jan 2017 10:31:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9370A2C2A6D for ; Mon, 9 Jan 2017 10:31:58 +0000 (UTC) Date: Mon, 9 Jan 2017 10:31:58 +0000 (UTC) From: "Stephen Connolly (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MNG-6074) Maven should produce an error if no model version has been set in a POM file used to build an effective model. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 09 Jan 2017 10:32:05 -0000 [ https://issues.apache.org/jira/browse/MNG-6074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stephen Connolly updated MNG-6074: ---------------------------------- Fix Version/s: (was: needing-scrub-3.4.0-fallout) 3.5.0-candidate > Maven should produce an error if no model version has been set in a POM file used to build an effective model. > -------------------------------------------------------------------------------------------------------------- > > 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.5.0-candidate > > > 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)