Commit Graph

11014 Commits

Author SHA1 Message Date
dependabot[bot] dcf3d70c26
[MNG-8443] Bump com.google.guava:guava from 33.2.1-jre to 33.4.0-jre (#1991)
Bumps [com.google.guava:guava](https://github.com/google/guava) from 33.2.1-jre to 33.4.0-jre.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

---
updated-dependencies:
- dependency-name: com.google.guava:guava
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

---

https://issues.apache.org/jira/browse/MNG-8443
2024-12-17 10:53:46 +01:00
Slawomir Jaranowski 68aa8415bb [MNG-8370] Add maven.repo.local.head
Based on: 1ab2ccf066

https://issues.apache.org/jira/browse/MNG-8370
2024-12-16 16:25:07 +01:00
dependabot[bot] ff967474ca Bump plexusVersion from 2.1.0 to 2.2.0
Bumps `plexusVersion` from 2.1.0 to 2.2.0.

Updates `org.codehaus.plexus:plexus-component-annotations` from 2.1.0 to 2.2.0
- [Release notes](https://github.com/codehaus-plexus/plexus-containers/releases)
- [Changelog](https://github.com/codehaus-plexus/plexus-containers/blob/master/ReleaseNotes.md)
- [Commits](https://github.com/codehaus-plexus/plexus-containers/compare/plexus-containers-2.1.0...plexus-containers-2.2.0)

Updates `org.codehaus.plexus:plexus-component-metadata` from 2.1.0 to 2.2.0
- [Release notes](https://github.com/codehaus-plexus/plexus-containers/releases)
- [Changelog](https://github.com/codehaus-plexus/plexus-containers/blob/master/ReleaseNotes.md)
- [Commits](https://github.com/codehaus-plexus/plexus-containers/compare/plexus-containers-2.1.0...plexus-containers-2.2.0)

---
updated-dependencies:
- dependency-name: org.codehaus.plexus:plexus-component-annotations
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.codehaus.plexus:plexus-component-metadata
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-08 19:22:51 +01:00
Francois Marot 3bad2f7673
[MNG-8315] Fix MAVEN_PROJECTBASEDIR in mvn.cmd when .mvn is at drive root (#1806)
fixes https://issues.apache.org/jira/browse/MNG-8315
2024-10-17 11:27:53 +02:00
Tamas Cservenak 45201347c4
[MNG-8256] FilteredProjectDependencyGraph fix for non-transitive case (#1724)
The `FilteredProjectDependencyGraph` class fix for non-transitive case and an UT. Also contains some improvement in classes, making them immutable as intended.

---

https://issues.apache.org/jira/browse/MNG-8256
2024-09-12 22:50:55 +02:00
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 7185b0a168
[MNG-8165] Get rid of bashism creeped in (#1653)
Use of "==" is a bashism.

---

https://issues.apache.org/jira/browse/MNG-8165
2024-08-14 10:42:18 +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 274f1e345e
[MNG-8165] Align mvn.sh script with mvn.cmd (#1647)
As one does check for .mvn directory in FS root while other does not, stops one level before.

---

https://issues.apache.org/jira/browse/MNG-8165
2024-08-13 09:11:33 +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
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 42fc90e018
[MNG-8206] Remove bad plugin.xml in maven-compat (#1646)
Follow-up to https://github.com/apache/maven/pull/1642

---

https://issues.apache.org/jira/browse/MNG-8206
2024-08-12 13:50:22 +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 ba2ff7e025
[MNG-8182] Resolved errors were created based on collect exceptions (#1632)
Hence, they missed resolution errors.

---

https://issues.apache.org/jira/browse/MNG-8182
2024-08-09 23:10:39 +02:00
Tamas Cservenak 93c9a775be
[MNG-8199] Hamcrest 3.0 (#1631)
Use latest Hamcrest that is Java 8.

---

https://issues.apache.org/jira/browse/MNG-8199
2024-08-09 12:27:45 +02:00
Tamas Cservenak 69f1028070
[3.9.x][MNG-8193] Update to Resolver 1.9.22 (#1627)
Update to [Resolver 1.9.22](https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12320628&version=12354902).

---

https://issues.apache.org/jira/browse/MNG-8193
2024-08-09 12:08:18 +02:00
Tamas Cservenak 2773e53475 [MNG-8198] Animal Sniffer 1.24
---

https://issues.apache.org/jira/browse/MNG-8198
2024-08-09 12:06:48 +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
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 d5e8e93442
[MNG-8175] Update Resolver to 1.9.21 (#1598)
Upgrade to Resolver 1.9.21

---

https://issues.apache.org/jira/browse/MNG-8175
2024-07-09 10:47:16 +02:00
Piotrek Żygieło 18f23a1dc1
[MNG-7194] Test missing property evaluation (#1570)
Co-authored-by: Piotrek Żygieło <pzygielo@users.noreply.github.com>
2024-06-26 05:22:26 +02:00
James Z.M. Gao 6e8550cd6a
[MNG-8159] Fix search for topDirectory when using -f / --file (#1589)
Backport 08e996bb28

Co-authored-by: Guillaume Nodet <gnodet@gmail.com>

---

https://issues.apache.org/jira/browse/MNG-8159
2024-06-20 08:43:05 +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
Slawomir Jaranowski 37f1f02a34 [MNG-7758] Report dependency problems for all repository
(cherry picked from commit 768ebbc263)
2024-06-12 14:37:24 +02:00
Pavlo Shevchenko 083716de8b
[MNG-8150] Backport TransferListener improvements for Maven 3.9.x (#1576)
Backporting https://github.com/apache/maven/pull/1575 to Maven 3.9.x.

 - [x] I hereby declare this contribution to be licenced under the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)

---

https://issues.apache.org/jira/browse/MNG-8150
2024-06-11 22:49:57 +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 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 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 66266e5315
[MNG-8140] Always tell why model was discarded as "invalid" (#1555)
The info is there, but we redirect user to rinse-repeat in debug mode, that that creates a TON of output.

All is there, just tell why.

---

https://issues.apache.org/jira/browse/MNG-8140
2024-06-06 21:07:44 +02:00
Tamas Cservenak 741deac98f
[MNG-8146] Drop commons-lang (#1564)
For start, keeping almost same LOC but the distro zip lost almost 1 MB (was 10MB now is 9MB). Second, am really unsure why it was introduced in the first place, as it merely caused confusion, over StringUtils for example.

---

https://issues.apache.org/jira/browse/MNG-8146
2024-06-06 20:49:34 +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 865072025d
[MNG-8066] Default exception handler does not handle recursion (#1558)
If there is a recursion in throwable causes, Maven will hang forever, instead to return.

---

https://issues.apache.org/jira/browse/MNG-8066
2024-06-06 12:22:06 +02:00
Yueh Chun Wu df00ea5c10 [MNG-7902] Sort plugins in the validation report (#1510)
Co-authored-by: Yueh Chun Wu <kevinwu@YuehdeMBP.attlocal.net>

(cherry picked from commit dd9679450e)
2024-06-05 20:06:00 +02:00
Tamas Cservenak a2fa050d9b
Dependency updates (#1560)
Changes:
* commons-cli 1.8.0
* guava 32.2.1-jre

---

https://issues.apache.org/jira/browse/MNG-8144
https://issues.apache.org/jira/browse/MNG-8143
2024-06-05 18:10:53 +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 2a43483a94
[MNG-8136] Update Eclipse Sisu to 0.9.0.M3 (#1547)
Update Eclipse Sisu 0.9.0.M3 (carries ASM 9.7).

---

https://issues.apache.org/jira/browse/MNG-8136
2024-06-04 08:41:09 +02:00
Slawomir Jaranowski 1f97d9ff07 Use Maven Wrapper to build 2024-06-03 21:52:18 +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 6ff3a821e7
[MNG-8125][MNG-8126][MNG-8127] Mild updates (#1533)
Changes:
* buildhelper-m-p 3.6.0
* logback-classic to 1.2.13
* guava to 33.2.0-jre

---

https://issues.apache.org/jira/browse/MNG-8125
https://issues.apache.org/jira/browse/MNG-8126
https://issues.apache.org/jira/browse/MNG-8127
2024-05-22 11:34:30 +02:00