Commit Graph

721 Commits

Author SHA1 Message Date
Tamas Cservenak 4c059c401c
Add missing since (#1682)
No JIRA, but is annoying that faily modern
interfaces have no since set properly.

Arrived with commit:
2bb1228de6
2024-08-26 23:16:46 +02:00
Tamas Cservenak 0d5ab52ac4
[MNG-8211] Fail the build if CI Friendly revision used without value (#1656)
As this is almost always source of confusion. If feature is used and there is no proper value set, fail the build, as users for sure does not plan to deploy artifacts with version `${revision}` (or any expression in project.version).

Still, to not be disruptive, the old behaviour can be achieved by setting `maven.build.allowExpressionInEffectiveProjectVersion`=true project property.

---

https://issues.apache.org/jira/browse/MNG-8211
2024-08-22 12:54:35 +02:00
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 1a787b0357
[MNG-8188] Profile properties are not interpolated (#1634)
Restore of uninterpolated things did "too much", we need to restore activations only.

Maven4 is not affected, manually checked using reproducer.

---

https://issues.apache.org/jira/browse/MNG-8188
2024-08-12 14:44:59 +02:00
Slawomir Jaranowski e7e0cbb405 [MNG-8179] Upgrade Parent to 43 2024-07-11 09:05:08 +02:00
Dr. Christian Kohlschütter 5223ff68a6
[MNG-8178] Fall back to system properties for missing profile activation context properties (#1603)
A call to context.getSystemProperties() may yield empty an empty map, or
one missing the desired key, which makes a subsequent call of
toLowerCase fail with a NullPointerException.

Fall-back to using Os.OS_NAME and similar properties.

---------

Co-authored-by: Guillaume Nodet <gnodet@gmail.com>
2024-07-10 22:02:36 +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
Slawomir Jaranowski 105d843df2 [MNG-8154] Upgrade default plugin bindings 2024-06-13 09:55:46 +02:00
Tamas Cservenak 02927b7fc6
[MNG-8141] Aftermath, and tidy up (#1572)
No (logic) change, merely moved the new code to proper place (validation) to not piggy back onto processing: this is much cleaner.

---

https://issues.apache.org/jira/browse/MNG-8141

Inspired by suggestions in master PR https://github.com/apache/maven/pull/1569
2024-06-10 12:59:06 +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 758e05480b Revert "[MNG-8141] Model builder should report problems it finds during build (#1556)"
This reverts commit 7fcd8c5d15.
2024-06-07 13:06:03 +02:00
Tamas Cservenak 7fcd8c5d15
[MNG-8141] Model builder should report problems it finds during build (#1556)
And not rely that model was validated, which is not true in some cases. Model builder can still easily detect issues with models while building them.

Provides "escape hatch" for projects stuck on invalid models in form of user property that can be enabled with `-Dmaven.modelBuilder.failOnInvalidModel=false`, this reverts to _old_ behaviour of maven, and the JavaFX reproducer goes back to error "unable to resolve" errors with uninterpolated `${javafx.platform}` property as classifier.

---

https://issues.apache.org/jira/browse/MNG-8141
2024-06-06 21:21:17 +02:00
Tamas Cservenak 200dc02da8
[MNG-8142] Hidden bug: JDK profile activator throw NumberFormatEx (#1557)
If property `java.version` is in unexpected format, the activator throws `NumberFormatEx`, that in turn, is caught and reported by `DefaultProfileSelector` w/o any cause.

These should be cleanly reported instead: report that `java.version` property is in "unexpected format", and also report why was there are failure to evaluate a property activation.

Note 1: Maven allows `-Djava.version` override (!!!), this is exactly what IT MNG-3746 does, but the `NumberFormatEx` went unnoticed, was swallowed, no cause reported.

Note 2: This bug was revealed by #1555 as it reported the issue, and later "asserted error free log" which was not error-free. Hence, this bug was simply revealed by improved logging on unrelated issue.

---

https://issues.apache.org/jira/browse/MNG-8142
2024-06-06 18:34:16 +02:00
Tamas Cservenak 9ee39630ad
[MNG-8135] Profile activation based on OS properties is no longer case insensitive (#1561)
Backport of 0456c7c629

---

https://issues.apache.org/jira/browse/MNG-8135
2024-06-05 18:09:54 +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
Matt Benson c1c114dbf9
[MNG-8081] Interpolate available properties during default profile selection (Maven 3.9.x) (#1447)
Co-authored-by: Guillaume Nodet <gnodet@gmail.com>
2024-05-02 15:13:34 +02:00
Slawomir Jaranowski 6d095518ce [MNG-8101] Upgrade Parent to 42 2024-04-20 20:44:23 +02:00
Konrad Windszus f860a8693d
[MNG-5726] Support regular expression matching in profile activation for (#1431)
OS version

This requires using the reserved prefix "regex:" in the version element.
2024-03-07 16:14:20 +01:00
Konrad Windszus 9a84fdf2a9
[MNG-8019] Rely on default update policy (daily) for Central (#1381)
Both plugin and regular repository should have the same policy.
Unfortunately using "never" is not possible as long as resolver applies
this policy to both artifacts (immutable) and metadata (mutable)
2024-02-23 12:07:06 +01:00
Hervé Boutemy 3880a07362 [MNG-8029] improve documentation about mirror settings 2024-02-17 19:26:33 +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
Slawomir Jaranowski e6cc6c53cb [MNG-7943] Upgrade default plugin bindings
- surefire from 3.1.2 to 3.2.2
- dependency from 3.6.0 to 3.6.1
2023-11-26 16:31:33 +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
Slawomir Jaranowski 0e1de3fe5b [MNG-7895] Support ${project.basedir} in file profile activation
(cherry picked from commit 5c2e671a06)
2023-09-27 22:01:48 +02:00
Craig Andrews c482de86c1
[MNG-7851] Improve error message when modelVersion is 4.0 (#1210)
Improve DefaultModelValidator.compareModelVersions to be able to compare
versions which different numbers of segments, allowing it to compare
"4", "4.0", and "4.0.0" to each other for example.

Signed-off-by: Craig Andrews <candrews@integralblue.com>
2023-08-29 12:06:11 +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
Tamas Cservenak 7e0fa3ec52
[MNG-7807] Super POM plugin updates (#1152)
Changes:
* antrun: 1.3 -> 3.1.0
* assembly: 2.2-beta-5 -> 3.6.0
* dependency: 2.8 -> 3.6.0
* release: 2.5.3 -> 3.0.1 (and removed config)

---

https://issues.apache.org/jira/browse/MNG-7807
2023-06-12 11:18:41 +02:00
Hervé Boutemy 434ec3b476 fix unintended s/javacocs/Javadocs/ 2023-06-04 18:16:38 +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
Niels Basjes 0f18470576
[MNG-7750] Fix unwanted interpolation in plugins from profiles. (#1075)
This is ONLY the reproduction of the problem I found.

If you disable the activeProfile (in buildPom and remove the assert) then all checks pass.

If you enable this profile (provided code) then in several places the ${project.basedir} has been interpolated and shows the path of the build and the assertions fail the build.

---

https://issues.apache.org/jira/browse/MNG-7750
2023-04-12 12:26:47 +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 5bc322ae93
[MNG-7726] Maven 3.9.0 resolves properties in file profile activation incorrectly (#1053)
There was a typo: the stream contains entries, so e.getKey and
e.getValue is needed.

---

https://issues.apache.org/jira/browse/MNG-7726
2023-03-11 22:49:58 +01:00
Andrey Bruykhov 4454cd6d82 Normalize regex patterns
This closes #988
2023-02-09 18:49:45 +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