Commit Graph

440 Commits

Author SHA1 Message Date
Guillaume Nodet 0e82026f2a [maven-release-plugin] prepare for next development iteration 2022-12-12 11:37:35 +01:00
Guillaume Nodet 2ccf57baa5 [maven-release-plugin] prepare release maven-4.0.0-alpha-3 2022-12-12 11:36:07 +01:00
Guillaume Nodet de19cfcd2b [MNG-7601] Reformat sources 2022-11-22 14:26:01 +01:00
Michael Osipov 9c60138915 [MNG-7556] Clean up notion between user properties and system properties
This closes #810
2022-10-29 20:44:15 +02:00
Guillaume Nodet 77312f323b [maven-release-plugin] prepare for next development iteration 2022-10-15 01:41:39 +02:00
Guillaume Nodet c07700ffc9 [maven-release-plugin] prepare release maven-4.0.0-alpha-2 2022-10-15 01:41:31 +02:00
Guillaume Nodet 66851463f6 [maven-release-plugin] prepare for next development iteration 2022-10-14 22:57:05 +02:00
Guillaume Nodet 0d973fb624 [maven-release-plugin] prepare release maven-4.0.0-alpha-1 2022-10-14 22:36:41 +02:00
Guillaume Nodet 2a9f39336c
[MNG-7553] New clean API with immutable model (#703) 2022-10-02 10:41:25 +02:00
Sylwester Lachiewicz 5502c0c8db [MNG-7502] Upgrade to Guice 5.1.0 2022-09-10 21:27:25 +02:00
Michael Osipov e296400fa5 [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 21:41:57 +02:00
Marc Wrobel 5ce5591ae3 Fix minor typos
Fix various minor typos in :

- project documentations,
- javadoc and comments,
- test files.
2022-07-18 19:22:19 +02:00
Rafael Chaves 8ff8ebcaea [MNG-7515] Cannot see a dependency tree for apache-maven module
This closes #770
2022-07-18 18:01:23 +02:00
Michael Osipov 3d45167203 [MNG-7488] Upgrade SLF4J to 1.7.36 2022-05-30 23:07:00 +02:00
Tamas Cservenak ca9aa8f4f3
[MNG-7466] Align assembly XSD version with plugin used (#728)
As title says, XSD is ancient old 2.0.0, while all
latest assembly plugins uses 2.1.0.

Not that this matters or changes anything at all,
this is more about correctness.
2022-04-27 15:14:24 +02:00
Tamas Cservenak 551009ab49
[MNG-7454] Include resolver-transport-http in Maven (#720)
Addendum to be2b7f890d98af20eb0753650b6605a68a97ac05:
* fix property name to align with existing ones
* fix logging configuration as no more shaded httpClient
* fix constant names
2022-04-16 18:19:23 +02:00
Tamas Cservenak be2b7f890d
[MNG-7454] Include resolver-transport-http in Maven (#711)
But keep Wagon as default transport. This PR merely includes
resolver http and file transport and switches wagon-http
to non-shaded one.

Changes:
* switch to non-shaded wagon-http (as httpClient is now shared)
* include resolver http and file transport
* override resolver default behaviour (native transport preferred over wagon, when both on classpath)
* provide simplistic means to choose transport

The chosen transport can be seen in debug (-X) output on line
`[DEBUG] Using transporter XXX...`

The `-Dmaven.transport` simplistic switch can be used to choose transport:
* not set: default, that is Wagon
* `wagon`: explicitly sets Wagon
* `resolver`: explicitly sets resolver native transports (file and http)
* `auto`: relies on resolver "auto discovery" (priorities, etc). This is MUST to keep transport pluggable with 3rd party transports. In fact, this was the default so far in Maven, along with the fact that native resolver transports were not included (as resolver prefers native ones over Wagon).
2022-04-13 12:51:37 +02:00
Michael Osipov e8c35ae4ab [MNG-7206] Properly prioritize JVM options from MAVEN_OPTS and jvm.config
This closes #638
2022-03-05 23:52:54 +01:00
Michael Osipov 0a8bd727ac [MNG-7370] Upgrade Maven Wagon to 3.5.1
This closes #644
2021-12-28 22:20:45 +01:00
Michael Osipov 951b5ee95f Fix SLF4J license link 2021-12-26 22:12:10 +01:00
Michael Osipov 6257b33142 [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 #637
2021-12-21 10:29:19 +01:00
Michael Osipov e6287b4701 Improve startup scripts
This closes #636
* Properly name jump labels for jvm.config in cmd
* Supply one arg per line
2021-12-20 21:24:40 +01:00
Hervé Boutemy 2f81b7d93b [MNG-6914] move assembly descriptors to src/assembly 2021-10-16 19:44:39 +02:00
Hervé Boutemy ede86ab4b6 [MNG-6914] move apache-maven-wrapper to its own separate Maven module 2021-10-16 19:44:39 +02:00
Hervé Boutemy b58d8b3a4f [MNG-6914] move mvnw scripts from maven/shared to wrapper/shared 2021-10-16 19:44:39 +02:00
Hervé Boutemy 5be4192ded [MNG-6914] drop tar.gz archives for wrapper install distributions 2021-10-16 19:44:39 +02:00
Hervé Boutemy bf59026554 [MNG-6914] rename MAVEN_LAUNCHER to LAUNCHER_CLASS (from LAUNCHER_JAR) 2021-10-16 19:44:39 +02:00
Hervé Boutemy bb0fed9f40 [MNG-6914] rename .mvn hidden directory in source to mvn 2021-10-16 19:44:39 +02:00
Jonathan Dowland 8852b87412 [MNG-7270] Switch to shell alternative to "which"
In some circumstances the init script calls `which`, which may or may not be
available on the host system. Instead, use `command -v`, which is nearly
equivalent. One area it differs is if the command being queried is defined as
a shell alias. To avoid that, call `unset -f command` to avoid the situation
where "command" has been re-defined as a shell function.

See here for more information on this approach:
<https://pubs.opengroup.org/onlinepubs/009695399/utilities/command.html>

Tested with bash, sh (bash invoked as sh), posh, dash, zsh and mksh.

This closes #556
2021-10-11 22:17:23 +02:00
Hervé Boutemy 25796220ad fix indentation 2021-10-10 19:36:15 +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
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
Michael Osipov 6b6589bf1c [MNG-7219] [Regression] plexus-cipher missing from transitive dependencies 2021-09-14 19:21:08 +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
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
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 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
Michael Osipov 06bc508727 [MNG-7198] Upgrade SLF4J to 1.7.32 2021-07-27 14:58:11 +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 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
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
Michael Osipov 1328d6ef7f [MNG-7192] Remove unsed MAVEN_CMD_LINE_ARGS environment variable in startup scripts
This closes #492
2021-07-22 16:33:40 +02:00
Michael Osipov 6b37fcbda8 [MNG-7191] Remove undocumented environment variable MAVEN_CONFIG in startup scripts 2021-07-22 16:12:09 +02:00
Michael Osipov b8cdac5573 [MNG-7189] Remove undocumented environment variable MAVEN_BASEDIR in startup scripts
This closes #490
2021-07-22 10:30:40 +02:00