Commit Graph

11456 Commits

Author SHA1 Message Date
Guillaume Nodet 35e5a4d71d [MNG-5577] Use JSR 330 constructor injection
# Conflicts:
#	maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecyclePluginAnalyzer.java
2021-10-02 12:26:22 +02:00
Guillaume Nodet 1ab49b349f Remove deprecated usage of ServiceLocator/Service 2021-10-02 12:26:22 +02:00
Guillaume Nodet e30c1bf9fc Add a unit test for MavenRepositorySystemUtils#newSession 2021-10-02 12:26:22 +02:00
Karl Heinz Marbaise edbf133ab3
[MNG-7277] - Remove useless Test - testNonNumericVersionRepresentationReturnsANumberFormatException 2021-10-01 10:42:13 +02:00
lujie 5c9512fd8c
[MNG-7275] - fixing resource leak due to Files.list 2021-10-01 09:43:38 +02:00
Karl Heinz Marbaise 038201e314
[MNG-7274] - JUnit Jupiter via BOM 2021-09-30 01:27:57 +02:00
Karl Heinz Marbaise 25cf1576cc
[MNG-7271] - Code Improvement 2021-09-29 22:27:07 +02:00
Guillaume Nodet c8d5ba3705 [MNG-7235] Speed improvements when calculating the sorted project graph
This closes #532
2021-09-27 20:17:08 +02:00
Tamas Cservenak 6c7d105916
[MNG-7264] Convert maven-core default-bindings to Providers (#550)
This change get rids of Plexus components defined in META-INF/plexus/default-bindings.xml and converts them to Providers.
2021-09-26 13:34:27 +02:00
Tamas Cservenak 6c343136b0
Merge pull request #549 from apache/drop-components-xml
[MNG-7263] Convert maven-core components XML to Providers
2021-09-25 12:29:35 +02:00
Tamas Cservenak 9f348e98e5 PlexusCipher should be injected 2021-09-25 11:54:54 +02:00
Tamas Cservenak 2926f033cb [MNG-7265] Convert maven-core artifact-handlers.xml to Providers
Gets rid of another set of Plexus components defined in XML.

Changes:
* DefaultArtifactHandler was declared as component but it is not needed; not
  a component anymore
* Sanitize DefaultArtifactHandler class but retain Plexus XML provisioning
  compatiblity (as plugins does have it declared in Plexus XML) and update its
  uses within Maven code (be explicit)
* Use new "full" constructors in handler providers for easier comparison and
  inspection (be explicit)

This closes #551
2021-09-24 22:09:23 +02:00
Sungpeo Kook b7182873e9 Default value of checksumPolicy depends on the Maven version
This closes #529
2021-09-24 21:25:25 +02:00
Sungpeo Kook 98b69beced deleted duplication in checksum description 2021-09-24 21:25:05 +02:00
Sungpeo Kook 9539227201 set "fail" as a default option for checksumPolicy in documents 2021-09-24 21:25:05 +02:00
Sungpeo Kook 9735fffd98 added an "ignore" option for checksumPolicy in documents 2021-09-24 21:25:05 +02:00
Gary Gregory ad2e084ba8 [MNG-7164] Add constructor MojoExecutionException(Throwable)
This closes #474
2021-09-24 21:05:08 +02:00
Guoxiong Li 5fd536853f [MNG-7248] Fix warnings issued by dependency:analyze
This changeset does intentionally not touch Guice and its dependencies
as well as test-scoped dependencies.

This closes #546
2021-09-24 20:55:03 +02:00
Tamas Cservenak c647dbc665 Get rid of guava 2021-09-23 21:19:50 +02:00
Tamas Cservenak 4cb8909336 Convert maven-core components XML to Providers
This change get's rid of component.xml in maven-core
2021-09-23 11:13:46 +02:00
Michael Osipov f50de4ce9e [MNG-7210] Deprecate mavenrc_{pre,post}.{bat,cmd} scripts
This closes #545
2021-09-19 21:05:54 +02:00
George Gastaldi a1ba33069f [MNG-7253] Display relocation message defined in model
Move logging to DefaultArtifactDescriptorReader

This closes #543
2021-09-18 20:39:37 +02:00
Michael Osipov 8c297e93a3 [MNG-7254] Expand Windows native libraries for Jansi due to JDK-8195129 (workaround)
This closes #542
2021-09-16 22:11:08 +02:00
Guillaume Nodet 23ffe3349f [MNG-7236] The DefaultPluginVersionResolver should cache results for the session 2021-09-14 20:10:13 +02:00
Michael Osipov 6b6589bf1c [MNG-7219] [Regression] plexus-cipher missing from transitive dependencies 2021-09-14 19:21:08 +02:00
Falko Modler a6e462b53a [MNG-7251] Fix threadLocalArtifactsHolder leaking into cloned project
This closes #535
2021-09-14 17:22:42 +02:00
Tamas Cservenak 406c525ec4 [MNG-7250] Upgrade Sisu Inject/Plexus to 0.3.5
Since we have replaced the old JSR 250 library with javax.annotation library we
go straight to 1.3.2 because Maven Resolver 1.7.0 introduced this already as a
transitive dependency in fc806a25eb.
The only difference between version 1.2 and 1.3.2 is a Java upgrade from 6 to 8.

This closes #539
2021-09-13 22:57:31 +02:00
Michael Osipov aa30d9690b [MNG-7247] Upgrade Maven Resolver to 1.7.2 2021-09-12 12:10:35 +02:00
Tamas Cservenak 067171d28a [MNG-7246] Upgrade Plexus Cipher and Sec Dispatcher to 2.0
Both plexus-cipher and plexus-sec-dispatcher have had a
groupId change, but plexus-cipher change was implemented
for 1.8 version.

Latest versions of artifacts are 2.0. This PR
ups plexus-cipher version and adds proper changes
for plexus-sec-dispatcher groupId change.

This closes #534
2021-09-11 10:52:20 +02:00
Mickael Istria 76d7f58a61
[MNG-7226] DefaultModelBuilder.buildRawModel fails (#528)
as it ignores pom file
2021-09-03 09:56:30 +02:00
Hervé Boutemy 92d2c2e3b4 [MNG-7209] Document user mavenrc.cmd in Windows command script 2021-08-20 02:26:03 +02:00
Hervé Boutemy b20bfb1a08 [MNG-7208] Document system-wide mavenrc.cmd in Windows command script 2021-08-20 02:12:50 +02:00
Michael Osipov 0682a1cc0a [MNG-7208] Introduce a system-wide mavenrc.cmd in Windows command script
This closes #523
2021-08-18 09:42:51 +02:00
Michael Osipov 48a9e04c5e [MNG-7209] Introduce a user mavenrc.cmd in Windows command script
This closes #522
2021-08-18 09:40:47 +02:00
Mickael Istria f594c0b916 Add ModelSource test for MNG-5669
This closes #525
2021-08-17 10:59:48 +02:00
Michael Osipov 0137f35c1b Document Maven 3.8.2 release 2021-08-13 22:01:16 +02:00
Michael Osipov 5acdfb6650 [MNG-7205] Simplify/unify Cygwin/MingGW handling in startup scripts
This closes #520
2021-08-02 21:09:55 +02:00
Michael Osipov a2a3df3d02 [MNG-7203] Introduce a long option --verbose and deprecate --debug
This closes #519
2021-08-01 22:33:33 +02:00
Michael Osipov 750cb6cb15 [MNG-7199] MAVENHOME_CONFIG var in mvnlauncher script improperly handles two options at once
This closes #518
2021-08-01 15:38:37 +02:00
Arnaud Heritier ef62d7a4bd
Merge pull request #516 from aheritier/ci-maven
[chore] - Update CI environment
2021-07-27 16:33:49 +02:00
Michael Osipov 06bc508727 [MNG-7198] Upgrade SLF4J to 1.7.32 2021-07-27 14:58:11 +02:00
Arnaud Héritier 43eb189a92
[chore] Update CI environment
Replace ci-builds by ci-maven
2021-07-26 15:48:10 +02:00
Michael Osipov 52c12dab44 [MNG-7195] Rework JAVA_HOME handling
Adjust JAVA_HOME for mvnw and mvnwDebug
2021-07-26 00:39:38 +02:00
Michael Osipov a21be1d231 [MNG-7195] Rework JAVA_HOME handling
Dramatically simplify/rework handling by leaving setting JAVA_HOME to
the user and try to load java(1) command from it. Technically Maven itself does
not require JAVA_HOME to be set. If not set, use java(1) command from
PATH on both Windows and POSIX-like systems.

This closes #514
2021-07-25 22:33:33 +02:00
Michael Osipov 6c67c9d0a6 [MNG-7197] Simplify exit code handling in Windows command startup script
This closes #512
2021-07-25 14:55:39 +02:00
Michael Osipov 021e53f627 [MNG-7196] Upgrade Jansi to 2.3.4 2021-07-25 14:32:31 +02:00
Michael Osipov 5fa834f78b [MNG-7010] Omit "NB: JAVA_HOME should point to a JDK not a JRE"
This closes #512
2021-07-25 14:23:00 +02:00
Elliotte Rusty Harold 9c69c78531 remove unused property
This closes #467
2021-07-24 00:01:41 +02:00
Michael Osipov a2ab329edc Warn also on Windows when JAVA_HOME isn't set 2021-07-23 21:05:33 +02:00
Michael Osipov f7a775b79a [MNG-6648] 'mavenrc_pre' script does not receive arguments like mavenrc in Bourne shell does
This closes #511
2021-07-23 20:06:58 +02:00