You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by R....@akka.eu on 2010/12/24 12:22:56 UTC
[Resource plugin] Copy resource from other module
Hi,
I tried to use Resource plugin with copy goal to copy resources from another module to current module :
<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version>
<executions>
<execution>
<id>copy-resources</id>
<!-- here the phase you need -->
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/extra-resources</outputDirectory>
<resources>
<resource>
<directory>${basedir}/../other-module/src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
But it seems that we are stuck to the basedir...can anyone confirm this ?
Thank you