Guillaume Nodet
db94ab6525
Fix UT
2025-02-01 00:49:47 +01:00
Guillaume Nodet
d0c173fd0d
Fix
2025-01-31 19:52:52 +01:00
Guillaume Nodet
ccc05dc33b
Replace ModelCache with RequestCache, use ArtifactResolver in DefaultProjectBuilder
2025-01-31 18:26:38 +01:00
Guillaume Nodet
67842da8f3
Add a real caching API and add missing infos to ArtifactResolverResult
2025-01-31 18:26:38 +01:00
Guillaume Nodet
12b6795c1e
[MNG-8540] Add global caching in the session
2025-01-31 18:26:38 +01:00
Guillaume Nodet
d221d58f41
[MNG-8540] Add equals/hashCode to requests
2025-01-31 18:26:38 +01:00
Tamas Cservenak
4cc254ef37
[MNG-8550] Update JLine3 to 3.29.0 ( #2074 )
...
Update to 3.29.0
---
https://issues.apache.org/jira/browse/MNG-8550
2025-01-31 10:56:34 +01:00
Tamas Cservenak
4dfffaee5e
Simplify and complete method implementation ( #2075 )
...
No issue as no functional change done. Merely
simplifying FastTerminal and making JLine
factory (seemingly) complete.
2025-01-31 10:56:15 +01:00
Guillaume Nodet
c61b255b16
ProjectManager cleanup ( #2073 )
2025-01-31 00:29:13 +01:00
Guillaume Nodet
cd96d11ca8
Add javadoc to DI ( #2072 )
2025-01-31 00:28:59 +01:00
Martin Desruisseaux
7b4a4bf759
[MNG-8395] Redirect the <sourceDirectory> element to <Source> ( #2061 )
...
* Include the list of <Source> elements in the path translation.
* Add a `SourceRoot` interface for the properties declared in the POM's `<Source>` element.
The API use method names without `get` prefix in anticipation for possible use of records in the future.
In the `MavenProject` class, the `compileSourceRoots`, `testCompileSourceRoots` and `scriptSourceRoots`
fields are replaced by redirections to the new `sources` field with paths wrapped in `SourceRoot` objects.
The getters and setters methods for the previous fields are deprecated.
This commit contains other opportunistic deprecations on methods working with deprecated interfaces.
In the POM file, the above-cited properties are ignored if a corresponding `<Source>` element exists.
This rule exits because Maven sets default values to those fields, which can interfer with user's setting.
* Deprecate POM elements that are replaced by <Source> elements.
* Add @Deprecated annotation on model elements flagged as @deprecated in the documentation.
* Update `ProjectManager` API using `SourceRoot`:
- Add `addSourceRoot(Project, …)` methods.
- Add `getSourceRoots()` and `getEnabledSourceRoots(ProjectScope, Language)`.
- Remove `get/addResource(Project, …)` methods.
- Remove `get/addCompileSourceRoots(Project, …)` methods.
---------
Co-authored-by: Guillaume Nodet <gnodet@gmail.com>
2025-01-30 13:22:39 +01:00
dependabot[bot]
3347e916bc
[MNG-8549] Bump net.bytebuddy:byte-buddy from 1.16.1 to 1.17.0 ( #2070 )
...
Bumps [net.bytebuddy:byte-buddy](https://github.com/raphw/byte-buddy ) from 1.16.1 to 1.17.0.
- [Release notes](https://github.com/raphw/byte-buddy/releases )
- [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md )
- [Commits](https://github.com/raphw/byte-buddy/compare/byte-buddy-1.16.1...byte-buddy-1.17.0 )
---
updated-dependencies:
- dependency-name: net.bytebuddy:byte-buddy
dependency-type: direct:production
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-8549
2025-01-30 10:14:14 +01:00
Tamas Cservenak
7fac8fcb8d
[MNG-8513] Move xml combination mode validation to validator ( #2069 )
...
As Central has POMs using wrong values, causing even dependency collation to fail. For now plugin/pluginMtg is handled, but it seems extensions, ReportPlugins and ReportSets are not even validated...
---
https://issues.apache.org/jira/browse/MNG-8513
2025-01-29 15:14:59 +01:00
Tamas Cservenak
89ae320295
Just some details i spotted during debug ( #2068 )
...
No need for issue IMHO
2025-01-29 11:54:59 +01:00
Tamas Cservenak
c8d1a26b30
Fix previous PR merge
...
There were master changes not merged.
2025-01-29 10:52:21 +01:00
Tamas Cservenak
7f4c24ca17
[MNG-8545] More repository handling fixes ( #2067 )
...
Multiple fixes:
* cling does not override repositories properly at bootstrap
* Source problems caused cache misses
---
https://issues.apache.org/jira/browse/MNG-8545
2025-01-29 10:46:53 +01:00
Christoph Läubrich
74c950b750
[MNG-8541] Support throwing Exception from Mojo#execute ( #2066 )
...
Co-authored-by: Christoph Läubrich <christoph@laeubi-soft.de>
Co-authored-by: Guillaume Nodet <gnodet@gmail.com>
2025-01-29 09:21:00 +01:00
Guillaume Nodet
2155d9f0c2
[MNG-8519] Introduce Request / Results / RequestTrace ( #2050 )
2025-01-29 09:17:07 +01:00
Guillaume Nodet
98060efc2f
[MNG-8523] Make sure user properties override model properties ( #2059 )
2025-01-28 18:28:34 +01:00
Tamas Cservenak
63e6881d98
[MNG-8545] Use of RemoteRepository in keys w/o equals/hashes ( #2064 )
...
But they have no hash/equals defined.
---
https://issues.apache.org/jira/browse/MNG-8545
2025-01-28 15:30:41 +01:00
Tamas Cservenak
bf6e6ee00a
[MNG-8544] Conflicting extensions went unnoticed ( #2063 )
...
Now that Maven4 has several extension sources, we need to be
able to detect conflicts. For now, we allow only one GA
and fail the bootstrapping, if conflict discovered.
User should fix the situation, with the help of detailed
error message enumerating all the conflicts.
---
https://issues.apache.org/jira/browse/MNG-8544
2025-01-28 12:54:26 +01:00
Guillaume Nodet
bcf5c0c4e0
[MNG-8527] Re-enable consumer POM, remove unwanted managed dependencies, developers, contributors, mailing lists and issue management ( #2058 )
...
* re-enable consumer POM for 4.0.0 and 4.1.0 models
* remove unwanted managed dependencies
* remove plugin repositories, developers, contributors, mailing lists and issue management
2025-01-28 12:39:03 +01:00
Sandra Parsick
3761953a2b
[MNG-8525] Add an integration test with Maven 4 Plugin Sample ( #2055 )
2025-01-28 09:44:28 +01:00
Guillaume Nodet
abc0a30035
[MNG-8477] Fix problems with file activation being wrongly cached ( #2062 )
2025-01-27 20:24:30 +01:00
Guillaume Nodet
21121d8f6c
[MNG-8503] Configure logging using maven.logger.* properties rather than org.slf4j.simpleLogger.* ( #2048 )
2025-01-27 15:09:46 +01:00
Martin Desruisseaux
023b014938
[MNG-8395] Add a <Source> element in the model. ( #1936 )
...
* Add a <Source> element in the model. Properties are:
- directory (inherited from FileSet)
- includes (inherited from PatternSet)
- excludes (inherited from PatternSet)
- scope
- lang
- module
- targetVersion
- targetPath (taken from <Resource>)
- filtering (taken from <Resource>)
- enabled
This commit also renames `source` parameter value in `reader-stax.vm`
for avoiding name collision with the new `Source` model element.
https://github.com/apache/maven/pull/1936
* Resolve an ambiguity in the description of `target` behavior.
Rename `filtering` as `stringFiltering` for avoiding confusion with file filtering.
* Corrections in the comment about mapping from old elements to <Source>.
2025-01-26 15:11:52 +01:00
Jermaine Hua
dda614de4c
[MNG-8524] DefaultInterpolator should be used by injection ( #2049 )
...
Signed-off-by: crazyhzm <crazyhzm@apache.org>
2025-01-25 20:25:27 +08:00
Guillaume Nodet
8134aa24b1
[MNG-8508] Move content of maven-impl to the org.apache.maven.impl package ( #2060 )
2025-01-24 18:29:44 +01:00
Guillaume Nodet
ab4149fa22
[MNG-8520] Add cache for model resolution during project building ( #2047 )
2025-01-23 10:16:26 +01:00
Jermaine Hua
e9805bb1a8
[MNG-8512] Fix org.slf4j.simpleLogger.defaultLogLevel Configuration conflict ( #2042 )
...
Signed-off-by: crazyhzm <crazyhzm@apache.org>
2025-01-22 22:39:19 +08:00
Elliotte Rusty Harold
99f2b645da
[MNGSITE-393] Remove references to Maven 2.x ( #2024 )
2025-01-22 11:03:29 +00:00
Guillaume Nodet
e33e900469
[MNG-6113] Restore 'Maven Central Repository' name (lost with #1139 ) ( #2054 )
2025-01-22 08:44:50 +01:00
dependabot[bot]
ee8b8187b8
[MNG-8529] Bump net.bytebuddy:byte-buddy from 1.15.11 to 1.16.1 ( #2052 )
...
Bumps [net.bytebuddy:byte-buddy](https://github.com/raphw/byte-buddy ) from 1.15.11 to 1.16.1.
- [Release notes](https://github.com/raphw/byte-buddy/releases )
- [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md )
- [Commits](https://github.com/raphw/byte-buddy/compare/byte-buddy-1.15.11...byte-buddy-1.16.1 )
---
updated-dependencies:
- dependency-name: net.bytebuddy:byte-buddy
dependency-type: direct:production
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-8529
2025-01-20 10:46:39 +01:00
dependabot[bot]
d7e5f75bf6
[MNG-8528] Bump org.assertj:assertj-core from 3.27.2 to 3.27.3 ( #2053 )
...
Bumps [org.assertj:assertj-core](https://github.com/assertj/assertj ) from 3.27.2 to 3.27.3.
- [Release notes](https://github.com/assertj/assertj/releases )
- [Commits](https://github.com/assertj/assertj/compare/assertj-build-3.27.2...assertj-build-3.27.3 )
---
updated-dependencies:
- dependency-name: org.assertj:assertj-core
dependency-type: direct:development
update-type: version-update:semver-patch
...
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-8528
2025-01-20 10:45:43 +01:00
Guillaume Nodet
8a9c244a98
[MNG-8522] Deprecate maven-builder-support artifact and its classes ( #2043 )
2025-01-15 19:51:29 +01:00
Guillaume Nodet
aeec37f8e7
[MNG-8478] Fix formatting of timestamp in logger ( #2046 )
2025-01-15 07:28:29 +01:00
Guillaume Nodet
81b7565c20
[MNG-8484] Use List.copyOf to make a defensive immutable copy of the input collection
2025-01-13 20:22:00 +01:00
Guillaume Nodet
f5a407cf79
[MNG-8515] Use specialized methods
...
* UnaryOperator<String> instead of Function<String, String>
* BinaryOperator<String> instead of BiFunction<String, String, String>
2025-01-13 17:14:35 +01:00
Guillaume Nodet
8af006a931
[MNG-8515] Replace plexus interpolator with the new interpolator service
2025-01-13 17:14:35 +01:00
Guillaume Nodet
82f159adb9
[MNG-8510] Remove Utils class from maven-di ( #2040 )
2025-01-13 16:38:27 +01:00
Guillaume Nodet
28f6047464
[MNG-8514] Improve VersionRangeResolverResult ( #2039 )
2025-01-13 15:49:18 +01:00
Guillaume Nodet
d4be73bb1e
[MNG-8513] Be stricter about xml combination modes ( #2038 )
2025-01-13 08:11:18 +01:00
stellar
0a588ea174
[MNG-8493] 'serialVersionUID' can be annotated with '@Serial' annotation ( #2034 )
2025-01-10 18:34:05 +01:00
Elliotte Rusty Harold
03cca08d8d
[MNG-8483] Prefer Objects.requireNonNull ( #2019 )
...
* Prefer Objects.requireNonNull
2025-01-10 17:14:24 +00:00
dependabot[bot]
529b78ebda
[MNG-8506] Bump com.github.siom79.japicmp:japicmp-maven-plugin ( #2035 )
...
Bumps [com.github.siom79.japicmp:japicmp-maven-plugin](https://github.com/siom79/japicmp ) from 0.23.0 to 0.23.1.
- [Release notes](https://github.com/siom79/japicmp/releases )
- [Changelog](https://github.com/siom79/japicmp/blob/master/release.py )
- [Commits](https://github.com/siom79/japicmp/compare/japicmp-base-0.23.0...japicmp-base-0.23.1 )
---
updated-dependencies:
- dependency-name: com.github.siom79.japicmp:japicmp-maven-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
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-8506
2025-01-10 10:22:06 +01:00
Nils Breunese
a1f4955dda
[MNG-8482] Use instanceof assignments to get rid of casting expressions ( #2018 )
...
Co-authored-by: Nils Breunese <nbreunese@bol.com>
Co-authored-by: Guillaume Nodet <gnodet@gmail.com>
2025-01-10 09:42:00 +01:00
Guillaume Nodet
5cef91e402
[MNG-8494] Restore Maven 3 compatibility ( #2031 )
2025-01-10 08:09:12 +01:00
Tamas Cservenak
71c662fa4c
[MNG-8473] Site fixes ( #2010 )
...
Maven4 site cleanup: make all new modules generating models also document them, expose them all and redirect all links to new documentation.
Lifecycle is the only thing missing, as it is generated on the fly, there is no more source to "point at"...
---
https://issues.apache.org/jira/browse/MNG-8473
2025-01-08 23:14:18 +01:00
Jermaine Hua
7546361a0d
[MNG-8475] In the loop scenario, StringBuilder is used instead of concatenation ( #2014 )
...
Signed-off-by: crazyhzm <crazyhzm@apache.org>
---
https://issues.apache.org/jira/browse/MNG-8475
2025-01-08 18:20:28 +01:00
Tamas Cservenak
209cd7fbe4
[MNG-8502] Embedded executor should obey MAVEN_ARGS env variable ( #2032 )
...
Salvaged from the "split repo for ITs" experiment. The experiment failed but this improvement is good to have, as makes the embedded executor behave more closely like forked executor.
Embedded so far did not obey MAVEN_ARGS env variable while forked did.
---
https://issues.apache.org/jira/browse/MNG-8502
2025-01-08 17:01:07 +01:00