Commit Graph

2593 Commits

Author SHA1 Message Date
Jonas Rutishauser aac2328994 [MNG-8005] test for ide WorkspaceReader (#332)
Adds an IT that verifies that "ide" WorkspaceReader is used by Maven.
Relates to fix 3f47580dcc
2024-01-18 12:52:03 +01:00
Guillaume Nodet a9a09083d9 Remove experimental bit from buildconsumer (#331) 2024-01-09 20:35:05 +01:00
Guillaume Nodet 536a9c96e1 Disable MNG-1088 test for MNG-7977 (#329) 2024-01-08 11:38:04 +01:00
crazyhzm 95d384dc69 Enables debug logs in MavenITmng6127
Signed-off-by: crazyhzm <crazyhzm@apache.org>
2024-01-02 08:39:08 +01:00
Tamas Cservenak ac8874e8f6 [MNG-7967] Verify javadoc:jar is invoked (#324)
It uses javadoc:jar goal from locked-down version of Javadoc plugin: Bug is that it refuses to run as 4-alpha-9 returns here language="none". If it would run, it would explode, as project contains java source with intentionally broken javadoc.

---

https://issues.apache.org/jira/browse/MNG-7967
2023-12-17 14:28:56 +01:00
Tamas Cservenak fff02a9ec3 Use Maven 3.9.6 (#328) 2023-12-17 14:05:47 +01:00
Tamas Cservenak 61cb0c796a Update Jetty to 9.4.53.v20231009 (#326)
As currently used one is plagued with CVEs etc.

As long as we are stuck on Java8, we cannot move forward
with Jetty, as Jetty 10.x (that is drop in replacement)
is Java 11.
2023-12-17 13:55:56 +01:00
Guillaume Nodet 46ed670dbe [MNG-7965] Verify non-parseable POM is detected (#327)
Co-authored-by: Tamas Cservenak <tamas@cservenak.net>
2023-12-15 07:33:02 +01:00
Tamas Cservenak 38f543d94a Fix ITs master build (#323)
I was unaware that for master Maven 3.9.x is used.
So the original commit 8880639cee
does not work with 3.9.x, this PR fixes it.
2023-12-06 15:56:55 +01:00
Tamas Cservenak 8880639cee Preparations for resolver alpha-3 (#322)
Changes:
* transport renames
* some internals rename
2023-12-06 15:07:51 +01:00
Guillaume Nodet b806d5972e Change bootstrap syntax to align with the usual one (#316) 2023-11-26 07:35:09 +01:00
Slawomir Jaranowski 15707702d8 [MNG-7939] Allow to exclude plugins from validation 2023-11-19 22:10:29 +01:00
Slawomir Jaranowski ab9aca341b Update parent to 41 2023-11-18 10:50:43 +01:00
Tamas Cservenak e26e1d678a [MNG-7909] IT changes (#318)
To recognize new error message coming from JDK transport.

Message is to be improved with https://issues.apache.org/jira/browse/MRESOLVER-429
2023-11-07 16:06:24 +01:00
Tamas Cservenak d77141df66 [MNG-7909] Apply Resolver 2.0.0 changes (#317)
Changes:
* IT MNG-4368 "smart install" undone
* IT MNG-5175 force Wagon as it uses Wagon config
* IT MNG-7470 adapt to new default and new transport
2023-11-07 13:27:35 +01:00
Guillaume Nodet ad25b2e77e Use 4.0.0-alpha-8 instead of SNAPSHOT (#315) 2023-11-06 14:05:46 +01:00
Guillaume Nodet 40acbf6de1 Add a note about ITs requiring maven snapshots (#314) 2023-10-19 14:42:17 +02:00
juulhobert 6a83ac6c29 [MNG-7772] Test for extensions.xml defined in an ext directory in the ${user.home}/.m2 folder (#311) 2023-10-18 20:06:47 +02:00
Guillaume Nodet 5c88324237 [MNG-7837] Add IT for project element in pom (#277) 2023-10-18 08:21:12 +02:00
Guillaume Nodet cd1ef1614c Add missing HoconReader#getIntegerValue (#313) 2023-10-16 15:25:17 +02:00
Guillaume Nodet 121980470a [MNG-7804] IT for plugin execution order (#268) 2023-10-16 13:29:31 +02:00
Guillaume Nodet cf71c396dd Require JDK 11 and support JDK 21 at build time (#310)
* Support JDK 21

* Update groovy to latest

* Drop jdk 8, add jdk 11 and 21
2023-10-16 13:24:46 +02:00
Slawomir Jaranowski 5797211100 [MNG-7898] Missing .mvn directory should not be reported in quiet mode 2023-10-10 12:10:59 +02:00
Slawomir Jaranowski 464536d05b Use Maven 3.9.5 on GitHub (#242) 2023-10-04 23:56:43 +02:00
Slawomir Jaranowski 08fceb5d84 Remove methods used for JUnit 3/4 2023-10-04 20:44:29 +02:00
Slawomir Jaranowski 27bc847389 [MNG-7895] Support ${project.basedir} in file profile activation - fix ITs 3.9.5 2023-09-27 22:00:25 +02:00
Guillaume Nodet d640bdec48 Fix expectations on IT MNG-7836 following the modifications on the consumer pom (#308) 2023-09-27 09:08:37 +02:00
Slawomir Jaranowski 7046a8c406 Add .java-version to .gitignore 2023-09-26 21:25:59 +02:00
Slawomir Jaranowski d60a1cce4a [MNG-7895] Support ${project.basedir} in file profile activation - fix ITs 2023-09-26 19:48:16 +02:00
Guillaume Nodet caf44be89e Fix IT for trimmed consumer POM (#293) 2023-09-26 08:51:33 +02:00
Slawomir Jaranowski ad1e9257dd Use 1.8 for source/target in ITs - allow to execute by newer JDK
1.7 was removed in JDK 20
2023-09-24 15:38:51 +02:00
Guillaume Nodet f0fca33818 Fix IT compilation problem with recent merges (#297) 2023-09-22 11:37:26 +02:00
Guillaume Nodet c6d8f2fea6 [MNG-7836] IT for alternative pom syntax (#276) 2023-09-22 09:24:52 +02:00
Guillaume Nodet 4c64e109f3 [MNG-7891] IT for configuring extensions (#296)
Co-authored-by: Christoph Läubrich <christoph@laeubi-soft.de>
2023-09-22 09:14:42 +02:00
Guillaume Nodet c3c7981e7f [MNG-7877] Fix ITs for build bom + consumer/pom simplification (#292) 2023-09-13 13:39:27 +02:00
Guillaume Nodet e85a09a328 [MNG-7876] Add model version analysis and downgrade (#291) 2023-09-11 18:17:18 +02:00
Guillaume Nodet 1ed2264c17 [MNG-7792] Fix shaded javaagent to relocate the asm package (#290) 2023-09-05 23:08:50 +02:00
Tim te Beek 433611003b [MNG-6847] Use diamond operator (#288)
* [MNG-6847] Use diamond operator

Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.staticanalysis.UseDiamondOperator?organizationId=QXBhY2hlIE1hdmVu

Co-authored-by: Moderne <team@moderne.io>

* Restore core-it-suite/src/test/resources/mng-5581-lifecycle-mapping-delegate/extension/src/main/java/org/apache/maven/its/mng5581/lifecyclemappingdelegate/TestLifecycleMappingDelegate.java

---------

Co-authored-by: Moderne <team@moderne.io>
2023-08-29 11:50:44 +00:00
Guillaume Nodet 6326854fcb [MNG-7862] The ModelLocator should always be used when locating pom.xml (fixes #289) 2023-08-23 21:24:44 +02:00
Guillaume Nodet 65f2d39a40 [MNG-6401] IT for proxy port interpolation (#275) 2023-08-23 10:54:36 +02:00
Guillaume Nodet a9bf8ed377 [MNG-7830] Switch from plexus-xml to stax / woodstox (#274) 2023-06-29 12:03:31 +02:00
Tamas Cservenak e85fb9029a [MNG-7228] Add IT that ensure nothing "leaks" into installed model (#273) 2023-06-24 10:51:01 +02:00
Tamas Cservenak c029658a92 Remove MNG-7819 Maven Metadata XML leading newline 2023-06-23 10:36:31 +02:00
Tamas Cservenak 24f25a0a71 [MNG-7819] Add IT that excercise the bug (#271)
Template/reproducer: https://gist.github.com/cstamas/3f15775bd4785a5f4b157399f52af6fc

While local repo is empty.

---

https://issues.apache.org/jira/browse/MNG-7819
2023-06-21 14:36:58 +02:00
Guillaume Nodet 0226d93b9e [MNG-5659] Add an IT for project settings (#265) 2023-06-20 13:20:11 +02:00
Guillaume Nodet 5787317971 [MNG-4645] Fix IT to not use the newly supported syntax (#266) 2023-06-19 17:03:57 +02:00
Guillaume Nodet 16a7489f46 [MNG-5600] Dependency management import should support exclusions. (#269)
Co-authored-by: Christian Schulte <schulte@apache.org>
2023-06-15 20:49:41 +02:00
Guillaume Nodet 50f23340ea [MNG-7587] Only test with 4.0 because the fix has been reverted in 3.9.x 2023-06-09 20:46:46 +02:00
Martin Kanters fca1dd661a [MNG-7338] Disable CI mode for certain tests which verify on log statements. (#209) 2023-06-08 15:44:00 +02:00
Guillaume Nodet b8f4ef8332 Adjust test failing on CI
# Conflicts:
#	core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5760ResumeFeatureTest.java
2023-06-06 10:34:47 +02:00
Guillaume Nodet 81abb5870c [MNG-7740] Remove old temporary consumer*pom files from buildDir (#263)
Co-authored-by: Giovanni van der Schelde <Giovanni.vanderSchelde@infosupport.com>
Co-authored-by: Giovanni van der Schelde <gvdschelde@gmail.com>
2023-06-05 16:24:36 +02:00
Guillaume Nodet 74c1775d05 Reformat ITs 2023-06-05 08:54:28 +02:00
Guillaume Nodet 386efc3d6c Reformat 2023-06-05 08:54:28 +02:00
Guillaume Nodet aedbb150f5 Upgrade to parent 39 2023-06-05 08:54:28 +02:00
Guillaume Nodet 425b92dabe [MNG-7587] Add an IT for jsr330 components (#264) 2023-06-02 11:33:10 +02:00
Tamas Cservenak 5e0613e996 [MNG-7788] Fix for IT MavenITmng6562WarnDefaultBindings (#261)
The MavenITmng6562WarnDefaultBindings IT tests new Maven4 feature "fail on severity" (for WARN level).

The stub core plugin maven-resources-plugin depends on maven-compat, and it emits plugin validation warning.

BEFORE MNG-7788 was merged, the warnings were logged AFTER build summary and was not picked up by "fail on severity".

AFTER MNG-7788 merged, it causes that warnings breaks the build, as "fail on severity" is set to WARN level.

Fix:
The stub maven-resources-plugin does NOT need to depend on maven-compat, what it really needs is maven-core (for MavenProject).
2023-05-19 20:33:57 +02:00
Guillaume Nodet 7366fe6bd7 [MNG-7038] Introduce public properties to point to the root and top directories of (multi-module) project 2023-04-20 12:57:57 +02:00
Guillaume Nodet 4a2a51c6db [MNG-7763] Provide UTF-8 as a default value for project.build.sourceEncoding and project.reporting.outputEncoding 2023-04-18 21:51:40 +02:00
Tamas Cservenak 31e2f5fcc9 [MNG-7767] Put related ITs into verbose mode (#258)
As they assert actual log for validation messages about
what was reported.

---

https://issues.apache.org/jira/browse/MNG-7767
2023-04-17 15:13:39 +02:00
Slawomir Jaranowski 39db9e6c51 [MNG-7697] IT - pom with emoji 2023-04-13 21:51:57 +02:00
Tamas Cservenak de74b863ee [MNG-7754] Improve plugin validation (#256)
Fixed ITs to not fail:
- assert only for content, neglect and possible indentation
- do not assert what is NOT warn logged, as later we may log more (IT would be not future proof)

Tested with 3.9.1 and 3.9.2-SNAPSHOT w/ https://github.com/apache/maven/pull/1079 Both passes OK

MNG-7754 changes how plugin validation errors are reported (at end and as a dense report), so ITs needs a bit of lax re formatting and indentation and such.

---

https://issues.apache.org/jira/browse/MNG-7754
2023-04-05 14:20:37 +02:00
Petr Široký 19e668e096 [MNG-7661] Fix few build / compiler warnings 2023-03-13 23:11:19 +01:00
Slawomir Jaranowski 21e39ea511 Detecting tests which was not added to TestSuiteOrdering
Even test is skipped by `@Disabled` annotation
newer surefire schedule it for execution.

When tests are missing in TestSuiteOrdering
are executed as one of first tests in unpredictable order.
2023-03-13 22:37:35 +01:00
Tamas Cservenak da33f06c06 [MNG-7737] IT for profiles (#252)
* [MNG-7737] IT for profiles

Just a simple IT that would catch issues like Maven 3.9.0
went out with, where files were wrongly interpolated: MNG-7726

---

https://issues.apache.org/jira/browse/MNG-7737
2023-03-13 15:57:08 +01:00
Michael Osipov a988e5c95e Add missing bootstrap dependencies 2023-03-08 14:29:52 +01:00
Christoph Läubrich dca86bfa80 [MNG-7716] ConcurrencyDependencyGraph deadlock if no root can be selected
Co-authored-by: Michael Osipov <michaelo@apache.org>

This closes #250
2023-03-03 17:22:39 +01:00
Tamas Cservenak e80821cc11 [MNG-5181] Improve "missing dependency" message (#249)
Related IT change, as the change for this issue made MNG-7128 IT
to fail, as it was too eagerly match whole error message string
that has now due MNG-5181 changed.

To fix it, match only the key parts of the expected error message,
that project failed, due transfer failure, as insecure mirror
was blocked. This makes IT assert same thing, but is more
flexible regarding error text change in MNG-5181.

---

https://issues.apache.org/jira/browse/MNG-5185
2023-03-02 14:28:56 +01:00
Slawomir Jaranowski 497bede577 Replace deprecated systemProperties by systemPropertyVariables 2023-02-24 21:50:32 +01:00
Tamas Cservenak 57c1066862 [MNG-7706] Fix for ITs WARNING detection (#245)
The MNG-7706 deprecates ancient ArtifactRepository type use to get access to local repository, and issues warning as for any other deprecated Mojo parameters.

But alas, in ITs the MNG-5576 completely unrelated IT there is an assertion to have WARNING-free log. This IT uses the IT-plugins/IT-plugin-expression EvalMojo, that in turn uses the deprecated `${localRepository}` parameter (but does not use it). Result is, Maven 3.9.1 emits a WARNING about use of deprecated parameter and the IT fails.

Further inspection shows, that while EvalMojo injects ArtifactRepository for local repository, there is only one IT that actually uses it, the MNG-4305, but even that one is interested in basedir of the local repository only. So to say, the use of deprecated ArtifactRepository type is not needed at all.

Fix:
* change EvalMojo to not expose in context the localRepository (w/ type ArtifactRepository), but a new expression `localRepositoryBasedir` only, that is injected in non-deprecated way (in real life repoSysSession would be injected, but in IT we keep all super-safe and use Object types).
* adjusted MNG-4305 to use new epxression instead to use object reflection in template to get basedir from ArtifactRepository
* This makes the originally failing MNG-5576 pass, as warning due EvalMojo is gone.

See
https://issues.apache.org/jira/browse/MNG-7706
https://github.com/apache/maven/pull/1009
2023-02-23 13:52:03 +01:00
Michael Osipov 9b63abec33 Upgrade to Maven Surefire 3.0.0-M9 2023-02-20 23:03:14 +01:00
Tamas Cservenak a5744e8e34 [MNG-7679] [REGRESSION] Build fails when executing a single mojo without a POM
This closes #244
2023-02-20 21:19:01 +01:00
Tamas Cservenak 37474485fe No logic change, just improve logging (#241)
This IT helped a lot to figure out problems around parallel deploy,
and I had locally applied these changes to improve ability to
track down what is actually happening on server side.
2023-02-15 22:32:51 +01:00
Guillaume Nodet d45dba3073 [MNG-7646] Fix IT broken by the change to not always read the whole reactor (#239) 2023-01-26 11:42:13 +01:00
Guillaume Nodet 49c12573d6 [MNG-7629] Change reactor reader to copy packaged artifacts and reuse them across builds if needed (#234) 2023-01-19 11:54:42 +01:00
Tamas Cservenak 348170eef1 [MNG-7608] Adjust IT for default transport (#237)
If 3.9 uses native as default as well, there is no need anymore
to distinguish between 3.9 and 4+.

---

https://issues.apache.org/jira/browse/MNG-7608
2023-01-17 09:51:09 +01:00
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
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