Commit Graph

296 Commits

Author SHA1 Message Date
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
Guillaume Nodet 77a2226aa1 Allow running the it suite with mvn4 (#203) 2022-10-07 08:27:22 +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
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
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
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 fa2ff6e83a [MNG-7468] Check unsupported plugins parameters in configuration 2022-06-03 22:35:27 +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 8fd5645e36 [MNG-7464] Warn about using read-only parameters for Mojo in configuration 2022-05-05 21:11:39 +02:00
Slawomir Jaranowski cbafd073be [MNG-7457] Warn about deprecated plugin Mojo 2022-04-24 15:45:31 +02:00
Slawomir Jaranowski c8413005bc [MNG-5222] Improvement in deprecated params detection enable for 3.9.x 2022-04-23 12:29:19 +02:00
Slawomir Jaranowski c8c99c3d40 [MNG-5222] Improvement in deprecated params detection 2022-04-23 09:23:58 +02:00
Michael Osipov 98be639aa6 Replace o.codehaus.doxia.sink.Sink with o.a.m.doxia.sink.Sink 2022-04-15 18:22:03 +02:00
Slawomir Jaranowski 8599cec4a7 [MNG-5222] Maven 3 no longer logs warnings about deprecated plugin parameters 2022-04-12 20:48:55 +02:00
Slawomir Jaranowski 98af9777d6 Fix tests on JDK 1.7 - setup TLS protocol for verifier 2022-04-08 07:59:51 +02:00
Hervé Boutemy e4b2fc737f document addition resolution groups, fix javadoc, upgrade parent 2022-01-16 01:56:01 +01:00
Michael Osipov a8bc217571 Remove profile not supported since MNG-7047 2021-12-29 12:37:45 +01:00
Arturo Bernal f1c00d92d5 [MNG-7231] Fix Javadoc errors
This closes #112
2021-09-05 21:18:50 +02:00
Michael Osipov 4d3a6397fe Normalize line endings 2021-08-02 15:35:52 +02:00
rfscholte a469fd5823 Make tests verifiable with at least Maven 3.6.3 2021-02-28 23:26:58 +01:00
Michael Osipov db6f8bfef8 Correct terms: Java operates on files and directories
Use 'directory' instead of the term 'folder' from Windows Explorer.
2021-01-23 22:59:43 +01:00
Sylwester Lachiewicz b46310ef89 Set minimal default target/source/release for maven-compiler to Java 7 2021-01-08 03:50:12 +01:00
Michael Osipov 6b0efd992c Trim trailing whitespace 2020-12-24 00:31:14 +01:00
Michael Osipov ce575c91a4 [MNG-5728] Switch the default checksum policy from "warn" to "fail" 2020-11-30 20:21:11 +01:00
Michael Osipov 3b4ecab8ba Move test plugin for MNG-4338 to Maven 3.0 Plugin API 2020-11-14 01:11:05 +01:00
Maarten Mulders 8a989d5e4b [MNG-6985] Use correct maven.multiModuleProjectDirectory in Embedded mode 2020-09-11 07:48:41 +02:00
rfscholte de89cf15c7 Lock plugin versions in extension lifecycle to prevent it'll pick up the LATEST, which might behave differently 2020-06-19 23:12:36 +02:00
Michael Osipov 0944ed2259 [MNG-6938] MavenITBootstrapTest fails with StringIndexOutOfBoundsException: String index out of range: -1
This is a regression introduced by 1c88bf3e1c.
2020-06-11 00:23:29 +02:00
Hervé Boutemy b804f9c6fa display (near-)method name as a method 2020-06-07 10:16:50 +02:00
Hervé Boutemy 1c88bf3e1c add color to ITs rendering 2020-06-06 22:05:19 +02:00
olivier lamy bb1b892144 [MNG-5868] Adding serval times the same artifact via MavenProjectHelper (attachArtifact) keep adding to the List duplicate artifacts
Signed-off-by: olivier lamy <olamy@apache.org>
2020-06-04 11:49:52 +10:00
rfscholte 0ac723e2a6 [5937] Maven-Wrapper for unified project environments 2020-05-22 22:33:01 +02:00
rfscholte ea1618cc1d [MNG-5669] same pom.xml is read multiple times 2020-01-29 21:14:26 +01:00
rfscholte bf7e8f5ec4 http to central not supported anymore, switch to https 2020-01-15 22:00:12 +01:00
Karl Heinz Marbaise d2342c1f87 Removed scm parts which are inherited and fixed GitHub URL. 2019-12-28 23:02:57 +01:00
Karl Heinz Marbaise 00e6f20bf5 Updated scm information to point to git instead of svn. 2019-12-28 22:46:29 +01:00
Karl Heinz Marbaise 5de5200218 Removed SVN legacy. 2019-12-27 14:21:25 +01:00
rfscholte 2e4f619126 [MNG-6759] Fix module name 2019-11-17 22:56:46 +01:00
Stig Døssing 6700a88209 [REGRESSION] Maven fails to use <repositories> section from dependency when resolving transitive dependencies in some cases 2019-11-17 22:09:10 +01:00
Hervé Boutemy fdfc9c581e clarify Core ITs vs Core IT Support vs Core ITs Suite 2019-08-23 23:42:19 +02:00
rfscholte 010191c7b4 [INFRA-18812] Revert unnecessary commits after fixing root cause 2019-08-05 18:30:03 +02:00
tibordigana f576fefa0a [MNG-6725] Skip '.mavenrc' via MAVEN_SKIP_RC=1 and '-Dmaven.skip.rc=true' on child ITs (by default on Jenkins CI). 2019-07-30 11:48:44 +02:00
Joseph Walton b4a1558c6e [MNG-4385] Avoid failse positive for unrelated errors
Inspect the log to be confident that this build is failing because
the extension hasn't carried over to the second module.

This closes #44
2019-07-03 15:05:09 +02:00
Sylwester Lachiewicz 0b939e6bbd [MNG-6522] Fix typos 2019-01-11 23:20:36 +01:00
Sylwester Lachiewicz 91f5088578 [MNG-6522] Prepare to run ITs tests with Java 12-ea 2019-01-11 19:25:41 +01:00