Thanks, Wendy.

Here is my pom.xml file. I've tried "mvn war:war", "mvn install", "mvn war:war-resources" and probably a few other things over the past couple days. Always the same result: no resources included.

This pom file is just my latest attempt. I'm sure it's overly complicated to do what I need. I agree, this seems like a really simple thing.

Thanks for your help!

Marc

----- Original Message ----- From: "Wendy Smoak" <[EMAIL PROTECTED]>
To: "Maven Users List" <[email protected]>
Sent: Sunday, June 24, 2007 23:37
Subject: Re: newbie: trouble packaging resources with war


On 6/24/07, mad7777 <[EMAIL PROTECTED]> wrote:

I am new to Maven, and I'm having a bit of trouble getting my resources
directory to appear in my war file.
...
It seems that no matter what I do, I can't convince maven to include the
contents of ProjectRoot/src/main/resources in my war.

What did you try?  It should just work with no configuration-- look in
WEB-INF/classes for your resources.

On the off chance you're trying to get something into the root of your
webapp (rather than into WEB-INF/classes) then look at webResources
configuration in the plugin docs:
http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html

--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
I am using the free version of SPAMfighter for private users.
It has removed 65822 spam emails to date.
Paying users do not have this message in their emails.
Get the free SPAMfighter here: http://www.spamfighter.com/len
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
	<modelVersion>4.0.0</modelVersion>
	<groupId>project</groupId>
	<artifactId>project</artifactId>
	<packaging>war</packaging>
	<name>project</name>
	<version>1.0-SNAPSHOT</version>

	<build>

		<finalName>project</finalName>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
					<optimize>true</optimize>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.mortbay.jetty</groupId>
				<artifactId>maven-jetty-plugin</artifactId>
				<configuration>
					<requestLog>
						<append>true</append>
					</requestLog>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-war-plugin</artifactId>
				<configuration>
					<archiveClasses>true</archiveClasses>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>resources</artifactId>
				<configuration>
					<outputDirectory>target/classes</outputDirectory>
					<resources>
						<resource>
							<directory>src/main/resources</directory>
						</resource>
					</resources>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<repositories>
		<repository>
			<id>tapestry-snapshots</id>
			<url>http://people.apache.org/~hlship/tapestry-snapshot-repository/</url>
		</repository>
		<repository>
			<id>codehaus.snapshots</id>
			<url>http://snapshots.repository.codehaus.org</url>
		</repository>
		<repository>
			<id>openqa</id>
			<name>OpenQA Maven Repository</name>
			<url>http://maven.openqa.org/</url>
		</repository>
	</repositories>
	<pluginRepositories>
		<pluginRepository>
			<id>tapestry-snapshots</id>
			<url>http://people.apache.org/~hlship/tapestry-snapshot-repository/</url>
		</pluginRepository>
		<pluginRepository>
			<id>howardlewisship.com</id>
			<url>http://howardlewisship.com/repository</url>
		</pluginRepository>
	</pluginRepositories>
	<dependencies>
		<dependency>
			<groupId>org.apache.tapestry</groupId>
			<artifactId>tapestry-core</artifactId>
			<version>${tapestry-release-version}</version>
		</dependency>
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.9</version>
		</dependency>
		<dependency>
			<groupId>org.testng</groupId>
			<artifactId>testng</artifactId>
			<version>5.1</version>
			<classifier>jdk15</classifier>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.objectstyle.cayenne</groupId>
			<artifactId>cayenne</artifactId>
			<version>2.0.3</version>
		</dependency>
	</dependencies>

	<reporting>
		<plugins>
			<plugin>
				<groupId>org.apache.tapestry</groupId>
				<artifactId>tapestry-component-report</artifactId>
				<version>${tapestry-release-version}</version>
				<configuration>
					<rootPackage>org.example.hilo</rootPackage>
				</configuration>
			</plugin>
		</plugins>
	</reporting>
	<properties>
		<tapestry-release-version>5.0.5-SNAPSHOT</tapestry-release-version>
	</properties>
</project>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to