Bug 403669 - maven-war-plugin do not pick-up all the resources specified from initial build
Summary: maven-war-plugin do not pick-up all the resources specified from initial build
Status: UNCONFIRMED
Alias: None
Product: M2E-WTP
Classification: Technology
Component: Core (show other bugs)
Version: 0.17.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-18 13:37 EDT by Sebastien Tardif CLA
Modified: 2013-03-18 14:53 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastien Tardif CLA 2013-03-18 13:37:00 EDT
This is my settings below. The imagesfrom "directory>${target.web.resources}/extjs/resources/ext-theme-classic/images</directory>" do not get initially copied to target, but if I go add an image to ${src.webapp.to.war} (another resource entry below), then it wake-up and handle the files of the first resource.

<plugin>
				<artifactId>maven-war-plugin</artifactId>
				<configuration>
					<webResources>
						<resource>
							<filtering>false</filtering>
							<directory>${target.web.resources}/extjs/resources/ext-theme-classic/images</directory>
							<targetPath>resources/images</targetPath>
						</resource>
						<resource>
							<filtering>false</filtering>
							<directory>${src.webapp.to.war}</directory>
							<excludes>
								<exclude>index.html</exclude>
							</excludes>
						</resource>
						<resource>
							<filtering>false</filtering>
							<directory>${project.build.directory}/apiDoc</directory>
							<targetPath>apiDoc</targetPath>
						</resource>
						<resource>
							<filtering>true</filtering>
							<directory>${src.webapp.to.war}</directory>
							<includes>
								<include>index.html</include>
							</includes>
						</resource>
					</webResources>
					<webappDirectory>${project.build.directory}/war-exploded</webappDirectory>
				</configuration>
			</plugin>
Comment 1 Fred Bricon CLA 2013-03-18 14:53:51 EDT
Can you please create a sample project showing this behavior?