Commit Graph

10939 Commits

Author SHA1 Message Date
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 d141957ff5 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 c99028b9fb)
2022-04-12 22:49:03 +02:00
Tamas Cservenak 08dff22a41
[MNG-7447] Fix ReactorReader unintended change (#709)
The commit c604db3c3a
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 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
Falko Modler 99de6b49ee [MNG-7380] Don't log non-threadsafe warning if only building a single module
This closes #655
2022-01-11 15:45:53 +01:00
Michael Osipov 84cbe1ab2e [MNG-7362] DefaultArtifactResolver has spurious "Failure detected" INFO log 2022-01-11 15:25:11 +01:00
Guillaume Nodet b4518b5fe4
[MNG-7347] SessionScoped beans should be singletons for a given session (#653) 2022-01-10 08:19:41 +01:00
Guillaume Nodet 8456294977
[MNG-6326] Make the build fail if core extensions can not be loaded (#648) 2022-01-07 09:51:21 +01:00
Michael Osipov f4fd031828 Fix checkstyle issue 2022-01-06 22:26:58 +01:00
Ravil Galeyev 0f3c39b8ed [MNG-6802] FileProfileActivator changes FileProfileActivator.exists which lets flattened resolveCiFriendliesOnly depending fail activating profile
Cherry picked from 3fabb639a3

This closes #649
2022-01-06 18:50:10 +01:00