Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-576 Testsuite tasks (tracking)
  3. WFLY-628

TS: Way to build with a clean local repo.

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major 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.

              ozizka_jira Ondrej Zizka (Inactive)
              ozizka_jira Ondrej Zizka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: