Commit 06655b85 authored by Johannes Schindelin's avatar Johannes Schindelin
Browse files

Work around project.build.resources being overridden



When specifying a project.build.resources section in a child pom.xml,
the parent's resources section is overridden -- not appended to, as this
developer expected. Therefore, we have to specify src/main/resources
explicitly if we want to keep it as a place to put resources into.

To be careful, we prefix it by ${basedir}/ just to make sure that we can
simply copy this code to aggregate projects whenever needed without
breaking things.

Signed-off-by: default avatarJohannes Schindelin <johannes.schindelin@gmx.de>
parent df936735
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -28,11 +28,17 @@

	<build>
		<resources>
			<resource>
				<directory>${basedir}/src/main/resources</directory>
			</resource>
			<resource>
				<directory>${project.build.sourceDirectory}</directory>
			</resource>
		</resources>
		<testResources>
			<testResource>
				<directory>${basedir}/src/test/resources</directory>
			</testResource>
			<testResource>
				<directory>${project.build.testSourceDirectory}</directory>
			</testResource>