Commit Graph

2420 Commits

Author SHA1 Message Date
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
Guillaume Nodet 34fe4f415a [MNG-7360] Add an IT for build consumer with tags in plugin configs (#167) 2022-06-28 08:42:57 +02:00
Michael Osipov 8631416cfd [MNG-6965] Extensions suddenly have org.codehaus.plexus:plexus-utils:jar:1.1 on their classpath
Scope a few ITs for (,3.9.0).

This closes #173
2022-06-24 18:44:50 +02:00
Jesse Glick df0d899204 Demonstrating that importing a BOM works even when it declares those same components in dependency management. (#25) 2022-06-23 11:56:11 +10:00
Olivier Lamy e47b17772b create a simple Jenkinsfile/gh actions to validate PR and branches without changes in core (#172)
* create a simple Jenkinsfile and GHA to validate PR and branches

Signed-off-by: Olivier Lamy <olamy@apache.org>
2022-06-17 10:50:33 +10:00
Guillaume Nodet ae3adfed57 [MNG-7160] Backport to 3.9.x 2022-06-15 11:16:55 +02:00
Guillaume Nodet cb46021723 [MNG-7160] Integration test for extension classloading strategy 2022-06-15 10:41:48 +02:00
Michael Osipov a7826ef569 Fix WS 2022-06-14 09:51:33 +02:00
Guillaume Nodet 745306b363 [MNG-7160] Fix integration tests with element renaming 2022-06-14 09:16:59 +02:00
Guillaume Nodet 30689b6225 [MNG-7160] Integration test for extension classloading strategy 2022-06-14 09:16:57 +02:00
Slawomir Jaranowski 0985a9e557 [MNG-7468] Check unsupported plugins parameters in configuration - 3.9 2022-06-06 17:23:04 +02:00
Slawomir Jaranowski fa2ff6e83a [MNG-7468] Check unsupported plugins parameters in configuration 2022-06-03 22:35:27 +02:00
Guillaume Nodet 0d5f16c257 [MNG-7487] Fix deadlock during forked lifecycle executions
This closes #162
2022-05-30 13:08:11 +02:00
Slawomir Jaranowski 5b5ea2a8dc upgrade sonatype -> eclipse for sisu-maven-plugin 2022-05-21 18:26:17 +02:00
Slawomir Jaranowski c6079bb5a6 Upgrade maven-verifier to 1.8.0
- upgrade maven-verifier
- remove code implemented in maven-verifier
- replace deprecated methods
2022-05-19 16:28:13 +02:00
Slawomir Jaranowski c2d9fff607 Fix - mute Jetty
Fix for #159

Jetty logger not always is StdErrLog can be eg. Slf4jLog
2022-05-18 20:28:51 +02:00
Tamas Cservenak 2ea97ba825 Mute Jetty (#159)
The HttpServer helper is used by two ITs:
* MavenITmng7470ResolverTransportTest
* MavenITmng5771CoreExtensionsTest

And it logs in case of MNG7470 for unknown reason. My bet would
be some static initing happening as side effect of OTHER ITs that
use Jetty directly, like MavenITmng5868NoDuplicateAttachedArtifacts.

Anyway, this sorts out Jetty logging.
2022-05-18 08:45:26 +02:00
Tamas Cservenak 6c2ba8602e Fix the MavenITmng7470ResolverTransportTest (#161)
The test must be forked, as it fails to work
in embedded mode, as loggers seems already inited
2022-05-16 20:41:52 +02:00
Tamas Cservenak 1c034e2b65 Extend MavenITmng7470ResolverTransportTest (#160)
To cover the default case as well (nothing set), and make sure
Wagon is used.
2022-05-13 10:31:07 +02:00
Tamas Cservenak 07f35e0aa9 [MNG-7470] mvn 3.9+ IT that uses wagon (default) and native transport (#158)
An IT for Maven 3.9+ that "exercise" both resolver transport: wagon and native (so we have 2 tests both forcing transport with `-Dmaven.resolver.transport` one wagon (which is default, but setting is there to be explicit) and once native.

It builds a project that needs a plugin (to pull it will use set transport), and that plugin will use resolver as well to resolve set artifact. If any of these fails, maven project fails.

Related fix: https://github.com/apache/maven/pull/732 (jn maven-3.9.x and master)
2022-05-11 22:59:02 +02:00
Maarten Mulders e7d7e924a3 Remove a seemingly unused file 2022-05-10 13:46:52 +02:00
Slawomir Jaranowski 7942ac117a Fix test Maven version range assumptions MavenITmng7464ReadOnlyMojoParametersWarningTest 2022-05-09 10:40:53 +02:00
Slawomir Jaranowski 7e1181b387 [MNG-7464] Warn about using read-only parameters for Mojo in configuration - 3.9 2022-05-06 23:05:01 +02:00
Slawomir Jaranowski 8fd5645e36 [MNG-7464] Warn about using read-only parameters for Mojo in configuration 2022-05-05 21:11:39 +02:00
Maarten Mulders c6af9d259d [MNG-7404] Drop support for prefixless expressions
Most IT's that used e.g. ${version} are now
disabled from Maven 4.0.0-alpha-1 onward.
The others have been updated not to use
'prefixless' expressions anymore.

Closes #141.
2022-04-27 20:10:06 +02:00