2015-06-20 07:55:50 -04:00
|
|
|
<!---
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
or more contributor license agreements. See the NOTICE file
|
|
|
|
distributed with this work for additional information
|
|
|
|
regarding copyright ownership. The ASF licenses this file
|
|
|
|
to you under the Apache License, Version 2.0 (the
|
|
|
|
"License"); you may not use this file except in compliance
|
|
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
|
|
software distributed under the License is distributed on an
|
|
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
KIND, either express or implied. See the License for the
|
|
|
|
specific language governing permissions and limitations
|
|
|
|
under the License.
|
|
|
|
-->
|
2013-11-29 15:13:13 -05:00
|
|
|
Maven Core Integration Tests
|
2014-02-09 06:07:54 -05:00
|
|
|
========
|
|
|
|
|
2018-03-19 18:24:31 -04:00
|
|
|
<https://maven.apache.org/core-its/>
|
2013-11-29 15:13:13 -05:00
|
|
|
|
2017-01-04 04:20:35 -05:00
|
|
|
If you want to run the integration tests against a custom build of Maven use the following command:
|
|
|
|
|
|
|
|
```
|
2020-05-26 14:14:01 -04:00
|
|
|
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!)
|
|
|
|
```
|
2020-06-01 02:32:58 -04:00
|
|
|
mvn clean install -Prun-its,embedded -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.jar"
|
2017-01-04 04:20:35 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
or if behind a proxy
|
|
|
|
|
|
|
|
```
|
|
|
|
mvn clean install -Prun-its -Dmaven.repo.local=`pwd`/repo -DmavenDistro=/path/to/apache-maven-dist.zip -Dproxy.active=true -Dproxy.type=http -Dproxy.host=... -Dproxy.port=... -Dproxy.user=... -Dproxy.pass=...
|
|
|
|
```
|
|
|
|
|
2020-05-31 22:19:44 -04:00
|
|
|
Using the script
|
|
|
|
|
|
|
|
Build Maven core with the profile `-PversionlessMavenDist`
|
|
|
|
|
|
|
|
Now Run the script: `sh ./run-its.sh`
|
|
|
|
|
2013-11-29 15:13:13 -05:00
|
|
|
Maven Developers List: dev@maven.apache.org
|