Commit Graph

2502 Commits

Author SHA1 Message Date
Guillaume Nodet 25c982eeb8 Remove a few system properties before initializing the maven verifier (#232) 2023-01-17 00:20:18 +01:00
Tamas Cservenak 76c0d133a3 [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
2023-01-16 14:13:55 +01:00
Petr Široký 8d8dba4c6f [MNG-7661] Replace deprecated 'verifier.setMavenDebug()' 2023-01-15 22:32:54 +01:00
Petr Široký 40aa1115e6 [MNG-7661] Replace deprecated 'verifier.newDefaultFilterProperties()' 2023-01-15 19:45:20 +01:00
Petr Široký 3f029c11a9 [MNG-7661] Replace deprecated 'verifier.addCliOption()' 2023-01-13 17:16:59 +01:00
Slawomir Jaranowski ff9047ab6b Fix MavenITmng5669ReadPomsOnce
In test, we check if pom files are read only once.

When we update plugin or dependencies in test,
number of read items can change again.

So should be good enough to check if duplicate items exist in log file.
2023-01-13 09:01:24 +01:00
Tamas Cservenak b035fb3037 [MNG-7667] Fix Bootstrap IT (#230)
This change extends Bootstrap IT (1st IT that fills in local repo) to hunt down some plugins that are bound in lifecycles provided by Maven under test.

Changes:
* the Bootstrap IT invokes only the phase where DownloadMojo is bound
* DownloadMojo (the "bootstrap") changed to do "this or that": it either resolves all artifacts from provided file OR collects plugins for given project packaging plugin versions provided by tested Maven default lifecycle.
* Split more Bootstrap project POMs, now we have 4 modules, we can add more (even extension if needed)

---

https://issues.apache.org/jira/browse/MNG-7667
2023-01-12 22:34:16 +01:00
Tamas Cservenak 11e8501adb Fix plexus-component-metadata plugin version (#229)
A parent POM have it removed, but the plgMgmt does
not have this entry of IT project.
2023-01-12 13:07:09 +01:00
Tamas Cservenak 1b31813b91 [MNG-7665] Update Jetty to latest Java8 capable version (#228)
Update Jetty to latest 9.4.50, last Java 8 capable version. Apply API changes and also remove jetty-servlet as ITs does NOT use servlet aspect of Jetty HTTP server.. This will simplify our lives in future, to make jump to later versions (that are Java 11+). Also, drop jetty-servlet as test do not use any servlet aspect.

---

https://issues.apache.org/jira/browse/MNG-7665
2023-01-12 11:20:33 +01:00
Petr Široký cb51050ea6 [MNG-7661] Fix verifier 'clean' call in one of the ITs (#227) 2023-01-11 13:42:55 +01:00
Guillaume Nodet 59f503bece Modernize IT plugins to use annotations (#184)
* Modernize IT plugins to use annotations

* Align some tests to maven 3.8.6

# Conflicts:
#	core-it-suite/src/test/resources-filtered/bootstrap.txt
#	core-it-suite/src/test/resources/mng-3221/report/pom.xml
#	core-it-suite/src/test/resources/mng-3428/pom.xml
#	core-it-suite/src/test/resources/mng-3530/build-path/plugin/pom.xml
#	core-it-suite/src/test/resources/mng-3530/pom-property/plugin/pom.xml
#	core-it-suite/src/test/resources/mng-3530/resource-object/plugin/pom.xml
#	core-it-suite/src/test/resources/mng-3704/maven-mng3704-plugin/pom.xml
#	core-it-suite/src/test/resources/mng-3743/plugins/maven-mng3743-check-plugin/pom.xml
#	core-it-suite/src/test/resources/mng-3743/plugins/maven-mng3743-report-plugin/pom.xml
#	core-it-suite/src/test/resources/mng-3743/project/pom.xml
#	core-it-suite/src/test/resources/mng-4086/repo/org/apache/maven/its/mng4086/maven-it-plugin-a/0.1/maven-it-plugin-a-0.1.pom
#	core-it-suite/src/test/resources/mng-4086/repo/org/apache/maven/its/mng4086/maven-it-plugin-a/0.2-SNAPSHOT/maven-it-plugin-a-0.2-20090315.124508-1.pom
#	core-it-suite/src/test/resources/mng-5581-lifecycle-mapping-delegate/extension/pom.xml
#	core-it-suite/src/test/resources/mng-7310-lifecycle-activated-in-specified-module/project/pom.xml

* Add dependencies on all support artifacts to ensure multithreaded builds can use correct ordering

* Add missing dependencies on plexus-utils

* Fix for mng-7335 test

* Fix ITs for maven 4

* Rename Component -> TestComponent to leave room for the annotation

* Upgrade a few plugin versions

* Upgrade some JDK requirements to 1.8

* Remove unwanted parentheseses

* Convert the last mojo to annotations

* Force timestamped build

* Fix ITs following Component -> TestComponent rename

* Remove commented block

* Remove versions infered from plugin management

* The implementation parameter is not supported anymore

* Align maven core version

* Fix bad merge
2023-01-11 13:35:56 +01:00
Petr Široký 5ec94529d2 [MNG-7661] Replace deprecated 'verifier.executeGoal()' 2023-01-09 17:55:26 +01:00
Petr Široký 9eb3ee980f [MNG-7661] Use provided scope for Maven deps in IT plugins 2023-01-09 16:46:14 +01:00
Petr Široký 1a78c89175 [MNG-7661] Remove deprecated 'verifier.resetStreams()'
* the method itself is empty in newer versions of verifier,
   so this change is not removing any behavior
2023-01-05 19:35:02 +01:00
Petr Široký e24b2edf84 Upgrade Groovy in one of the ITs to support JDK 19 2023-01-04 08:55:58 +01:00
Michael Osipov 78c3506412 [MNG-7640] Investigate which ITs really need to set system properties
This closes #220
2023-01-02 20:38:13 +01:00
Slawomir Jaranowski e19a8c77c9 Use Maven 3.8.7 for GH builds 2023-01-01 21:34:55 +01:00
Michael Osipov 3506f01962 Add missing javax.annotation:javax.annotation-api:1.2 2022-12-21 22:31:44 +01:00
Michael Osipov a5d4d3f287 [MNG-7634] Pass user properties instead of system properties
Instead of passing a user property to verify a fix a system property was passed
where code worked before and after the fix identically.
2022-12-20 09:21:08 +01:00
Guillaume Nodet 23ca811a13 Disable tests on maven >= 4.0.0-alpha-3 (#218) 2022-12-12 09:02:24 +01:00
Guillaume Nodet 4d465f3651 [MNG-7618] Fix display for plugins (#217) 2022-12-05 16:48:18 +01:00
Tamas Cservenak 8949df8abe MNG-7608] Make native transport the default (#216)
Changed default transport from 4.0.0-alpha3

---

https://issues.apache.org/jira/browse/MNG-7608
2022-12-02 16:12:31 +01:00
Konrad Windszus 66d369f612 Revert "Revert "[MNG-6609] enable IT for Maven 3.9.0 (#208)""
This reverts commit 95104990db.
2022-12-01 18:21:50 +01:00
Konrad Windszus 0161e27d34 [MNG-7606] add IT (#214)
Add IT, run with all Maven versions.

Co-authored-by: Tamas Cservenak <tamas@cservenak.net>
2022-12-01 12:33:23 +01:00
Tamas Cservenak 95104990db Revert "[MNG-6609] enable IT for Maven 3.9.0 (#208)"
This reverts commit 38502e2615.
2022-11-28 10:07:39 +01:00
Konrad Windszus 38502e2615 [MNG-6609] enable IT for Maven 3.9.0 (#208) 2022-11-27 16:51:33 +01:00
Slawomir Jaranowski d61443cfef Update actions in GH build
Old actions use deprecated node 12

- checkout v2 -> v3
- setup-java v2 -> v3
- disable access to GITHUB_TOKEN
- don't store credentials with checkout
2022-11-16 00:07:44 +01:00
Slawomir Jaranowski 27271e41fb Fix flappy test - mng-6720-fail-fast
- old m-resource-p can fail in multi thread executions
- test project use aggregation - so we need provided configuration in each module
- replace deprecated method
- add message for assertions
2022-11-14 16:17:53 +01:00
Slawomir Jaranowski fc6d2311a6 Allow basedir system property to be null for build info.txt
- basedir can be null when test is executed by IDE, use default value
- use try-with-resources
2022-11-13 18:15:23 +01:00
Tom Scholten 2c2c7fbf58 [MNG-7378] Add documentation about the location of ITs and how to run them
Closes #207.
2022-10-28 15:31:10 +02:00
Konrad Windszus bc1c707018 [MNG-6609] packaging specific profile activation (#206) 2022-10-24 13:19:34 +02:00
Konrad Windszus 1a7b5a39bb [MNG-7566] Support Java prerequisites in plugin descriptor (#204) 2022-10-21 08:04:55 +02:00
Guillaume Nodet 77a2226aa1 Allow running the it suite with mvn4 (#203) 2022-10-07 08:27:22 +02:00
Guillaume Nodet 3b98814f9e Make sure the rat plugin is only run once on the parent 2022-10-07 08:17:04 +02:00
Guillaume Nodet 6e8ff2d151 Move ITs to JDK 8 / JUnit 5 (#176)
* Move ITs to JDK 8 / JUnit 5
* Add missing tests, move disabled test comments to the test itself
* Add unreferenced tests (Unreferenced tests are automatically added at the beginning, but it looks more coherent to add them anyway)
* Reset verifier to run fresh test in MNG-5581
* Remove useless lines
* Minimize changes in imports

Co-authored-by: Michael Osipov <michaelo@apache.org>
2022-09-30 22:23:04 +02:00
Michael Osipov 13b14eb4a3 [MNG-7549] Upgrade Core ITs to Maven Verifier 2.0.0-M1
Co-authored-by: Slawomir Jaranowski <s.jaranowski@gmail.com>

This closes #202
2022-09-28 11:34:03 +02:00
Michael Osipov 88c46ff2f8 Remove unused imports 2022-09-28 11:32:57 +02:00
Martin Kanters ceb7715483 [MNG-7310] Add a test for MNG-7310 which installs an extension and then builds a multimodule project where one submodule activates the extension, and a submodule which should not activate the extension.
This resolves #131.
2022-09-16 14:38:17 +02:00
Slawomir Jaranowski e4bc37a71a Add org.apache.maven.plugins:maven-plugin-plugin:3.2 to bootstrap 2022-09-15 10:31:58 +02:00
Guillaume Nodet bef57cd8a6 Remove remaining reference to verifier.getCliOptions() (#198) 2022-09-09 17:30:14 +02:00
Guillaume Nodet 82f5356905 Remove verifier.getCliOptions().add( x ) pattern (#197)
Follow up to bd2508049c which missed a few tests using the above pattern
2022-09-09 10:32:45 +02:00
Guillaume Nodet 7fe25b449a [MNG-7537] Remove pre 3.9.x tests (#196) 2022-09-09 09:55:55 +02:00
Slawomir Jaranowski 46eb0527e3 Add missing artifacts for tests to bootstrap
maven-plugin-api:3.2.5, sisu-maven-plugin:0.3.5 are used eg. in  mng7474
it causes errors with empty local repo
2022-09-07 23:07:24 +02:00
Slawomir Jaranowski bd2508049c Add cli arguments one by one for Verifier
Prepare for Verifier 2.0 - MSHARED-1125
2022-09-07 21:16:09 +02:00
Slawomir Jaranowski 4a572705c0 Disable merge button on GitHub 2022-09-02 13:29:48 +02:00
Guillaume Nodet 7d52000842 [MNG-7474] Add and fix IT (#192) 2022-09-02 12:58:38 +02:00
Henning Schmiedehausen fac10d2c91 Merge pull request #189 from hgschmie/mng-7529
[MNG-7529] Integration test for MNG-7529
2022-08-26 10:34:29 -07:00
Henning P. Schmiedehausen bf87496d2b [MNG-7353] Add missing dependencies to bootstrap.txt 2022-08-24 17:45:20 +02:00
Hervé Boutemy afe5d88f77 [MNG-7353] choose m-dependency-p versions that match bootstrap 2022-08-22 08:27:23 +02:00
Henning P. Schmiedehausen 1307bf39a4 [MNG-7529] Integration test for MNG-7529
This test checks whether version range resolution with multiple repositories maps releases onto repos that
are not enabled for releases.

Tested with 3.8.x, 3.9.x and master. Reliably fails without the MNG-7529 fix applies, reliable passes with
the fix applied.
2022-08-21 21:35:32 -07:00