You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Daniele Dellafiore <il...@gmail.com> on 2009/01/02 17:59:48 UTC

override resource inclusion

Hi all.

I have defined a resource this way:

			<resource>
				<filtering>true</filtering>
				<directory>src/main/resources</directory>
				<includes>
					<include>*.xml</include>
					<include>**/*.properties</include>
					<include>**/*.jpg</include>
					<include>**/*.png</include>
					<include>**/*.js</include>
					<include>**/*.html</include>
				</includes>
			</resource>


And I have this profile:

		<profile>
			<id>stage</id>
			<build>
				<resources>
					<resource>
						<directory>src/main/resources</directory>
						<excludes>
							<exclude>**/*local.properties</exclude>
						</excludes>
					</resource>
				</resources>


Well, I expect that the fuile *local.properties would not be copied to
target/classes if I compile with -P stage.
But it is copied.

Anyone knows why?

-- 
Daniele Dellafiore
http://blog.ildella.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org