[jboss-jira] [JBoss JIRA] (AS7-2997) TS: Way to build with a clean local repo.
Ondrej Zizka (Updated) (JIRA)
jira-events at lists.jboss.org
Thu Dec 15 13:32:09 EST 2011
[ https://issues.jboss.org/browse/AS7-2997?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ondrej Zizka updated AS7-2997:
------------------------------
Description:
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.
was:
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>
</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`.
So it's not to be done in the testsuite itself. Resolving.
> TS: Way to build with a clean local repo.
> -----------------------------------------
>
> Key: AS7-2997
> URL: https://issues.jboss.org/browse/AS7-2997
> Project: Application Server 7
> Issue Type: Sub-task
> Components: Test Suite
> Reporter: Ondrej Zizka
> Assignee: Ondrej Zizka
> Fix For: 7.2.0.Alpha1
>
>
> 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: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list