I have a source directory as foo.
Under foo, I have few files and sub directories. These files are just text files and html files and not part of the compiled code (my project is in Java).
During build, I want maven to create a target dir as "foo/output" and copy all the contents of foo/* to foo/output.
I tried the following but it does not work; meaning mvn install does not even create the output or target directory.
Appreciate your help!
<build><plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>copy-helm-to-target</id>
<phase>install</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/output</outputDirectory>
<resources>
<resource>
<directory>foo</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin></build>