Commit Graph

15150 Commits

Author SHA1 Message Date
Guillaume Nodet 8052c720e7 [maven-release-plugin] prepare for next development iteration 2023-03-15 17:06:58 +01:00
Guillaume Nodet 26d10a4bf9 [maven-release-plugin] prepare release maven-4.0.0-alpha-5 2023-03-15 17:06:43 +01:00
Guillaume Nodet ade97d5a69
[MNG-7697] Fix assembly which should not include plexus-utils-3.5.0 (#1057) 2023-03-15 13:12:48 +01:00
Michael Osipov 814af33e67 Update DOAP with Maven 3.8.8 release 2023-03-14 16:50:46 +01:00
Slawomir Jaranowski e9e0a51738 [MNG-7725] Update surefire to 3.0.0 in default binding 2023-03-14 16:42:10 +01: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
Guillaume Nodet 9d851eea68
[MNG-7678] Settings (v3) and Settings.Builder() cannot unset a non-null field (#983) 2023-03-13 19:35: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
Elliotte Rusty Harold 696cf37dc7
update a few URLs (#1052) 2023-03-13 00:17:09 +00:00
Elliotte Rusty Harold 993d863743
remove unused class (#1049) 2023-03-13 00:15:52 +00:00
Tamas Cservenak 31cc44f1cf
[MNG-7723] Upgrade to Maven Resolver 1.9.7 (#1046)
Upgrade to Maven Resolver 1.9.7

---

https://issues.apache.org/jira/browse/MNG-7723
2023-03-11 20:24:25 +01:00
Elliotte Rusty Harold 2d85d13ee8
MNG-7724 don't warn about unsupported SLF4J configs; no one cares (#1051) 2023-03-11 19:13:02 +00:00
Guillaume Nodet 57d5587cf8
[MNG-7727] Remove MavenProfilesBuilder and DefaultMavenProfilesBuilder (#1044) 2023-03-11 16:24:56 +01:00
Guillaume Nodet 116ca6a3ad
[MNG-7709] Regression in configuration merge (#1023) 2023-03-09 21:15:24 +01:00
Guillaume Nodet dc8ec4c973
Fix mutable api in PluginContainer (#1019) 2023-03-09 21:14:48 +01:00
Guillaume Nodet 93a0ecfd2d
Additional XmlNode tests from plexus-utils (#994) 2023-03-09 21:14:20 +01:00
Guillaume Nodet bb02d120a1
Fix callee closing streams and readers instead of callers (#1043)
For compatibility reason, the Xpp3DomBuilder will close those
2023-03-09 16:28:10 +01:00
Guillaume Nodet 10128b4484
Remove references to Xpp3DomBuilder and use XmlNodeBuilder instead (#1045) 2023-03-09 16:26:58 +01:00
Guillaume Nodet 1922e01831
[MNG-7710] Upgrade plexus-utils to 3.5.1 (#1042) 2023-03-09 06:24:50 +01:00
Hervé Boutemy 909c2cdf57 [MNG-7553] put documentation in reference site 2023-03-08 18:54:43 +01:00
Hervé Boutemy ea21d6f6fc [MNG-7666] update documentation 2023-03-08 18:45:23 +01:00
Michael Osipov a988e5c95e Add missing bootstrap dependencies 2023-03-08 14:29:52 +01:00
Tamas Cservenak 1ffd68b802
[MNG-7720] Wrong build order of forked projects (#1040)
The original fix MNG-7672 matched the "scope" but missed the "order". `project.collectedProjects` are in order as loaded (POM order), is not topologically sorted.

Fix is to use DAG of projects, ask for downstream projects (will return more then we need but sorted) and narrow that list to only contain collected projects.

---

https://issues.apache.org/jira/browse/MNG-7720
2023-03-08 09:04:35 +01:00
Elliotte Rusty Harold bec19ec41d
replace deprecated methods that don't properly handle encoding (#1033) 2023-03-08 00:11:30 +00:00
Andrey Bruykhov f7d3e30d10 Using Set<>() for contains()
This closes #998
2023-03-07 17:54:07 +01:00
Elliotte Rusty Harold 009ec5dc41
remove plexus utils dependency (#1032) 2023-03-07 10:44:46 -05:00
Tamas Cservenak c1dfb947b5
[MNG-7715] Update to resolver 1.9.6 (#1036)
Adjust some UTs as error message did change.

---

https://issues.apache.org/jira/browse/MNG-7715
2023-03-06 11:17:56 +01:00
Elliotte Rusty Harold 0dd9ebc126
restore src/mdo/reader.vm (#1034) 2023-03-05 12:43:42 +00:00
Elliotte Rusty Harold dcc916a9e3 Merge branch 'master' of github.com:apache/maven 2023-03-04 18:44:39 -05:00
Elliotte Rusty Harold d86cee4f90 revert accidental commit 2023-03-04 18:44:29 -05:00
Elliotte Rusty Harold 9e797f5e1b let hte XML parser detect th encoding 2023-03-04 18:42:08 -05:00
Christoph Läubrich f41d533e71 [MNG-7716] ConcurrencyDependencyGraph deadlock if no root is selected
If ConcurrencyDependencyGraph#getRootSchedulableBuilds returns an empty
list then MultiThreadedBuilder is locked forever as it never gets a
build result (because nothing is scheduled).

This changes the method, that in such case just the first project is
returned, this might not give the best performance, but ensures that
there is at least one build scheduled and the build-loop can proceed.

This closes #1029
2023-03-03 18:04:36 +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 65d95f08a6
[MNG-7717] Maven warns wrongly about deprecated parameter (#1031)
The implementation for MNG-7706 is wrong: it changes parameter NAME,
where it should check type and defaultValue instead.

---

https://issues.apache.org/jira/browse/MNG-7717
2023-03-03 08:52:40 +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
Alexey Venderov 7967c204e4
[MNG-7683] Iterate over each dominant child (#986)
* Iterate over each dominant child
* Use more generic test data
2023-03-02 06:30:24 +01:00
Elliotte Rusty Harold b9b6d85957
[MNG-7700] test some edge cases with leading zeroes (#1014)
* add tests for MNG-7700
2023-03-02 00:37:27 +00:00
Tamas Cservenak da64ee9c91
[MNG-7713] Make Maven fail if option present (#1021) (#1022)
As with previous PR (simple removal) the `-llr` got
interpreted as `-l lr`, it logged all output to `lr`
file. This would maean that use of `-llr` would still
sneakily 'work' and probably cause surprise down the
road to users.

Returned the option, and expicitly checking for it's
presence to be able to fail with meaningful message.

---

https://issues.apache.org/jira/browse/MNG-7713
2023-03-01 13:51:51 +01:00
Tamas Cservenak afc1a2bd86
[MNG-7713] Drop legacy-local-repository option (#1020)
There is really no need for it, and there is a resolver option if really must (but really should not, local repo is and should be considered as transient).

---

https://issues.apache.org/jira/browse/MNG-7713
2023-03-01 11:17:55 +01:00
Elliotte Rusty Harold 4e098a3205
Simplify code with try with resources (#1017) 2023-02-27 07:38:19 -05:00
Elliotte Rusty Harold 85ac42dbd9
remove unused code (#1016) 2023-02-26 18:27:58 +00:00
Slawomir Jaranowski 497bede577 Replace deprecated systemProperties by systemPropertyVariables 2023-02-24 21:50:32 +01:00
Tamas Cservenak 22d2b47c04
[MNG-7706] Deprecate 'localRepository' parameter expression (#1009) (#1012)
This PR deprecates the 'localRepository' mojo parameter expression, and Core will emit warning if used by any Mojo.

---

https://issues.apache.org/jira/browse/MNG-7706
2023-02-23 18:14:45 +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
Tamas Cservenak b1bffd68b8
[MNG-7695] Update resolver to 1.9.5 (#1011)
Update resolver to 1.9.5 w/ many fixes.

---

https://issues.apache.org/jira/browse/MNG-7695
2023-02-23 09:43:33 +01:00
Tamas Cservenak a35307771c
[MNG-7702] Use latest deploy plugin (#1007)
And have it aligned with install plugin. These two now provides all the fixes and new functionalities like working deployAtEnd etc.

---

https://issues.apache.org/jira/browse/MNG-7702
2023-02-22 13:21:34 +01:00
Michael Osipov 9b63abec33 Upgrade to Maven Surefire 3.0.0-M9 2023-02-20 23:03:14 +01:00
Guillaume Nodet 1d9dd4a364 [MNG-7679] [REGRESSION] Build fails when executing a single mojo without a POM
This closes #993
2023-02-20 21:21:34 +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