diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 3b82ac148897..d9281fa420b9 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -37,7 +37,7 @@ jobs: cache: 'maven' - name: Build with Maven - run: mvn verify -e -B -V -DdistributionFileName=apache-maven + run: mvn clean verify -e -B -V -DdistributionFileName=apache-maven - name: Upload built Maven uses: actions/upload-artifact@v2 @@ -118,4 +118,4 @@ jobs: - name: Running integration tests shell: bash - run: mvn install -e -B -V -Prun-its,embedded -Dmaven.repo.local="$HOME/.m2/repository" -DmavenDistro="$GITHUB_WORKSPACE/built-maven/apache-maven-bin.zip" -f maven-integration-testing/pom.xml + run: mvn clean install -e -B -V -Prun-its,embedded -Dmaven.repo.local="$HOME/.m2/repository" -DmavenDistro="$GITHUB_WORKSPACE/built-maven/apache-maven-bin.zip" -f maven-integration-testing/pom.xml diff --git a/.github/workflows/maven_build_itself.yml b/.github/workflows/maven_build_itself.yml index c181d23d137a..617864ffdbe0 100644 --- a/.github/workflows/maven_build_itself.yml +++ b/.github/workflows/maven_build_itself.yml @@ -38,7 +38,7 @@ jobs: cache: 'maven' - name: Build with Maven - run: mvn verify -e -B -V -DdistributionFileName=apache-maven + run: mvn clean verify -e -B -V -DdistributionFileName=apache-maven - name: Extract tarball shell: bash