10918 Commits

Author SHA1 Message Date
Michael Osipov
cd64c54a88 Fix test Javadoc issue 2022-12-24 21:39:01 +01:00
Michael Osipov
88ec1d2383 [MNG-7352] org.apache.maven.toolchain.java.JavaToolchainImpl should be public
This closes #934
2022-12-24 19:57:42 +01:00
Michael Osipov
353eea33c1 [MNG-7641] Upgrade Maven Wagon to 3.5.3 2022-12-23 08:51:07 +01:00
Swell
6de6877c2f [MNG-7644] Fix version comparison where .X1 < -X2 for any string qualifier X
This closes #931
2022-12-21 23:34:11 +01:00
Michael Osipov
ffb5428c48 Update bundled license for SLF4J 2022-12-20 11:19:17 +01:00
Michael Osipov
2dbee43408 [MNG-7634] Revert MNG-5982 and MNG-7417
This closes #917
2022-12-20 09:11:58 +01:00
Piotrek Żygieło
4adaf2abca Implement some #toString() methods
* Implement Developer#toString()
* Implement IssueManagement#toString()
* Implement License#toString()
* Implement Build#toString()
* Implement Organization#toString()
* Implement MailingList#toString()
* Implement Scm#toString()

This closes #923
2022-12-18 17:52:36 +01:00
Simon
a6b8a9e9fb [MNG-7578] Fallback on Linux executable in Windows for findTool utility (#861)
Co-authored-by: Guillaume Nodet <gnodet@gmail.com>
2022-12-18 17:17:34 +01:00
Michael Osipov
46c84876d7 Directories, not folders 2022-12-18 16:37:08 +01:00
Michael Osipov
a1d43778ef [MNG-7636] Partially revert MNG-5868 to restore backward compatibility (see MNG-7316)
Co-authored-by: Gary Gregory <ggregory@rocketsoftware.com>

This closes #919
2022-12-18 13:27:16 +01:00
Christoph Läubrich
4db9b94baf [MNG-7637] Possible NPE in MavenProject#hashCode()
This closes #921
2022-12-18 12:13:07 +01:00
Michael Osipov
3492f3ae99 [MNG-7621] Parameter '-f' causes ignoring any 'maven.config' (only on Windows)
This closes #905
2022-12-16 22:38:20 +01:00
Olivier Lamy
3d9e39c724
fix path 2022-12-16 09:21:51 +10:00
Olivier Lamy
280b8d3ec5
fix unstash name 2022-12-16 09:01:21 +10:00
Olivier Lamy
f0d4b907b8
fix stash 2022-12-16 08:24:01 +10:00
Olivier Lamy
c1deb6233a fix pom
Signed-off-by: Olivier Lamy <olamy@apache.org>
2022-12-13 09:16:06 +10:00
Olivier Lamy
13cf1aa119 fix path
Signed-off-by: Olivier Lamy <olamy@apache.org>
2022-12-13 09:13:46 +10:00
Olivier Lamy
b4476a300f fix path
Signed-off-by: Olivier Lamy <olamy@apache.org>
2022-12-13 09:09:28 +10:00
Olivier Lamy
c0c752baef simplify build and get rid of withMaven (#908)
* simplify build
2022-12-13 09:03:31 +10:00
Tamas Cservenak
69c5a5dbdb
[MNG-7619] Reverse Dependency Tree (#900)
Adds Maven feature that is able to explain why an artifact is present in local repository.

Usable for diagnosing resolution issues.

In local repository, for each artifact it records `.tracking` folder, containing farthest artifact that got to this artifact, and the list of graph nodes that lead to it.

Note: this is based on by @grgrzybek proposal and reuses some code he provided. See https://github.com/apache/maven-resolver/pull/182

---

https://issues.apache.org/jira/browse/MNG-7619
2022-12-05 16:19:20 +01:00
Tamas Cservenak
2dc7a356d3 [MNG-7612] Chained LRM
Adds new feature: Chained Local Repository Manager.

---

https://issues.apache.org/jira/browse/MNG-7612
2022-12-02 17:57:47 +01:00
Tamas Cservenak
573a3e1ec5
[MNG-7614] Translate Plexus XML to proper resolver configuration (#895)
Now that Maven 3.9.x contains other transports than Wagon, the Plexus XML is not just to be "stuffed", but translation should happen to proper resolver configuration to make them available to all transports.

---

https://issues.apache.org/jira/browse/MNG-7614
2022-12-02 16:12:01 +01:00
Slawomir Jaranowski
9127a01917
[MNG-7613] Parent POM 38 - add .git-blame-ignore-revs 2022-12-02 13:01:22 +01:00
Slawomir Jaranowski
693814f0a5 [MNG-7613] Parent POM 38 - code reformat 2022-12-02 12:54:12 +01:00
Slawomir Jaranowski
abc55589da [MNG-7613] Upgrade Apache Maven parent POM to version 38 2022-12-02 12:54:12 +01:00
Tamas Cservenak
4c95a50332
[MNG-6609] Profile activation based on packaging (#883)
In short: do NOT set request.setRawModel as NOTHING sets it. The Maven4 vs Maven3 is different, in Maven 3 NOTHING calls request.setRawModel

Full explanation: as ModelBuildingRequest is REUSED, and nothing sets this value in Maven3, once you set it here (as in original PR https://github.com/apache/maven/pull/849 ) results in awkward situation in Maven3: it will not load any other model...

---

https://issues.apache.org/jira/browse/MNG-6609
2022-12-01 12:51:18 +01:00
Tamas Cservenak
36ff9a65e6 Revert "[MNG-6609] Maven 3.9: profile activation by packaging (#849)"
This reverts commit e921f1564ef9460ca58745eb52e3967dbbd0b9e7.
2022-11-28 09:06:29 +01:00
Konrad Windszus
e921f1564e
[MNG-6609] Maven 3.9: profile activation by packaging (#849)
Generate raw model before profile activation context is generated
2022-11-27 16:49:43 +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
Tamas Cservenak
c3919cdd0e
[MNG-7586] Update Maven Resolver to 1.9.2 (#881)
* [MNG-7586] Update Maven Resolver to 1.9.2

Updates resolver to latest release.

---

https://issues.apache.org/jira/browse/MNG-7586
2022-11-26 20:08:09 +01:00
Slawomir Jaranowski
474a470aa9 [MNG-7600] LocalRepositoryManager is created too early
LocalRepositoryManager needs configurations from RepositorySystemSession
so must be created after session configuration is finished.

(cherry picked from commit b1c1f7556d6b66d984c4ed2c0eb723c9b99b38be)
2022-11-22 00:01:05 +01:00
Tamas Cservenak
b8b41c6d40 Revert "[3.9.x][MNG-7586] Update Maven Resolver to 1.9.1 (#831)"
This reverts commit 2d384ddce37aa99e23e8ea43998f07c15532f9d2.
2022-11-18 10:28:09 +01:00
Slawomir Jaranowski
638364fb92 Update actions in GH build
chery-pick from a6b1ebb1cd40ca4b288fdeb30c6d2460323aa25b

Old actions use deprecated node 12

- cache v2 -> v3
- checkout v2 -> v3
- download-artifact v2 -> v3
- setup-java v2 -> v3
- disable access to GITHUB_TOKEN
- don't store credentials with checkout
- don't execute build for PR from local repository branches - we have build on push event
2022-11-17 21:14:40 +01:00
Tamas Cservenak
2d384ddce3
[3.9.x][MNG-7586] Update Maven Resolver to 1.9.1 (#831)
Update to Maven Resolver 1.9.1 and apply required changed changes in Maven.

Changes:
- hook in lifecycle

---

https://issues.apache.org/jira/browse/MNG-7586
2022-11-17 16:21:41 +01:00
Slawomir Jaranowski
fa2febb6f3 [MNG-7590] Allow to configure resolver by properties in settings.xml
Cherry-pick from fa15fcf1536a6a5e92355ac8c91ecfa0301f016e
2022-11-12 12:36:39 +01:00
Piotrek Żygieło
8a5dada82c [MNG-7568] Consider inactive profiles for validation 2022-11-05 10:30:11 +01:00
Abdel Hajou
3212efee78 [MNG-7564] Check if session is null when generating metadata
Backported (and adapted) from master.
2022-10-31 10:20:08 +01:00
Michael Osipov
0f4387543d [MNG-7556] Clean up notion between user properties and system properties 2022-10-29 20:19:49 +02:00
Konrad Windszus
75e1940695
[MNG-7106] Accept same lower and upper bound in version spec string (#826) 2022-10-13 15:31:56 +02:00
Tamas Cservenak
5136a5ea81
Maven-3.9.x Simplify maven-plugin metadata handling (#807) 2022-10-11 14:11:34 +02:00
Guillaume Nodet
a7a5b8169b
Make sure RAT plugin ignores files in the target folder (#813) (#815)
* Make sure RAT plugin ignores files in the target folder
* Fix gitignore so that it can work with rat, do not inherit execution in children, use a single place to configure rat
* Exclude .asf.yaml from rat check
* Add repo/ to the .gitignore file as it's often used for local repository
2022-10-05 16:44:10 +02:00
Slawomir Jaranowski
a4ed7bb6ba [MNG-7463] Improve documentation about deprecation in Mojo
(cherry picked from commit 47e2d689d687358a85c2cdecc176cac36093817e)
2022-09-18 16:37:06 +02:00
Sylwester Lachiewicz
2f7dfcfe82 [MNG-7502] Upgrade to Guice 5.1.0
(cherry picked from commit 5502c0c8dba03c7241bd9dd1bb5ba023ab6f2670)
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
Slawomir Jaranowski
55a2182a6b [MNG-7530] Upgrade Apache Maven parent POM to version 37
(cherry picked from commit 750e1e3e71194644acda437cefbd73c8bd408f5d)
2022-08-25 13:11:45 +02: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
Michael Osipov
20f539a3fd [MNG-7520] Simplify integration of Redisson and Hazelcast for Maven Resolver
Co-authored-by: Jacques-Etienne Beaudet <jebeaudet@gmail.com>

This closes #776
2022-08-23 22:05:51 +02:00
Guillaume Nodet
b762fa9d5c
[3.9.x] [MNG-7401] [MNG-7474] Keep a single maven session and fix session scope (#743)
* [MNG-7474] SessionScoped beans should be singletons for a given session

Now that the Session is not cloned anymore, we can revert to the original
(Maven < 3.3) behavior of the session scoped components.

Co-authored-by: Christoph Läubrich <christoph@laeubi-soft.de>

This closes #743

* Remove setting a value which is the default already

Co-authored-by: Christoph Läubrich <christoph@laeubi-soft.de>
2022-08-23 11:19:11 +02:00
Henning P. Schmiedehausen
29c53d6748 [MNG-7193] Introduce MAVEN_ARGS environment variable
Add args directly after the class name and leave users the option to override
with maven.config or CLI args.

This closes #782
2022-07-29 20:30:24 +02:00
Michael Osipov
73360100ca [MNG-7522] Upgrade Maven Resolver to 1.8.2
This closes #779
2022-07-28 22:09:31 +02:00