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

    Details

    • Type: Sub-task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ozizka Ondrej Zizka
                Reporter:
                ozizka Ondrej Zizka
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: