EDIT: Solved I had configured it twice in my pom..
I'm setting up a production-profile in maven. And to copy the correct production.properties-files and delete the standard ones, I'm using maven-antrun-plugin.
But I dont want to run any tests. And for some reason this plugin tries to run some canoo-web-tests that are not working (and should not be working because they are never used).
Any ideas on how to get the antrun plugin to ONLY copy files?
Here is the antrun code:
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<delete file="${project.build.outputDirectory}/properties/externalResources.properties"/>
<delete file="${project.build.outputDirectory}/properties/externalResources.prod.properties"/>
<copy file="src/main/resources/properties/externalResources.prod.properties"
tofile="${project.build.outputDirectory}/properties/externalResources.properties"/>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
And here is the error showing it tries to do some testing:
[INFO] Executing tasks
[delete] Deleting: C:\xxx\target\classes\properties\externalResources.properties
[delete] Deleting: C:\xxx\target\classes\properties\externalResources.prod.properties
[copy] Copying 1 file to C:\xxx\target\classes\properties
Trying to override old definition of task retry
[echo] Testing 'XXX-1.2.0' with
[echo] locale 'no'
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
And then is a stacktrace showing that it tries to read web-tests.xml, and since that file has errors then the build fails.