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 821D2200D2B for ; Thu, 2 Nov 2017 20:43:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 809DF160BE5; Thu, 2 Nov 2017 19:43: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 C73941609EB for ; Thu, 2 Nov 2017 20:43:04 +0100 (CET) Received: (qmail 18726 invoked by uid 500); 2 Nov 2017 19:43:04 -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 18715 invoked by uid 99); 2 Nov 2017 19:43:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2017 19:43:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 0F1531808D0 for ; Thu, 2 Nov 2017 19:43:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id SF9RSPHB5qCx for ; Thu, 2 Nov 2017 19:43:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 72EAD5FDE8 for ; Thu, 2 Nov 2017 19:43:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 09654E2570 for ; Thu, 2 Nov 2017 19:43:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 640D524167 for ; Thu, 2 Nov 2017 19:43:00 +0000 (UTC) Date: Thu, 2 Nov 2017 19:43:00 +0000 (UTC) From: "chris damour (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MNG-2751) Resource inheritance isn't additive MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 02 Nov 2017 19:43:05 -0000 [ https://issues.apache.org/jira/browse/MNG-2751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16236477#comment-16236477 ] chris damour commented on MNG-2751: ----------------------------------- spring boot is a great example to this, the parent has {code} ${basedir}/src/main/resources true **/application.yml **/application.properties ${basedir}/src/main/resources **/application.yml **/application.properties {code} and any boot app using it can't modify this without recreating all functionality > Resource inheritance isn't additive > ----------------------------------- > > Key: MNG-2751 > URL: https://issues.apache.org/jira/browse/MNG-2751 > Project: Maven > Issue Type: Bug > Components: Inheritance and Interpolation > Affects Versions: 2.0.4 > Environment: All > Reporter: Jason Melnick > Priority: Major > > I have an inheritance model as such: > Parent_POM (General dependencyManagement, pluginManagement, etc) > |-->Base_POM (global dependency inclusion, default goal, default plugins, etc) > |-->Artifact_POM (declares specific artifact type functionality, resources, profiles, etc) > |-->Project_POM (project specific dependencies, resources, etc) > I am attempting to create an hierarchy that will enable a new project to get up and running with very little modification. The issue I am having is if build.resources are declared in the Project_POM they are wiping the Artifact_POM's declarations. > I think that resources should always be additive. If nothing else add an tag a la the plugin element's tag. In lieu of that perhaps a resourceManagement section that exposes resource id's that could be selectively added by the child... -- This message was sent by Atlassian JIRA (v6.4.14#64029)