10745 Commits

Author SHA1 Message Date
Guillaume Nodet
89237dd74d Revert "[MNG-7347] SessionScoped beans should be singletons for a given session (#653)" (#715)
This reverts commit b4518b5fe416a552a59e5201b4569a9bc0af3153.
2022-05-09 10:04:54 +02:00
Slawomir Jaranowski
74eba2968b [MNG-7464] Warn about using read-only parameters for Mojo in configuration
(cherry picked from commit 3dd0afd89772929fa89db974d5bc432846f170de)
2022-05-06 23:05:12 +02:00
Tamas Cservenak
229cfc8bf6 [MNG-7466] Align assembly XSD version with plugin used (#728)
The component.xml was missed from original change.
2022-04-27 15:18:50 +02:00
Tamas Cservenak
7b86ce8534 [MNG-7466] Align assembly XSD version with plugin used (#728)
As title says, XSD is ancient old 2.0.0, while all
latest assembly plugins uses 2.1.0.

Not that this matters or changes anything at all,
this is more about correctness.
2022-04-27 15:17:03 +02:00
Slawomir Jaranowski
dd0ddef8f6 [MNG-7457] Warn about deprecated plugin Mojo
(cherry picked from commit 702f52d0ea7c5e90b495bc05f079ca3e952766a8)
2022-04-24 13:49:26 +02:00
Slawomir Jaranowski
28c763c72c [MNG-5222] Improvement in deprecated params detection
This is backport of commit 9ac2d08dc7dec66acc2c835710065b677190e700 from master to maven-3.9.x branch.
2022-04-23 12:29:41 +02:00
Tamas Cservenak
4c9dc5abb2
[MNG-7055] Fix G level metadata handling in 3.9.x (#691)
Maven Artifact Transfer silently prevents group level metadata to reach Resolver and causes metadata loss on install/deploy.
Fix is to "bridge" this from maven-resolver-provider (and core) by reusing the actual metadata that
m-plugin-p:addPluginArtifactMetadata mojo adds, but m-a-t filters out.

This is backport of commit d141957ff5a3c08ae53c68e4ba19b49055f717c4 from master to maven-3.9.x branch.
2022-04-22 17:51:07 +02:00
Tamas Cservenak
aa0607301f
[MNG-7453] Update Resolver to 1.8.0 (#724)
Updates Maven Resolver to 1.8.0.
2022-04-22 16:50:57 +02:00
Tamas Cservenak
85caf98029 [MNG-7454] Include resolver-transport-http in Maven (#720)
Addendum to 1ad5a1b1e9bb0a17fc12bbe0314564a616078602:
* fix property name to align with existing ones
* fix logging configuration as no more shaded httpClient
* fix constant names
2022-04-16 18:21:48 +02:00
Hervé Boutemy
3c6009cbf4 [MNG-7438] add execution id to "configuring mojo" debug message
[DEBUG] Configuring mojo execution
'org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test:default-test'
with basic configurator

rephrase "Configuring" to "Loading" mojo "from plugin realm"
to differentiate from "configuring mojo" = apply configuration

rename populatePluginFields(..) private method
to populateMojoExecutionFields(..) to better match the intent
2022-04-15 18:40:52 +02:00
Tamas Cservenak
1ad5a1b1e9
[MNG-7454] Include resolver-transport-http in Maven 3.9.x (#710)
But keep Wagon as default transport. This PR merely includes
resolver http and file transport and switches wagon-http
to non-shaded one.

Changes:
* switch to non-shaded wagon-http (as httpClient is now shared)
* include resolver http and file transport
* override resolver default behaviour (native transport preferred over wagon, when both on classpath)
* provide simplistic means to choose transport

The chosen transport can be seen in debug (-X) output on line
`[DEBUG] Using transporter XXX...`

The `-Dmaven.transport` simplistic switch can be used to choose transport:
* not set: default, that is Wagon
* `wagon`: explicitly sets Wagon
* `resolver`: explicitly sets resolver native transports (file and http)
* `auto`: relies on resolver "auto discovery" (priorities, etc). This is MUST to keep transport pluggable with 3rd party transports. In fact, this was the default so far in Maven, along with the fact that native resolver transports were not included (as resolver prefers native ones over Wagon).
2022-04-13 12:51:19 +02:00
Gabriel Belingueres
ff0300b7cf
[MNG-5222] Maven 3 no longer logs warnings about deprecated plugin parameters
- Added warning when setting deprecated parameter with value different
than the default.
- Changed Logger to SLF4J.

(cherry picked from commit c99028b9fb67158edc9f202ff8a178c9465430ba)
2022-04-12 22:49:03 +02:00
Tamas Cservenak
08dff22a41
[MNG-7447] Fix ReactorReader unintended change (#709)
The commit c604db3c3a103e2212f4628d8e2a997017fe579e
changed ReactorReader to use MavenSession#getAllProjects()
instead of deprecated MavenSession#getProjectMap() that
is equivalent of MavenSession#getProjects().

This undoes this unintended change.
2022-04-08 18:24:03 +02:00
Tamas Cservenak
263cf9542b [MNG-7432] Resolver session contains non-MavenWorkspaceReader (#695)
As Resolver session contains non-MavenWorkspaceReader, the reactor models (already resolved w/ profiles applied) are re-built when using Resolver within Mojo, instead to get them via ReactorReader as expected. The rebuilt models will lack explicit (-P on CLI) profiles applied, as resolver itself is not maven aware, hence there is no way to "tell" resolver to apply them. Building reactor models w/ profiles applied is NOT done using resolver, but by Maven when loading up reactor, as profiles are NOT applied for downstream transitive dependencies (see discussion on MNG-1388 why).

Signed-off-by: Christoph Läubrich <christoph@laeubi-soft.de>
Co-authored-by: Christoph Läubrich <christoph@laeubi-soft.de>
Co-authored-by: Tamas Cservenak <tamas@cservenak.net>
2022-04-08 10:32:15 +02:00
Tamas Cservenak
083423fd50 [MNG-7441] Update version of loback
This issue is fluke, as logback is actually optional
dependency, but still, to cut reports like these from
root, let's do this update.
2022-04-08 10:02:40 +02:00
Karl Heinz Marbaise
a116f25002
[MNG-7452] - Remove JDK7 run on Maven 3.9.X Branch 2022-04-05 21:57:14 +02:00
Karl Heinz Marbaise
c604db3c3a
[MNG-7447] - Several Improvements by using Stream API 2022-04-05 21:24:58 +02:00
Jacky
f7b073f3eb
[MNG-7445] - Refactoring, remove the useless line
Contribution by JakcyHu Gakiii

Signed-off-by: Karl Heinz Marbaise <khmarbaise@apache.org>
2022-04-01 22:21:36 +02:00
Hervé Boutemy
88d29675ae [MNG-7413] fix anchor for XML elements with same name but not content 2022-03-27 14:25:47 +02:00
Guillaume Nodet
3a5a40c6d2
[MNG-7391] Fix MojosExecutionStrategy lookup to be able to look into the SessionScope (#692) 2022-03-15 06:55:50 +01:00
Michael Osipov
5220420212 Update DOAP with Maven 3.8.5 release 2022-03-13 13:04:58 +01:00
Guillaume Nodet
14ca723438 [MNG-7350] Introduce a factory for ModelCache 2022-03-09 13:33:45 +01:00
Guillaume Nodet
1954d51ff2 [MNG-7391] add execution strategy+runner required by Maven Build Cache 2022-03-09 10:33:40 +01:00
mickroll
a55300a588 [MNG-6972] Allow access to org.apache.maven.graph
This is, for example, needed for rebuilding the dependency graph during build
extension execution after changing dependencies.

This closes #368
2022-03-06 21:12:47 +01:00
Michael Osipov
6b7beb4db8 [MNG-7019] Notify also at start when profile is missing 2022-03-06 21:12:47 +01:00
Karl Heinz Marbaise
7d6f281fe3 [MNG-6826] Remove condition check for JDK8+ in FileSizeFormatTest 2022-03-06 21:12:40 +01:00
boris-unckel
e1b46e2339 [MNG-7068] Active dependency management for Google Guice/Guava
This closes #462
2022-03-06 20:46:56 +01:00
Michael Osipov
e820dbb24e [MNG-6878] Upgrade Guice to 4.2.3 2022-03-06 12:16:03 +01:00
Michael Osipov
6ddb75138d Remove unnecessary plugin dependency 2022-03-06 11:57:53 +01:00
Michael Osipov
453c173713 [MNG-7247] Upgrade Maven Resolver to 1.7.2 2022-03-06 10:52:28 +01:00
Michael Osipov
52b718614a [MNG-6399] Lift JDK minimum to JDK 8 2022-03-06 10:47:38 +01:00
Michael Osipov
78ca83e2a4 Bump version to 3.9.0-SNAPSHOT 2022-03-06 10:46:56 +01:00
Michael Osipov
0a6f12fba1 [maven-release-plugin] prepare for next development iteration 2022-03-05 12:41:16 +01:00
Michael Osipov
3599d3414f [maven-release-plugin] prepare release maven-3.8.5 maven-3.8.5 2022-03-05 12:41:04 +01:00
Michael Osipov
cfeea9dac4 Remove unused imports 2022-03-05 12:39:24 +01:00
Michael Osipov
572d5260b9 [MNG-7428] Upgrade Maven Parent to 35 2022-03-03 13:16:13 +01:00
Michael Osipov
f0caf9c9b3 [MNG-6960] Use RuntimeInformation instead of reading properties 2022-02-27 19:31:35 +01:00
Tomi Pakarinen
05e96dae96 [MNG-5180] Versioning's snapshot version list is not included in
metadata merge

Co-authored-by: Konrad Windszus <kwin@apache.org>

This closes #684
2022-02-27 11:50:25 +01:00
Christoph Läubrich
d29af9018b [MNG-7402] BuildListCalculator never detaches the classloader
This closes #683
2022-02-26 21:40:28 +01:00
Sylwester Lachiewicz
395411fe31 [MNG-7417] Several classes do not set properties properly for building requests
This closes #306
2022-02-20 19:27:59 +01:00
Christoph Läubrich
a5acd3ec60 [MNG-7395] Support interpolation in extensions.xml
This adds support for property interpolation in extensions.xml to allow
advanced use cases where one wants to contribute certain things via the
commandline.

This closes #673
2022-02-19 21:41:18 +01:00
Christoph Läubrich
2bb1228de6 [MNG-7407] Introduce a ModelVersionProcessor component to make CI Friendly Versions pluggable
This closes #674
2022-02-19 17:51:35 +01:00
Christoph Läubrich
6f14196846 [MNG-7400] Allow more WorkspaceReaders to participate
This closes #668
2022-02-13 10:41:06 +01:00
Hervé Boutemy
0a118d6e24 [MNG-7408] explain Maven 3 reporting plugin version selection 2022-02-06 09:55:38 +01:00
Guillaume Nodet
d79485ff23
[MNG-6727] Using version range in parent and CI Friendly Version fails 2022-02-01 14:26:54 +01:00
Guillaume Nodet
83257bfde0
[MNG-7349] Limit relocation warning message to direct dependencies only 2022-01-24 07:53:26 +01:00
Guillaume Nodet
0cda424772
[MNG-7386] Make sure the ModelMerger$MergingList can be serialized 2022-01-21 16:53:03 +01:00
Hervé Boutemy
27755123e3 [MNG-7385] improve repository metadata documentation 2022-01-18 21:24:59 +01:00
Falko Modler
67ff805448 [MNG-7381] Shorten parallel builder thread name to artifactId, conditionally with groupId
This closes #663
2022-01-17 22:16:39 +01:00
Michael Osipov
72c483b527 [MNG-7384] Upgrade Maven JAR Plugin to 3.2.2 2022-01-14 11:32:30 +01:00