I am trying to copy two separate directories and their files in different locations directories using maven and not able to achieve this, can any body help here?
**src/com/smepath ---- > buildDirectory/install/****
**src/com/someotherpath -----> buildDirectory/xsd/****
Although there is a related question here (Best practices for copying files with Maven) but doesn't solve my problem.
I am trying to change following solution viz.
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>copy-resources</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/install</outputDirectory>
<resources>
<resource>
<directory>src/main/resources/common/install</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources/${env}/install</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
Like if I make one more similar entry for let say my second directory locations xsd
then second one overrides first.
Also using an extra <excution>
within <executions>
or an extra <configuration>
also not working.