-
Sub-task
-
Resolution: Done
-
Major
-
None
-
None
-
None
-
None
This can be done either by using an empty local repo, setting it in settings.xml,
<settings> <localRepository>mvn-repo</localRepository> ...
or by using the dependency:purge-local-repository goal in a profile:
<profile>
<id>cleanRepo.profile</id>
<activation><property><name>cleanRepo</name></property></activation>
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<goals><goal>purge-local-repository</goal></goals>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions> <execution>
<id>remove-old-installers</id>
<goals><goal>remove-project-artifact</goal></goals>
<configuration> <removeAll>true</removeAll> </configuration>
</execution> </executions>
</plugin>
</plugins>
</build>
</profile>
However first can only be done in settings.xml, and not in a profile, and the later can be done with `mvn dependency:purge-local-repository build-helper:remove-project-artifact -Dbuildhelper.removeAll`.
So it's not to be done in the testsuite itself. Resolving.