Commit Graph

2566 Commits

Author SHA1 Message Date
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
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
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
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 1b85c83b5d [MNG-5222] Enable tests for 3.9.x 2022-04-12 22:52:01 +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 6303d3ef16 Use old version of m-enforcer-p for JDK 1.7 2022-04-08 15:23:26 +02:00
Slawomir Jaranowski 135685b198 Skip mng7045 DropUselessAndOutdatedCdiApiTest on JDK 1.7 2022-04-08 13:53:10 +02:00
Slawomir Jaranowski 98af9777d6 Fix tests on JDK 1.7 - setup TLS protocol for verifier 2022-04-08 07:59:51 +02:00
Gabriel Belingueres 66cd7b58fb Fix MNG-828
* Make datetime parsing Locale independent.
2022-04-04 20:09:29 +02:00
Slawomir Jaranowski 2f4fd12d41 [MNG-828] fix assertions for maps, properties 2022-03-25 20:56:38 +01:00
Slawomir Jaranowski 89589b32f8 [MNG-828] fix date format in assertions 2022-03-25 18:11:00 +01:00
Slawomir Jaranowski 248a452461 [MNG-828] add regression test for listing plugin configuration values in debug 2022-03-25 17:11:39 +01:00
Michael Osipov a9ca68e40e [MNG-6972] Allow access to org.apache.maven.graph
Enable test for min fixed Maven version
2022-03-06 22:53:37 +01:00
Michael Osipov d626bbd9e9 [MNG-7045] Drop CDI API from Maven
Enable test for min fixed Maven version
2022-03-06 22:51:46 +01:00
Guillaume Nodet 7ec0b72c7b [MNG-7349] Fix IT not working on a clean repo 2022-02-21 10:10:58 +01:00
Martin Kanters ca3e806840 [MNG-7390] Allow selecting modules outside the cwd into the reactor using --projects
This closes #138
2022-02-19 23:58:22 +01:00
Giovanni van der Schelde 0776e8efa8 [MNG-7244] Remove deprecated WARNING for usage of pom.X placeholders
This closes #139
2022-02-19 23:17:54 +01:00
Christoph Läubrich a49c0a4a12 [MNG-7395] Support interpolation in extensions.xml
This closes #136
2022-02-19 21:03:13 +01:00
Martin Kanters 75050a7606 Set Maven compiler and release versions to 7 for integration test projects 2022-02-12 20:57:57 +01:00
Guillaume Nodet 69132de869 [MNG-7349] Limit relocation warning message to direct dependencies only 2022-01-24 07:52:54 +01:00
Hervé Boutemy 5b67a4e846 add a note about mirror settings for central 2022-01-17 21:19:58 +01:00
Michael Osipov d3cbcdaa9b Add missing dependencies to bootstrap for some ITs 2022-01-16 20:55:56 +01:00
Hervé Boutemy 993f32454d fix javadoc issues for JDK 8 2022-01-16 17:51:45 +01:00
Hervé Boutemy 1d007733db fix links (apt, not markdown), better split ITs vs support vs suite 2022-01-16 15:11:36 +01:00
Hervé Boutemy 6d5b007d19 fix "edit" link to markup source and bootstrap doc on ITs Suite deps 2022-01-16 11:04:15 +01:00
Hervé Boutemy e4b2fc737f document addition resolution groups, fix javadoc, upgrade parent 2022-01-16 01:56:01 +01:00
Maarten Mulders 657c4e9be5 [MNG-7217] Separate argument and value for -fos
Closes #123
2022-01-08 19:53:20 +01:00
Guillaume Nodet df4a3134a7 [MNG-6326] Make the build fail if core extensions can not be loaded (#133) 2022-01-07 09:50:53 +01:00
Michael Osipov 789f35ba4f [MNG-5561] Plugin relocation loses configuration
This closes #132
2022-01-06 16:56:33 +01:00
Michael Osipov a8bc217571 Remove profile not supported since MNG-7047 2021-12-29 12:37:45 +01:00
Hervé Boutemy 3cb3dbe2fa [MWRAPPER-14] remove wrapper-related ITs: not in core any more 2021-12-26 11:15:17 +01:00
Michael Osipov 864723989e [MNG-7045] Align test project name with rest 2021-12-25 19:50:18 +01:00
Michael Osipov 625fd590c0 [MNG-7335] Make IT compatible with Java 7
This closes #130
2021-12-22 15:48:19 +01:00
Guillaume Nodet 9e5b5a1b71 [MNG-7335] Add an integration test 2021-12-17 13:12:20 +01:00
Guillaume Nodet 75c4cf8883 Fix integration tests 2021-11-29 14:35:18 +01:00
Maarten Mulders 2513f4b34f [MNG-7332] Remove --define (long arg)
Closes #124.
2021-11-15 10:35:24 +01:00
Michael Osipov dc3359a0a6 Update ITs for simplify args help 2021-10-17 12:44:34 +02:00
Hervé Boutemy 445adba690 [MNG-6914] update wrapper distro directory, now apache-maven-wrapper 2021-10-11 23:48:07 +02:00
Guillaume Nodet 26c555962d Fix pom content comparison to avoid line ending problems (#119) 2021-10-06 09:29:32 +02:00
Guillaume Nodet c27293d258 Renormalize line endings (#117) 2021-10-05 13:40:31 +02:00
Tamas Cservenak 547870f199 Up enforcer version (#115)
To IT test maven3/2 we should not use lower than
3.x plugin (that is maven2 compat)
2021-10-01 16:38:10 +02:00
Christian Schulte d06643722a [MNG-4463] Dependency management import should support version ranges
This closes #28
2021-09-18 23:16:55 +02:00
Arturo Bernal f1c00d92d5 [MNG-7231] Fix Javadoc errors
This closes #112
2021-09-05 21:18:50 +02:00
Arturo Bernal d70be17830 [MNG-7230] Replace assert by simpler but equivalent calls
This closes #111
2021-09-05 21:18:00 +02:00
Michael Osipov 4d3a6397fe Normalize line endings 2021-08-02 15:35:52 +02:00
Michael Osipov e833f9ea40 [MNG-7189] Remove undocumented environment variable MAVEN_BASEDIR in startup scripts
This closes #109
2021-07-22 10:32:00 +02:00
rfscholte 4c5d721120 [MNG-7047] Adjust repositoryUrl for MNG-6759 2021-07-21 10:32:57 +02:00
Michael Osipov 63410da462 Properly quote arguements in run-its.sh 2021-07-20 22:31:45 +02:00
Michael Osipov 160aa89196 Remove unintentionally added files 2021-07-19 22:06:39 +02:00
Michael Osipov 93d0779d2e [MNG-6754] Enable IT for Maven 3.8.2 2021-07-13 10:18:02 +02:00
Michael Osipov 95fa979aed [MNG-7056] Replace tabs in IT files 2021-07-04 15:38:57 +02:00
Michael Osipov 9d07652019 Make ITs compile on Java 7 2021-07-03 15:13:51 +02:00
Michael Osipov 86db2c6721 [MNG-7115] MavenITmng5771CoreExtensionsTest fails on maven-3.8.x branch 2021-07-03 11:26:49 +02:00
Michael Osipov f02c8e5665 Add new ignores 2021-07-03 11:13:55 +02:00
Michael Osipov f5e2ad8cbc [MNG-6071] Enable IT for Maven 3.8.2 2021-06-26 21:18:15 +02:00
Michael Osipov 8c74ea50ed [MNG-5868] Enable IT for Maven 3.8.2 2021-06-26 21:09:03 +02:00
rfscholte 45ef48c405 Simplify and fix script on Windows 2021-05-16 23:55:21 +02:00
Maarten Mulders d139dd68f7 Use the loopback address for connecting to an in-process web server
This may resolve the connection issues we sometimes see in GitHub
Actions where the Maven process that is being tested cannot connect
to the Jetty server that was just started.

This closes #107
2021-04-24 22:19:52 +02:00
Michael Osipov aea9276d50 Disable IT for MNG-6772 2021-04-22 18:48:15 +02:00
Maarten Mulders 7f42b2cc6c [MNG-7045] Upgrade to IT to use Groovy 4.0.0-alpha-3 2021-04-17 20:29:46 +02:00
Maarten Mulders 6db9cfb1db [MNG-7045] Make sure Ant 1.10.8 is available 2021-04-04 16:16:00 +02:00
Martin Kanters 4209fbf7b6 [MNG-7112] Test that --non-recursive can be used together with --projects to just build the aggregator project.
Closes #104
2021-04-02 16:13:03 +02:00
Maarten Mulders 9baeaba95b [MNG-7045] Make sure Groovy 4.0.0-alpha-2 is available 2021-04-02 11:48:55 +02:00
Maarten Mulders 1083586aac [MNG-7045] Upgrade to IT to use Groovy 4.0.0-alpha-2
Closes #105.
2021-04-02 09:16:25 +02:00
Hervé Boutemy a3d6fac56a [MNG-7128] test blocked HTTP repository in pom.xml 2021-03-27 03:18:05 +01:00
Martin Kanters 0e982c2c9a [MNG-6511] Testing whether projects can be marked optional during (de)selection using --projects.
Closes #100.
2021-03-22 14:41:19 +01:00
Michael Osipov 3d59306302 [MNG-6075] Increase the model validation level to the next minor level version
* Modify ITs to pass with Maven 4
* Disable MavenITmng3719PomExecutionOrderingTest for Maven 4 because it
  deliberately relies on duplicate plugin declarations

This closes #103
2021-03-14 15:10:55 +01:00
Michael Osipov c4bcd09ecf Fix syntax error 2021-03-14 12:31:24 +01:00
Michael Osipov 4eb9f2026c Revert "[MNG-7046] Revert MNG-5639 and make repo config static only"
This reverts commit bba1d5cb04.
2021-03-13 17:26:07 +01:00
rfscholte ef313b620c Merge branch 'MNG-7110' 2021-03-12 18:22:26 +01:00
rfscholte 16fa596774 [MNG-7110] Different behavior of extensions 2021-03-12 17:21:19 +01:00
Martin Kanters e3a74e940b [MNG-7051] When an optional profile could not be found, an info message should be thrown instead of a warning. 2021-03-08 16:24:05 +01:00
rfscholte a469fd5823 Make tests verifiable with at least Maven 3.6.3 2021-02-28 23:26:58 +01:00
Michael Osipov 218ce6c7e7 [MNG-6114] Elements from the global settings should be ordered before elements from the user settings
Central from global settings with 'file:' comes first and is ignored by the
mirrorOf definition. The next central definition is ignored too due to
MNG-7018/MNG-5984. As long as these issues aren't resolved we need to mirror
even local repos to make the IT work as intended.

This closes #92
2021-02-28 19:39:39 +01:00
Guillaume Nodet d4f7ebaa1e [MNG-7095] Support for parallel builds when resuming
Resolves #98
2021-02-13 11:35:30 +01:00
Michael Osipov 6ff4e40e4a [MNG-7029] Remove super POM release profile
This closes #86
2021-02-02 17:45:13 +01:00
Maarten Mulders 574f0f1351 [MNG-7051] Optionally skip non-existing profiles and break on missing required profiles. 2021-02-02 08:19:59 +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
Michael Osipov a5ea1640e0 Clean to avoid stale files 2021-01-23 21:44:53 +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
Sylwester Lachiewicz 36d9f925c4 [MNG-6972] Fix IT - explicitly set compiler target versions to 8 2021-01-08 03:46:12 +01:00
Michael Osipov 5cae9178ad Test for consistent logging
This closes #97
2021-01-05 16:00:48 +01:00
Michael Osipov 350eef8388 Correct last remaining incorrect checksums
Notes: Some checksums are intentionally incorrect for testing purposes.
Broken checksums can be found by:
$ algo=...; for checksum_file in $(find . -name \*.$algo); do \
  expected_checksum=$(cat $checksum_file); \
  file="$(dirname $checksum_file)/$(basename $checksum_file .$algo)"; \
  actual_checksum=$($algo -q $file); \
  if [[ "$actual_checksum" != "$expected_checksum" ]] ; \
  then echo "$file: $expected_checksum != $actual_checksum"; fi; \
  done | sort
2021-01-02 01:49:34 +01:00
Michael Osipov c968c96eb8 Trim line endings as done by Maven Resolver 2021-01-01 23:00:54 +01:00
Michael Osipov ad8a5d0813 [MNG-6972] Allow access to org.apache.maven.graph
Use a fresh, preconfigured verifier which has global settings set.

This issue can be observed when Maven is ran with MNG-4645 where
no preconfigured Maven Central is in global settings.

This closes #94
2021-01-01 21:31:19 +01:00
Michael Osipov 15eacdf57c [MNG-5760] Add `-r/--resume` to automatically resume from the last failure point
Use a fresh, preconfigured verifier and do not clear CLI options because
on clear all preconfigurations, especially global settings are gone.

This issue can be observed when Maven is ran with MNG-4645 where
preconfigured Maven Central is lost in global settings.

This closes #93
2021-01-01 21:10:55 +01:00
Maarten Mulders 3d5d544112 [MNG-4660] Increase usefulness of logging
Closes #91
2020-12-28 11:25:52 +01:00
Michael Osipov bba1d5cb04 [MNG-7046] Revert MNG-5639 and make repo config static only
This closes #85
2020-12-24 15:27:58 +01:00
Michael Osipov 9d46bc98d5 [MNG-7022] Remove o.a.m.lifecycle.mapping.Lifecycle optional mojos backward compat code
Disable test which still declares optional mojos. The test runs fine
when optional mojos are removed from components.xml.

This closes #79
2020-12-24 12:07:25 +01:00
Michael Osipov 6b0efd992c Trim trailing whitespace 2020-12-24 00:31:14 +01:00
Maarten Mulders 103f9c0b41 [MNG-4660] Increase usefulness of logging 2020-12-23 16:48:14 +01:00
rfscholte 976a706ddd [MNG-6957] versionless reactor dependencies/parent should work even if modules are aggregated in reverse order 2020-12-22 17:32:02 +01:00
Falko Modler 71064cdf5b Fix MNG-3259 IT on JDK 16
This closes #89
2020-12-22 11:25:09 +01:00
Christoph Hümbert 3ec0d6ead6 [MNG-7045] Drop CDI API from Maven
This closes #88
2020-12-22 10:24:06 +01:00
Michael Osipov 4c130bb2ef Use consistently groupId prefix 'org.apache.maven.its.' in ITs 2020-12-22 10:15:02 +01:00
rfscholte 0895ed0c45 [MNG-6957] versionless reactor dependencies/parent should work even if modules are aggregated in reverse order 2020-12-21 22:20:45 +01:00
Martin Kanters bc3cdccb68 [MNG-6566] Plugins that require a certain phase should not fork goals that are already in the execution plan.
This resolves #74
2020-12-15 09:34:03 +01:00
Michael Osipov 0b3c0cab86 Fix incorrect line ending issue 2020-12-06 01:45:25 +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 0176e3cc77 [MNG-7041] Update @since, version ranges and other version related strings
This closes #83
2020-11-29 11:25:10 +01:00
rfscholte 043899d3c5 [MNG-3485] Fix IT by locking maven-surefire-plugin to original version 2020-11-25 23:12:15 +01:00
Michael Osipov b84481f249 Add checksums to avoid warnings in ITs 2020-11-16 20:15:15 +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
Michael Osipov 43f7c3dc4e Use new style altDeploymentRepository option format 2020-11-13 18:41:12 +01:00
Michael Osipov 02bd24851a Don't require SNAPSHOT versions 2020-11-13 18:40:41 +01:00
Michael Osipov bdf4914e8f Add checksums for MNG-5771 2020-11-13 18:39:50 +01:00
Michael Osipov 1e1db6958f [MNG-3203] Supply release parameter when run on Java 9+ 2020-11-12 14:37:15 +01:00
Michael Osipov db7be8d178 [MNG-6754] Set the same timestamp in multi module builds (2/2)
Verify snapshot versions also with all deployed artifact files.
2020-11-12 12:01:50 +01:00
Maarten Mulders ae6f0133b7 [MNG-6754] Set the same timestamp in multi module builds (1/2)
Install and deploy a multi module project, compare local and remote
last updated timestamps with each other and Maven build timestamp.

This closes #77
2020-11-12 10:51:50 +01:00
Michael Osipov 622eece3a6 [MNG-6551] Packaging 'jar' binding plugin upgrades
Add missing dependencies and set plugin versions.
2020-11-11 22:33:46 +01:00
Michael Osipov 2f29204de8 [MNG-6890] MavenITmng5669ReadPomsOnce is unreliable
Add explicit plugin versions to solve instability.

This closes #75
2020-11-09 22:38:21 +01:00
Martin Kanters ea8263c317 [MNG-6981] Verify that the --projects switch will include the children of the targeted projects.
This closes #71
2020-10-19 20:05:59 +02:00
Maarten Mulders 0706005a29 [MNG-6118] Test various scenarios of invoking Maven in a sub-module.
This closes #68
2020-10-18 20:29:43 +02:00
Michael Osipov be4bfc559d [MNG-6965] Extensions suddenly have org.codehaus.plexus:plexus-utils:jar:1.1 on their classpath
Scope a few ITs for (,3.7.0).

This closes #73
2020-10-04 21:19:23 +02:00
Michael Osipov b0f5e8665b Add JUnit 4.12 to bootstrap group 9 2020-09-11 10:57:49 +02:00
Maarten Mulders 8a989d5e4b [MNG-6985] Use correct maven.multiModuleProjectDirectory in Embedded mode 2020-09-11 07:48:41 +02:00
Sylwester Lachiewicz ea0c164e9c [MNG-6772] check old versions - comment from review 2020-09-01 08:22:23 +02:00
Eddie Wiegers 1e26257f44 [MNG-6772] Prove Super POM central entry won't override
Closes #49
2020-08-31 23:45:07 +02:00
Hervé Boutemy f5eb5bda4c update ASF CI url 2020-08-29 14:15:02 +02:00
Michael Osipov b3c4bb34f1 Sort ITs in reverse numerical order 2020-08-05 20:57:33 +02:00