Friday, 6 September 2013

maven-resources-plugin set to different phase

maven-resources-plugin set to different phase

I am trying to force maven-resources-plugin execution for different phase
like this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>copy-resources</id>
<phase>test</phase>
...
I see in logs this plugin is executed first, before my
maven-compiler-plugin:2.3.2:compile:
[INFO] --- maven-resources-plugin:2.6:resources (default-resources)
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
Why is this the case?

No comments:

Post a Comment