Commit Graph

2410 Commits

Author SHA1 Message Date
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
Giovanni van der Schelde 274a81d8ad [MNG-7443] Implement consistent logging between optional projects and optional profiles
This closes #168
2022-07-29 11:27:29 +02:00
Marc Wrobel ced91ebeca [MNG-7517] Improve MavenITmng6391PrintVersionTest tests resiliency
Maven 4.0.x has some new code which takes care of the terminal width to adjust
the output. The number of dots can thus vary when running the tests locally.

Co-authored-by: Guillaume Nodet <gnodet@gmail.com>

This closes #187 and closes #175.
2022-07-26 19:52:21 +02:00
Guillaume Nodet b9eae39894 [MNG-7474] SessionScoped beans should be singletons for a given session (#177)
* [MNG-7474] SessionScoped beans should be singletons for a given session
* Upgrade Maven Resources Plugin to 3.2.0 in MNG-6720/MNG7335 to avoid
  ConcurrentModificationException
* Clean up IT a bit

This closes #177
2022-07-25 15:21:08 +02:00
Michael Osipov 3e892f99ed [MNG-7020] Remove Maven 2 WagonExcluder backward compat code
* Disable unused tests
* Update Maven 2 plugins to Maven 3 to avoid conflicts with old Maven
  and Wagon 1

This closes #78
2022-07-24 10:51:52 +02:00
Hervé Boutemy be210ff030 [MNG-7353] test prefix:version:goal invocation and every other CLI
This closes #188
2022-07-21 14:36:51 -07:00
Marc Wrobel d98b1842d5 Fix minor typos
Fix various minor typos in :

- project documentations,
- javadoc and comments,
- test class and method names,
- exception messages.
2022-07-19 19:36:32 +02:00
Guillaume Nodet 6b72f2f9a5 Upgrade to JDK8, use a plugin to download all dependencies to bypass conflict resolution (#178) 2022-07-01 20:54:18 +02:00
Slawomir Jaranowski 7bef7574ad [MNG-7504] Don't print warning unsupported reportPlugins for m-site-p 2022-06-28 21:46:13 +02:00