You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ben Tatham <be...@nanometrics.ca> on 2007/04/17 13:00:11 UTC
maven-resources-plugin
I am pulling my hair out trying to add a testResources directory with the maven-resources-plugin. I have a bunch of files in src\filesystem that I want to add as testResources, so I have the following in my pom. Nothing happens though. I have tried doing resources:testResources from the command line too. I have tried it without an "execution", and just config, but still nothing. Any ideas?
Thanks,
Ben
<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-my-resources</id>
<goals>
<goal>testResources</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>
src/filesystem
</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven-resources-plugin
Posted by Wayne Fay <wa...@gmail.com>.
This isn't the way to configure additional test resources. You are looking for:
http://maven.apache.org/guides/introduction/introduction-to-the-pom.html
<build><testResources>...
Wayne
On 4/17/07, Ben Tatham <be...@nanometrics.ca> wrote:
> I am pulling my hair out trying to add a testResources directory with the maven-resources-plugin. I have a bunch of files in src\filesystem that I want to add as testResources, so I have the following in my pom. Nothing happens though. I have tried doing resources:testResources from the command line too. I have tried it without an "execution", and just config, but still nothing. Any ideas?
>
> Thanks,
> Ben
>
> <build>
> <plugins>
> <plugin>
> <artifactId>maven-resources-plugin</artifactId>
> <executions>
> <execution>
> <id>copy-my-resources</id>
> <goals>
> <goal>testResources</goal>
> </goals>
> <configuration>
> <resources>
> <resource>
> <directory>
> src/filesystem
> </directory>
> </resource>
> </resources>
> </configuration>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org