Commit Graph

1143 Commits

Author SHA1 Message Date
Michael Osipov 2c37a7a38e Simplify args help 2021-10-17 12:44:14 +02:00
Hervé Boutemy f46a9131d5 fix javadoc errors 2021-10-17 12:07:50 +02:00
Arturo Bernal d61fcf7da1 [MNG-7288] Remove redundant local variables
Closes #569
2021-10-10 12:42:12 +02:00
Tamas Cservenak c3962c1a6c
[MNG-7278] Clean up core logging (#562)
We had all kind of Loggers in Core, some Plexus
injected, some acquired using SLF4J LoggerFactory,
some static, some final, etc.

This PR aligns all those uses to SLF4J finals.

Notices:
* maven-core does NOT use Plexus Logger anymore
* did not touch maven-compat
2021-10-02 20:33:55 +02:00
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
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
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
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 0696cf14ad [MNG-7131] maven.config doesn't handle arguments with spaces in them
Since we don't have a clear specification of the file format change
reading of the file to a one-arg-per-line basis just like Java's
@argfiles or Python's argparse would handle it.
Consider that jvm.config suffers from the same issue its parsing is not
portable between Bourne shell and Windows Command prompt.
2021-07-21 14:31:12 +02:00
Michael Osipov 1fc605dd69 [MNG-7181] Make --version support -q 2021-07-03 19:17:19 +02:00
Michael Osipov a70828c737 [MNG-7180] Make --color option behave more like BSD/GNU grep's --color option 2021-07-03 18:28:31 +02:00
Guillaume Nodet a20230829c [MNG-6915] Adapt the logging width to the terminal width, including sensible limits.
Slightly modified version of e47d647eee
2021-05-22 10:49:42 +02:00
Guillaume Nodet 3e917677e4 [MNG-7032] Evaluate --help and --version after configuring the logging/color 2021-05-06 09:54:43 +02:00
Guillaume Nodet 59c5466c40 [MNG-7080] Add a --color option to simplify color support 2021-05-06 09:54:03 +02:00
Guillaume Nodet 5d6c6e2537 [MNG-6915] Format help according to the terminal width 2021-05-05 08:34:32 +02:00
Martin Kanters 9c631ab286 Extend mvn -h for various features of Maven 4
Closes #463.
2021-04-05 19:41:28 +02:00
Carlos Chacin 276c6a8dc4 [MNG-7127] fix MavenCliTest.testStyleColors test in JDK 16
The MavenCliTest.testStyleColors is not failing when the build
is under JDK 8 or JDK 11.

After changing to JDK 16, the test fails, this commit is to fix
the NullPointerException.

Tested on JDK 8, 11 adn 16 with:

`mvn clean verify`
2021-03-27 19:15:18 +01:00
Maarten Mulders c3cf29438e [MNG-6511] Optional project selection
Closes #446.
2021-03-22 14:41:59 +01:00
Hervé Boutemy 441cf73c06 improve documentation 2021-02-20 19:34:43 +01:00
Guillaume Nodet 619973b91c [MNG-7063] Infinite loop using Shade plugin and JUnit 5 dependency
Signed-off-by: rfscholte <rfscholte@apache.org>
2021-02-14 15:52:04 +01:00
boris-unckel 1e575a2bd7 [MNG-7068] Active dependency management for Google Guice/Guava
This closes #462
2021-02-02 14:17:43 +01:00
Maarten Mulders 8defd16965 [MNG-7051] Optionally skip non-existing profiles and break on missing required profiles. 2021-02-02 08:20:21 +01:00
Guillaume Nodet bb916d0784 [MNG-7035] Migrate unit tests to Unit 5
Signed-off-by: rfscholte <rfscholte@apache.org>
2021-01-15 15:07:06 +01:00
Sylwester Lachiewicz b877445cb9 [MNG-6909] Convert to JSR330 in tests - maven-core
Closes #346
2021-01-08 03:55:24 +01:00
Michael Osipov a6d5e86155 Use consistent static final loggers 2021-01-05 15:47:20 +01:00
Michael Osipov 2201698234 Apply consistent log argument quoting for sigle- and multi-valued args 2021-01-05 15:47:20 +01:00
Karl Heinz Marbaise 538de4d192 [MNG-6888] Remove deprecated command line options
This closes #418
2021-01-01 20:57:23 +01:00
Michael Osipov 31ad2ff43a Use system line separator wherever possible
This closes #424
2021-01-01 12:55:01 +01:00
Michael Osipov 673a7d1fef Trim trailing whitespace 2020-12-24 19:09:10 +01:00
rfscholte 3736be9c15 Updating version in preparation for Maven 4 2020-11-27 12:22:47 +01:00
Sylwester Lachiewicz 449e6dc9db [MNG-6873] update junit dependency to 4.13.1 - also in unit tests 2020-10-27 11:08:56 +01:00
Maarten Mulders df67c00fba [MNG-6991] Restore how the local repository is determined
The refactoring of MavenCli.populateRequest introduced
a subtle bug. It would select ~/.m2/repository as the
local repository instead of something that is configured
in ~/.m2/settings.xml.

Closes #378.
2020-09-29 20:33:25 +02:00
Maarten Mulders ac80f5c2b9 Refactor MavenCli.populateRequest 2020-09-20 11:33:53 +02:00
Martin Kanters 5739b12aa9 Resume from generates misleading hint when multiple projects fail.
Log the topologically sorted first failed project instead of the chronologically first failed project.
Resume from generates misleading hint when multiple projects fail.
Fixed a checkstyle finding.
Removed a trailing space in the -r hint
2020-07-24 10:07:25 +02:00
Maarten Mulders 117cfde44e [MNG-5760] Several fixes for the --resume feature.
BuildResumptionDataRepository is not used in MavenCli

Make setResume() on MavenExecutionRequest a traditional setter

Fix resolution of resume.properties file

Add unit test for DefaultBuildResumptionDataRepository#applyResumptionData

Avoid storing and using an empty excludedProjects field in the resume.properties file.

Avoid star imports

Don't create a unneeded Path when resolving resume.properties

Support the scenario where the first project was failed, but subsequent projects succeeded. (e.g. by fail-at-end or parallel builds)

Maven invocations without project shouldn't fail
2020-07-15 08:58:45 +02:00
rfscholte d35573e06c [MNG-5760] Add `-r/--resume` to automatically resume from the last failure point
Author: Martin Kanters <mkanters93@gmail.com>
2020-06-21 11:21:36 +02:00
huangkaifeng ba16eb1b39 [MNG-6873] Align JUnit version to 4.13
Closes #331
2020-06-21 11:16:50 +02:00
Olivier Lamy 24da558d5a [MNG-6886] upgrade plexus-cipher to 1.8 and update changed groupId (#335)
Signed-off-by: olivier lamy <olamy@apache.org>
2020-06-21 11:16:35 +02:00
Joseph Walton 0f519b4af4 [MNG-5577] Simplify tests to reduce use of wiring.
- Reduce the use of wiring in unit tests
- Enable class scanning for tests that require it.
- Remove test and wiring that's not used.
2020-06-21 11:16:28 +02:00
dependabot-preview[bot] 45e91f03b0 [MNG-6878] Bump guice from 4.2.2 to 4.2.3
Bumps [guice](https://github.com/google/guice) from 4.2.2 to 4.2.3.
- [Release notes](https://github.com/google/guice/releases)
- [Commits](https://github.com/google/guice/compare/4.2.2...4.2.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-22 10:09:35 +01:00
Michael Osipov 720e46d91d Revert "[MNG-5587] When the build fails emit any errors without the user having to specify -e or -X"
This reverts commit 838c196359.
2020-01-28 10:13:42 +01:00
Sylwester Lachiewicz cdb2cd0df3 [MNG-6071] Normalize relative paths for working directory 2020-01-26 17:25:38 +01:00
thelproad 96e11e1c84 [MNG-6855] Remove redundant code
Closes #280
2020-01-26 11:13:26 +01:00
Lipmanpoi e6c897efb6 [MNG-6855] Simplify some code
Closes #279
2020-01-26 11:13:18 +01:00
Rostislav Krasny ce35eff448 [MNG-6853] - Don't box primitives where it's not needed
Closes #318
2020-01-25 20:13:27 +01:00
Gabriel Belingueres 838c196359 [MNG-5587] When the build fails emit any errors without the user having to specify -e or -X
This closes #283
2020-01-13 22:28:26 +01:00
Artem Krosheninnikov 39492281b2 [MNG-6847] Explicit type can be replaced by the diamond operator
This closes #315
2020-01-13 20:57:35 +01:00
Artem Krosheninnikov 735b72fcf1 [MNG-6844] Use StandardCharsets and remove outdated @SuppressWarnings
This closes #312
2020-01-09 18:09:44 +01:00
Martin Kanters d2510749d8 [MNG-6065] Create option --fail-on-severity 2019-12-27 10:56:55 +01:00
Karl Heinz Marbaise 06842d6b96
[MNG-6826] - Remove condition check for JDK8+ in FileSizeFormatTest
- The conditions to check for JDK8+ in test cases is
   obsolete with the lift to JDK8.
2019-12-15 04:16:49 +01:00