maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chris damour (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MNG-2751) Resource inheritance isn't additive
Date Thu, 02 Nov 2017 19:43:00 GMT

    [ 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}
<resources>
			<resource>
				<directory>${basedir}/src/main/resources</directory>
				<filtering>true</filtering>
				<includes>
					<include>**/application.yml</include>
					<include>**/application.properties</include>
				</includes>
			</resource>
			<resource>
				<directory>${basedir}/src/main/resources</directory>
				<excludes>
					<exclude>**/application.yml</exclude>
					<exclude>**/application.properties</exclude>
				</excludes>
			</resource>
		</resources>
{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 <inherited>
tag a la the plugin element's <inherited> 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)

Mime
View raw message