Commit Graph

121 Commits

Author SHA1 Message Date
Tamas Cservenak 76ff89f507 [maven-release-plugin] prepare for next development iteration 2024-08-14 10:49:36 +02:00
Tamas Cservenak 8e8579a9e7 [maven-release-plugin] prepare release maven-3.9.9 2024-08-14 10:49:16 +02:00
Tamas Cservenak ba05e6a102 [maven-release-plugin] prepare for next development iteration 2024-08-13 17:54:01 +02:00
Tamas Cservenak 476642f233 [maven-release-plugin] prepare release maven-3.9.9 2024-08-13 17:53:41 +02:00
Tamas Cservenak ecd577b363
[MNG-8177] Add contextual info for model warnings (#1633)
As they really can come from anywhere. In case of this issue even from some eliminated POM that was read while collecting dirty tree, and was later eliminated. So confusing for users.

---

https://issues.apache.org/jira/browse/MNG-8177
2024-08-12 13:51:26 +02:00
Tamas Cservenak 38a128f657
[MNG-8180] Back out from failing the build (#1642)
Just warn for now, we cannot go from builds-ok w/
3.9.8 to fails-the-build in 3.9.9. Warning
can raise awareness, and this pattern is bad as
it is, but users now become aware that they may
have rogue plugin.xml (just like maven-compat had).

The original bug is fixed (Maven deploys unrelated metadata).

Same change is to be ported to master as well.

---

https://issues.apache.org/jira/browse/MNG-8180
2024-08-12 13:07:14 +02:00
Tamas Cservenak f2135c1863
[MNG-8180] Handle NPE due non-existent tags (#1641)
There was an NPE possibility when plugin.xml had no expected tags present.

Also: maven-compat has plugin.xml (!) w/o "name" tag, it NPEd and failed build. This was NOT picked up by CI as "rebuild itself" step does not install (just verify).

---

https://issues.apache.org/jira/browse/MNG-8180
2024-08-11 18:56:21 +02:00
Tamas Cservenak 8d0e438bc3
[MNG-8180] Fail install/deploy if rogue Maven Plugin metadata found (#1611)
Resolver handles transparently the repository metadata, and in case of plugins it peeks into META-INF/maven/plugin.xml of given artifact JAR to figure out needed metadata bits (prefix, name, etc).

But, this was done "blindly", while it is expected that GA of JAR artifact without classifier (requirement for maven plugins) and GA in embedded plugin metadata must be same.

Decision here is to fail hard, prevent this being installed and deployed, as this is most probably wrong (unsure what maven-indexer or even Sonatype search would do in this case).

---

https://issues.apache.org/jira/browse/MNG-8180
2024-07-11 18:47:01 +02:00
Slawomir Jaranowski e7e0cbb405 [MNG-8179] Upgrade Parent to 43 2024-07-11 09:05:08 +02:00
Tamas Cservenak 1b3828e05b [maven-release-plugin] prepare for next development iteration 2024-06-13 10:22:44 +02:00
Tamas Cservenak 36645f6c9b [maven-release-plugin] prepare release maven-3.9.8 2024-06-13 10:22:16 +02:00
Tamas Cservenak ac5d71a49c Reformat, no code change 2024-06-08 22:26:46 +02:00
Tamas Cservenak dd8c95c193
[MNG-8141][MNG-8147] Restore profile ID invariance but warn if duplicate IDs present (#1568)
Fix and improvement in one PR as they are closely related.
First, this PR restores the ability (broken by MNG-8081) to calculate Profile activation for POMs with duplicate Profile ID.
Second, this PR improves UX by warning them about invalid models in their build.

The reproducer now looks like this:
https://gist.github.com/cstamas/165a610b233f4c03e381a0a2697903eb

Notice:
* WARNs issued about models (all Maven versions are mute about this)
* still, property `${javafx.platform}` properly evaluated just like in 3.9.6 (but not in 3.9.7)
* build succeeds (fails in 3.9.7)

---

https://issues.apache.org/jira/browse/MNG-8147
https://issues.apache.org/jira/browse/MNG-8141
2024-06-08 22:21:14 +02:00
Tamas Cservenak 1c166ab95e [maven-release-plugin] prepare for next development iteration 2024-05-22 11:48:40 +02:00
Tamas Cservenak 8b094c9513 [maven-release-plugin] prepare release maven-3.9.7 2024-05-22 11:48:25 +02:00
Tamas Cservenak bc52363d40
[3.9.x][MNG-8106] Fix metadata merge (#1480)
As currently if given metadata serves multiple roles (G, A or V level), data loss occurs.

---

https://issues.apache.org/jira/browse/MNG-8106
2024-04-25 12:10:11 +02:00
Hervé Boutemy 3880a07362 [MNG-8029] improve documentation about mirror settings 2024-02-17 19:26:33 +01:00
Tamas Cservenak 13a1f5d625
[MNG-8055] Ability to force build number (#1415)
For snapshot deploys

---

https://issues.apache.org/jira/browse/MNG-8055
2024-02-16 12:43:53 +01:00
Tamas Cservenak 46aaf72799 [maven-release-plugin] prepare for next development iteration 2023-11-28 11:01:11 +01:00
Tamas Cservenak bc0240f3c7 [maven-release-plugin] prepare release maven-3.9.6 2023-11-28 11:00:43 +01:00
Tamas Cservenak 6e532cd249 [maven-release-plugin] prepare for next development iteration 2023-10-01 20:39:38 +02:00
Tamas Cservenak 57804ffe00 [maven-release-plugin] prepare release maven-3.9.5 2023-10-01 20:39:10 +02:00
Tamas Cservenak bbd84c6c87
[MNG-7874] Use name constants instead of free string literals (#1229)
Maven Resolver Provider: get rid of name free string literals.

---

https://issues.apache.org/jira/browse/MNG-7874
2023-09-08 16:14:33 +02:00
Tamas Cservenak 94b9244bfb Fix formatting and javadoc issues. 2023-09-05 22:37:30 +02:00
Tamas Cservenak 1ac8be50c8
[MNG-7856] Maven Resolver Provider ctor and other minor code changes (#1223)
Maven Resolver Provider gets similar change as other Resolver components had in MRESOLVER-386.

Also, some minor code updates like adding Override and other cosmetic stuff.

---

https://issues.apache.org/jira/browse/MNG-7856
2023-09-05 21:41:20 +02:00
Tamas Cservenak 67b8c0703a [maven-release-plugin] prepare for next development iteration 2023-07-26 11:38:46 +02:00
Tamas Cservenak dfbb324ad4 [maven-release-plugin] prepare release maven-3.9.4 2023-07-26 11:38:23 +02:00
Tamas Cservenak 07491eb9ee [maven-release-plugin] prepare for next development iteration 2023-06-23 15:01:06 +02:00
Tamas Cservenak 2112292682 [maven-release-plugin] prepare release maven-3.9.3 2023-06-23 15:00:37 +02:00
Hervé Boutemy e83192cd56 s/JavaDocs/Javadocs/ 2023-06-04 18:09:59 +02:00
Tamas Cservenak 42594643c3 [maven-release-plugin] prepare for next development iteration 2023-05-08 11:05:52 +02:00
Tamas Cservenak c9616018c7 [maven-release-plugin] prepare release maven-3.9.2 2023-05-08 11:05:23 +02:00
Tamas Cservenak 22e6eb03ea [maven-release-plugin] prepare for next development iteration 2023-03-15 10:40:30 +01:00
Tamas Cservenak 2e178502fc [maven-release-plugin] prepare release maven-3.9.1 2023-03-15 10:39:58 +01:00
Tamas Cservenak 366e3f5f86
[MNG-7715] Update to resolver 1.9.6 (#1025)
Update and apply some adjustments to UTs as
error message did change.

---

https://issues.apache.org/jira/browse/MNG-7715
2023-03-06 10:42:55 +01:00
Tamas Cservenak ecc89f0098
[MNG-7677] Maven slowness improvement (#989)
The crux was  in resolver 1.9.5, but there are other "low hanging fruits" like delegate created on a "hot method".

---

https://issues.apache.org/jira/browse/MNG-7677
2023-02-23 09:50:57 +01:00
Andrey Bruykhov fbf6bdaf01 [MNG-7686] Speed up by replacing non-pattern #replaceAll() with #replace() or precompiled patterns
This closes #984
2023-02-07 22:10:29 +01:00
Tamas Cservenak ad29c3c548 [maven-release-plugin] prepare for next development iteration 2023-01-31 10:58:16 +01:00
Tamas Cservenak 9b58d2bad2 [maven-release-plugin] prepare release maven-3.9.0 2023-01-31 10:57:57 +01:00
Tamas Cservenak e9d570889f Reformat 2023-01-31 10:22:08 +01:00
Michael Osipov 2dbee43408 [MNG-7634] Revert MNG-5982 and MNG-7417
This closes #917
2022-12-20 09:11:58 +01:00
Slawomir Jaranowski 693814f0a5 [MNG-7613] Parent POM 38 - code reformat 2022-12-02 12:54:12 +01:00
Konrad Windszus eb66f225db
[MNG-7561] never resolve version ranges with same lower and upper bound (#864)
Co-authored-by: Guillaume Nodet <gnodet@gmail.com>
2022-11-27 11:36:17 +01:00
Michael Osipov 0f4387543d [MNG-7556] Clean up notion between user properties and system properties 2022-10-29 20:19:49 +02:00
Tamas Cservenak 5136a5ea81
Maven-3.9.x Simplify maven-plugin metadata handling (#807) 2022-10-11 14:11:34 +02:00
Sylwester Lachiewicz 2f7dfcfe82 [MNG-7502] Upgrade to Guice 5.1.0
(cherry picked from commit 5502c0c8db)
2022-09-11 10:00:07 +02:00
Henning Schmiedehausen d1bc037cc0
[MNG-7529] Maven resolver makes bad repository choices (#796)
Structure the version checks slightly different to make the separation
between repository versions and the version range resolution clearer.

Backport from master branch
2022-09-02 20:25:05 -07:00
Henning Schmiedehausen 9fe564cdc7
[MNG-7529] Maven resolver makes bad repository choices (#787)
Ensure that any versions resolved as part of a version range request
only reference repositories that are actually enabled for the type of
version (SNAPSHOT versions against snapshot repos, release versions
against release repositories).
2022-08-24 21:26:02 -07: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 d141957ff5 from master to maven-3.9.x branch.
2022-04-22 17:51:07 +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