mardi 24 décembre 2019

Maven skip copy of test resources

I want to skip copying the test resources during build. I tried the following plugin configuration:

        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-resources-plugin</artifactId>
            <version>3.1.0</version>
            <executions>
                <execution>
                    <goals>
                        <goal>testResources</goal>
                    </goals>
                    <phase>process-test-resources</phase>
                    <configuration>
                        <skip>true</skip>
                    </configuration>
                </execution>
            </executions>
        </plugin>

Alas it's still copying the resources. I tried a couple of different phases (compile, test) but to no avail.

[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ Project---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 5635 resources

What do I have to do so this is skipped?

Aucun commentaire:

Enregistrer un commentaire