commit | ffdc2ed0310e116c5791eb473bb5e98bd2c0e87b | [log] [tgz] |
---|---|---|
author | Tamas Cservenak <tamas@cservenak.net> | Mon Jan 16 14:13:55 2023 +0100 |
committer | GitHub <noreply@github.com> | Mon Jan 16 14:13:55 2023 +0100 |
tree | aa91ad95234c94c5d80e730119d33d38e7f0c4a6 | |
parent | e6990bf0906a4b669f20c6806cbf0e26515ad647 [diff] |
[MNG-7667] Fix DownloadMojo to properly resolve (#236) The m-p-p depends on m-p-tools-ant and m-p-tools-beanshell as runtime/optional, and the way DownloadMojo resolves every artifact causes that OptionalDependencySelector filter these out even at "collection" stage (as depth >= 2). Hence, fix DownloadMojo to resolve properly, that actually shifts all the tree "one level up", and hence result is same as in Maven, as the optional dependencies become "first level sibling". --- https://issues.apache.org/jira/browse/MNG-7667
https://maven.apache.org/core-its/
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
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=...
Using the script
Build Maven core with the profile -PversionlessMavenDist
Now Run the script: sh ./run-its.sh
Maven Developers List: dev@maven.apache.org