Clean to avoid stale files

This commit is contained in:
Michael Osipov 2021-01-23 21:44:53 +01:00
parent b46310ef89
commit a5ea1640e0
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ CALL :maven && CALL :maven-integration-testing
:: ========== FUNCTIONS ==========
:maven
CALL mvn verify -DdistributionFileName=${project.artifactId} -f "%_MAVENCODEBASE%" || exit /B
CALL mvn clean verify -DdistributionFileName=${project.artifactId} -f "%_MAVENCODEBASE%" || exit /B
:maven-integration-testing
CALL mvn clean install -Prun-its,embedded -Dmaven.repo.local="%cd%\repo" -DmavenDistro="%_MAVENCODEBASE%\apache-maven\target\apache-maven-bin.zip" -DwrapperDistroDir="%_MAVENCODEBASE%\apache-maven\target" -DmavenWrapper="%_MAVENCODEBASE%\maven-wrapper\target\maven-wrapper.jar" || exit /B

View File

@ -29,7 +29,7 @@ else
/*) ;;
*) MAVENCODEBASE="$PWD/$MAVENCODEBASE" ;;
esac
mvn verify -P versionlessMavenDist -f "$MAVENCODEBASE" || exit $?
mvn clean verify -P versionlessMavenDist -f "$MAVENCODEBASE" || exit $?
mvn clean install -Prun-its,embedded -Dmaven.repo.local=`pwd`/repo -DmavenDistro="$MAVENCODEBASE/apache-maven/target/apache-maven-bin.zip" -DwrapperDistroDir="$MAVENCODEBASE/apache-maven/target" -DmavenWrapper="$MAVENCODEBASE/maven-wrapper/target/maven-wrapper.jar"
fi