Update documentation on how to run ITs including tests for maven-wrapper

This commit is contained in:
rfscholte 2020-05-26 20:14:01 +02:00
parent 0ac723e2a6
commit e6c2c2e644
3 changed files with 27 additions and 6 deletions

View File

@ -24,7 +24,17 @@ Maven Core Integration Tests
If you want to run the integration tests against a custom build of Maven use the following command:
```
mvn clean install -Prun-its -Dmaven.repo.local=`pwd`/repo -DmavenDistro=/path/to/apache-maven-dist.zip
export MAVENCODEBASE=<path-to-maven-codebase>
```
You can choose to build the maven project from here with:
```
mvn verify -P local-it -f "$MAVENCODEBASE"
```
Now run (don't forget to update the versions!)
```
mvn clean install -Prun-its,embdedded -Dmaven.repo.local=`pwd`/repo -DmavenDistro="$MAVENCODEBASE\apache-maven\target\apache-maven-<VERSION>-bin.zip" -DwrapperDistroDir="$MAVENCODEBASE\apache-maven\target" -DmavenWrapper="$MAVENCODEBASE\maven-wrapper\target\maven-wrapper-<VERSION>.jar"
```
or if behind a proxy

View File

@ -17,10 +17,15 @@
@REM under the License.
@REM
@REM How JvZ runs the ITs from a clean slate if it would be on Windows
mvn clean install -U -Prun-its,embedded -Dmaven.repo.local=%cd%\repo
@ECHO OFF
if "%MAVENCODEBASE%" == "" (
echo Please set MAVENCODEBASE
@ECHO ON
) else (
@ECHO ON
mvn verify -Plocal-it -f "%MAVENCODEBASE%"
mvn clean install -Prun-its,embdedded -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"
)
@REM If behind a proxy try this..
@REM mvn clean install -Prun-its,embedded -Dmaven.repo.local=%cd%\repo -Dproxy.host=<host> -Dproxy.port=<port> -Dproxy.user= -Dproxy.pass= -Dproxy.nonProxyHosts=<hosts>

View File

@ -21,7 +21,13 @@
# How I run the ITs from a clean slate. Though I do this with a primed Nexus instance. JvZ.
mvn clean install -Prun-its,embedded -Dmaven.repo.local=`pwd`/repo
if [ -z "$MAVENCODEBASE" ] ; then
echo Please export MAVENCODEBASE
else
mvn verify -P local-it -f "$MAVENCODEBASE"
mvn clean test -Prun-its,embdedded -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
# If behind a proxy try this