[
https://issues.jboss.org/browse/WFLY-628?page=com.atlassian.jira.plugin.s...
]
Jason Greene moved AS7-2997 to WFLY-628:
----------------------------------------
Project: WildFly (was: Application Server 7)
Key: WFLY-628 (was: AS7-2997)
Component/s: (was: Test Suite)
TS: Way to build with a clean local repo.
-----------------------------------------
Key: WFLY-628
URL:
https://issues.jboss.org/browse/WFLY-628
Project: WildFly
Issue Type: Sub-task
Reporter: Ondrej Zizka
Assignee: Ondrej Zizka
This can be done either by using an empty local repo, setting it in settings.xml,
{code}
<settings>
<localRepository>mvn-repo</localRepository>
...
{code}
or by using the dependency:purge-local-repository goal in a profile:
{code}
<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>
{code}
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira