Commit Graph

2502 Commits

Author SHA1 Message Date
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