Guillaume Nodet
4e38415b67
[MNG-7624] Use groupId:artifactId instead of empty goal ( #911 )
2022-12-15 21:18:29 +01:00
Konrad Windszus
ce18c56206
[MNG-7598] Enforce binary backwards-compatibility ( #874 )
...
For now only enabled in core and plugin-api
Co-authored-by: Guillaume Nodet <gnodet@gmail.com>
2022-12-15 10:50:39 +01:00
Guillaume Nodet
dc47da4366
[MNG-7618] Use goalPrefix instead of artifactId 4to display mojos being executed ( #898 )
2022-12-05 16:46:15 +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
Martin Kanters
c178b2fc1a
[MNG-7098] Keep the project counter intact when resuming a multi-module project. ( #804 )
2022-10-14 10:29:08 +02:00
Guillaume Nodet
3f90e7028e
Restore compatibility on SettingsBuilder, ToolchainsBuilder and MojoDescriptorCreator ( #820 )
2022-10-11 16:31:57 +02:00
Guillaume Nodet
2a9f39336c
[MNG-7553] New clean API with immutable model ( #703 )
2022-10-02 10:41:25 +02:00
Martin Kanters
1ca65c79fa
Revert "[MNG-7098] Keep the project counter intact when resuming a multi-module project."
...
This reverts commit 4a06f1f5c3
.
2022-09-16 14:51:55 +02:00
Martin Kanters
4a06f1f5c3
[MNG-7098] Keep the project counter intact when resuming a multi-module project.
2022-09-16 14:38:44 +02:00
Marc Wrobel
8125b3131f
Fix typos in code
...
Fix minor typos in code :
- test method names,
- method parameter names,
- variable names.
2022-07-19 00:45:13 +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
Josef Cacek
03b1faff7e
[MNG-7511] Ensure the degreeOfConcurrency is a positive number in MavenExecutionRequest
...
This closes #767
2022-07-18 13:35:27 +02:00
Hervé Boutemy
4e88d62ab2
[MNG-7501] add relative path to pom.xml in module build start output
2022-06-26 18:46:20 +02:00
Guillaume Nodet
415eaf31de
[MNG-7160] Ability to customize core extensions classloaders ( #616 )
2022-06-15 10:43:17 +02:00
Christoph Läubrich
2798ee9196
[MNG-7395] Support interpolation in extensions.xml
...
This adds support for property interpolation in extensions.xml to allow
advanced use cases where one wants to contribute certain things via the
commandline.
This closes #665
2022-02-19 22:01:10 +01:00
Giovanni van der Schelde
4476026c52
[MNG-7217] Update Commons CLI to version 1.5.0
...
Closes #605
2022-01-08 19:57:39 +01:00
Guillaume Nodet
b4773576a8
[MNG-6326] Make the build fail if core extensions can not be loaded ( #648 )
2022-01-07 10:03:15 +01:00
Guillaume Nodet
3a06530dbc
Remove duplicate call to longOpt ( #626 )
2021-12-02 11:43:23 +01:00
Julian de Bruin
98a6c4f14c
[MNG-7340] Option fail-on-severity takes one argument
...
Closes #620
2021-11-25 11:35:01 +01:00
Giovanni van der Schelde
f43f9f8a3b
[MNG-7332] No longer support --define
...
The reason is that it is broken in Commons CLI and -D just works.
We don't want to work around symptoms. Another point is that
java(1) does not have --define either so we'd like to keep that
consistent.
Closes #611 .
2021-11-15 10:46:27 +01:00
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
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
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
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
658ad90b38
[MNG-5760] Add `-r/--resume` to automatically resume from the last failure point
...
Author: Martin Kanters <mkanters93@gmail.com>
2020-06-20 13:55:48 +02:00
huangkaifeng
5397fb66e7
[MNG-6873] Align JUnit version to 4.13
...
Closes #331
2020-05-09 21:19:41 +02:00
Joseph Walton
b962ff361a
[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-04-01 19:40:37 +02: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
Artem Krosheninnikov
3332f4dbcc
[MNG-6816] Prefer System.lineSeparator() over system properties
...
This closes #300
2019-12-10 09:43:47 +01:00
Karl Heinz Marbaise
f7ca74da53
[MNG-6812] - Remove unused files from maven-embedder
2019-12-07 19:57:14 +01:00
Hervé Boutemy
53ccee3486
[MNG-6778] use https for schema location
2019-11-09 13:45:14 +01:00
Anatoly Zaretsky
877fcc9cd5
[MNG-6777] - Remove duplicate resolveFile methods
...
o MavenCli.resolveFile and
configuration.SettingsXmlConfigurationProcessor.resolveFile
utility methods are identical. Moving them into separate
ResolveFile class.
2019-10-10 19:53:44 +02:00
Michael Osipov
400e7e5979
[MNG-6747] Generalize 'resume from' message when build reactor fails
2019-08-27 09:08:57 +02:00
Joseph Walton
353d3eaa8f
[MNG-6685] Convert Maven Model Builder to JSR 330
...
This closes #256
2019-06-23 00:20:54 +02:00
Sylwester Lachiewicz
59bd396e6e
[MNG-6686] Convert Maven Embedder to JSR 330
...
This closes #257
2019-06-21 23:57:49 +02:00
rfscholte
ff8c5c8706
MNG-6069: unittest with compact and spaced -D options
2019-05-17 22:09:48 +02:00
Joseph Walton
658301276a
[MNG-6069] Avoid (some) deprecated commons-cli methods
...
Switch from OptionBuilder to Option.Builder. Confirm by
inspection that the resulting Option objects are the same.
For now, leave GnuParser. Despite the upgrade advice in the GnuParser
Javadoc ("since 1.3, use the DefaultParser instead"), it behaves
differently.
Closes #247
2019-05-17 22:09:48 +02:00
Raymond Auge
95401cf7a6
[MNG-6605] Unable to suppress download/upload messages (in interactive mode)
...
This closes #239
2019-04-01 08:47:10 +02:00
Sylwester Lachiewicz
b7249aff22
Revert [MNG-6069] Migrate to non deprecated parts of Commons CLI
...
This reverts commit 396291bba0
due to regression
2019-02-01 21:41:23 +01:00
Guy Brand
15c647182a
[MNG-6558] ToolchainsBuildingResult event is not sent on EventSpy
...
Closes #231
2019-01-27 12:01:35 +01:00
Sylwester Lachiewicz
396291bba0
[MNG-6069] Migrate to non deprecated parts of Commons CLI ( #153 )
2019-01-13 21:19:39 +01:00
HoaPhan
ba74b96633
[MNG-6492] - Minor improvement on Array construction, conversion performance
2018-10-24 18:07:13 +02:00
Karl Heinz Marbaise
23f5c88d11
[MNG-6391] - Printout version of last built module in reactor build
2018-10-20 10:12:45 +02:00
Christian Schulte
44826ab446
[MNG-6164] Collections inconsistently immutable
...
Make non-empty collections returned immutable just like those returned by
java.util.Collections.
2018-10-09 22:12:50 +02:00
rfscholte
72dca39807
Replace org.apache.commons.lang3.Validate#notNull with java.util.Objects#requireNonNull
2018-07-15 10:36:08 +02:00
Łukasz Dywicki
864d180edf
[MNG-6410] Add groupId to --resume-from suggestion if artifactId is not unique in reactor
...
This closes #166
2018-05-20 21:50:17 +02:00
Michael Osipov
9abfc88425
[MNG-5756] Java home output in mvn -v is misleading
...
The Java home displayed corresponds to the property 'java.home' which points to
the JRE installation running the given Maven instance. It is not the value of
$JAVA_HOME which causes confusion.
Ref: https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html
This closes #115 and #117 .
2018-05-07 23:42:20 +02:00
Karl Heinz Marbaise
9c118d34c9
[MNG-6363] - Remove secret thread configuration property from code
2018-04-22 22:55:33 +02:00
Karl Heinz Marbaise
8f619acd3a
[MNG-6352] - Printout version information at the end of the build
2018-02-17 19:27:52 +01:00
rfscholte
cd34b08df1
Merge remote-tracking branch 'remotes/origin/MNG-6353'
2018-02-11 18:29:43 +01:00
Sylwester Lachiewicz
b8c06e61ab
Remove Google Guava usage (move to Java7)
2018-02-11 11:54:17 +01:00
Sylwester Lachiewicz
d925081794
Reduce number of global checkstyle rule violations
...
Fix code for following checkstyle rules:
ConstantName, FileLength, InnerAssignment, JavadocType, MagicNumber, MethodLength, MethodName, NewlineAtEndOfFile, ParameterNumber, RedundantThrows, VisibilityModifier
Fixes #149
2018-02-11 11:41:16 +01:00
rfscholte
22f782aecd
[MNG-6353] Upgrade maven-shared-utils to 3.2.1
...
Add o.a.m.s.u.logging.MessageUtils.registerShutdownHook() to prevent ANSI from staying active when killing an active process
2018-02-10 15:28:59 +01:00
rfscholte
24b8820f08
[MNG-6353] Upgrade maven-shared-utils to 3.2.1
2018-02-10 15:17:03 +01:00
Hervé Boutemy
0dc70cc691
upgrade m-site-p to 3.7 + Fluido 1.7 + edit button
2018-02-10 11:42:33 +01:00
Hervé Boutemy
cf7b0a3ec0
fixed new issues reported by Checkstyle 6.18
2018-02-10 11:42:33 +01:00
Karl Heinz Marbaise
99e66229ac
[MNG-6340] [Performance]To make System.gc() call configurable in target
...
summary code
o Just removed the System.gc() call.
2018-02-04 11:27:33 +01:00
Hervé Boutemy
58cf490c69
[MNG-6308] added packaging in Building message footer and summary
2018-01-06 22:40:30 +01:00
Hervé Boutemy
c2e3b3e301
[MNG-6308] display groupId:artifactId in Building message header
2018-01-06 22:40:29 +01:00
Hervé Boutemy
98d2e197d1
[MNG-6308] added unit test for "Building" message
2018-01-06 22:40:29 +01:00
rfscholte
909fb7c59b
Merge branch 'MNG-6296'
2017-11-21 23:32:27 +01:00
Robin Müller
b2afafe5a2
Parse properties before configuring the logging settings
2017-11-17 16:41:38 +01:00
Hervé Boutemy
f5f76c70e1
[MNG-6302] display progress at end of "Building" line
2017-11-15 03:54:15 +01:00
Romain Manni-Bucau
4d49d3b05b
logging the module count to let the user identify how many module are still to be executed/processed
2017-11-09 09:30:47 +01:00
rfscholte
785bad693c
[MNG-6220] Add CLI options to control color output
...
Introduce -Dstyle.color=[always|never|auto]
2017-08-15 21:48:57 +02:00
Michael Osipov
b100257517
[MNG-5457] Show repository id when downloading or uploading from/to a remote repository
2017-07-12 20:10:47 +02:00
Dan Tran
a7dddcb876
[MNG-6084] Support JSR 250 annotations
2017-05-25 20:05:35 +02:00
Hervé Boutemy
6182a2083f
[MNG-6186] use enhanced HawtJNI library loading (remove previous hack)
2017-05-09 21:08:13 +02:00
Igor Fedorenko
c2c6259de6
MNG-6210 allow maven custom guice scopes in .mvn/extensions
...
Signed-off-by: Igor Fedorenko <ifedorenko@apache.org>
2017-04-14 10:38:45 -07:00
Hervé Boutemy
08f3c76a09
improved description of styled message API
2017-04-08 08:50:55 +02:00
Stefan Eicher
4c6d3a3462
Minor cleanup in MavenCli.java
...
There is some unnecessary code in the MavenCli.java from line #1465 to #1474 .
The functionality has been moved to line #1215 .
Signed-off-by: Karl Heinz Marbaise <khmarbaise@apache.org>
2017-04-05 23:51:26 +02:00
Stephen Connolly
68e38e5086
Make it possible to run unit tests from an IDE
2017-03-19 21:55:46 +00:00
rfscholte
f661fc298e
[MNG-6078] Confirm commons-cli 1.4-SNAPSHOT before official release
2017-03-18 12:59:51 +01:00
rfscholte
0e7e3eeb59
[MNG-6176] Javadoc errors prevent release with Java 8
...
Upgrade to modello-1.9.1
Fix javadoc errors in tests
2017-03-18 12:55:05 +01:00
Hervé Boutemy
181b0215aa
[MNG-6115] prevent JAnsi from writing temp native files to lib/ext
2017-03-12 12:12:16 +01:00
Karl Heinz Marbaise
809ba34055
Code improvement.
2017-03-11 20:53:18 +01:00
rfscholte
587317b009
[MNG-6176] Javadoc errors prevent release with Java 8
...
Upgrade modello to 1.9.0
Fix invalid Javadoc
2017-03-10 16:17:28 +01:00
Hervé Boutemy
0db5e32cf5
fixed documentation errors
2017-02-23 19:07:58 +01:00
Stephen Connolly
dc9c4db449
[MNG-6078] Perform a proper merge of the two sources of command line arguments
...
- Needed to extend Commons CLI's CommandLine just to perform the merged
2017-02-23 12:44:34 +00:00
Stephen Connolly
5885e70e24
[MNG-6078] Undo the order reversal hack
...
- ca43030313
used a hack to reverse the order of arguments
- The side effect of the hack is that the first named system property value on the CLI would win
- The side-effect is causing a lot of integration test builds to fail and will likely have other unintended consequences
- Correct fix is to put system properties at the end.
- If this change passes the integration tests then it will need to be augmented to correctly round-trip the CLI options
as there is the potential that somebody may legitimately be passing an arg parameter a value that starts with -D
for example 'mvn -ep -Dsecretpassword' or 'mvn -l -D.log' but given that this requires a parse and unparse
to handle the escaping, I want to get evidence that the integration tests pass first
2017-02-23 12:44:34 +00:00
August Shi
e6217a4555
Fixing misspellings in test names
2017-02-18 18:29:19 +01:00
Michael Osipov
b66bdb9cbc
[MNG-6150] Javadoc improvements for 3.5.0
...
* Remove duplicate plugin configuration
* Add workaround for Javadoc locale
* Clean up errors reported by Javadoc 7
Note: Javadoc 8 fails immediately because Modello generates invalid
Javadoc
2017-02-15 17:30:46 +01:00
Alex Henrie
8d91726f78
[MNG-5934] String handling issues identified by PMD
2017-02-11 14:08:24 +01:00
Arnaud Heritier
23ceca36e7
[MNG-5961] Fix the SLF4J logger factory implementation used for LOG4J2
2017-02-06 00:26:14 +01:00
Josh Soref
1740265984
[MNG-6146] Several small stylistic and spelling improvements to code and documentation
...
Spelling fixes:
* system
* tokenizer
* toolchain
* trailing
* transitive
* unsupported
* version
* artifact
* attachment
* codehaus
* colleagues
* comparison
* concurrency
* configure
* creation
* dependency
* descriptor
* downstream
* efficient
* e.g.
* elements
* encountered
* encounters
* environments
* executed
* explicitly
* happens
* hierarchical
* hierarchy
* ignore
* implemented
* implementers
* independence
* indicates
* inheritance
* inherited
* inherits
* install
* interface
* javascript
* laziness
* management
* maven
* metadata
* mgmt
* minimalist
* nonexistent
* objects
* overridden
* print
* project
* properties
* recessive
* referring
* repository
* representation
* retrieval
* retrieve
* rigorous
* should
* spontaneously
* subsequent
Literal fixes:
* use static final values
Style fixes:
* use the proper term for char U+002D (-) hyphen(-minus) instead of dash
This closes #100
2017-02-03 10:12:28 +01:00
Karl Heinz Marbaise
ca43030313
[MNG-6078] Can't overwrite properties which have been defined in
...
.mvn/maven.config
o Reversed the order of properties only to get the properties from
command line at the end of the properties list which results
in correct behaviour to be able to overwrite properties from
command line for properties which have been defined in
.mvn/maven.config file.
2017-01-29 21:17:36 +01:00
Michael Osipov
065281c43d
[MNG-5607] Don't use M2_HOME in mvn shell/command scripts anymore
...
* Variable has been removed and replaced with an internal one which
cannot be overriden from outside. From now on, it is an
implementation detail which it should have been from the beginning.
* Cleaned up license header and style of the variable description
section graciously borrowed from the Tomcat start scripts.
2017-01-29 16:53:44 +01:00
Hervé Boutemy
4547ff73d8
added link to 3.3.1 release notes for details on .mvn
2017-01-25 00:09:30 +01:00
Hervé Boutemy
8a8f7cd53f
removed now unused checkstyle suppress warnings
2017-01-25 00:09:01 +01:00
Hervé Boutemy
84085c0a9c
updated urls (https, plexus) and license header formatting
2017-01-24 23:50:10 +01:00
Hervé Boutemy
94bc4de2ea
[MNG-6093] use monkey patched slf4j-simple provider with Maven color
2017-01-24 18:40:07 +01:00
Hervé Boutemy
b80915b882
[MNG-3507] added color to Maven execution output messages
2017-01-24 18:40:07 +01:00
Michael Osipov
be5caccaff
[MNG-6102] Introduce ${maven.conf} in m2.conf
...
Set maven.conf to default ${maven.home}/conf in ${maven.home}/bin/m2.conf
to have a canonical property pointing to global configuration files from
within Java code.
This also helps package maintainers to decouple the Maven installation
from a global configuration by solely modifying m2.conf instead of using
dirty hacks, if possible at all.
2017-01-23 20:54:54 +01:00
Michael Osipov
149cce7a86
[MNG-5977] Improve output readability of our MavenTransferListener implementations
...
* Applied a general decimal formatter which automatically scales file sizes between [0,10) (one decimal digit) and [10,1000) (whole numbers) along with proper size and time units
* The progress meter will now properly
** tell the amount of transfers along with file names (in debug mode) and absolute progress by size
** visually seperate parallel transfers with " | "
* Optimized and reduced padding to the cases where it actually is necessary
* Padding has to be applied to every event which can succeed with progress update
* Synchronize all calls to console to avoid race conditions where output is terminated by a carriage return only. If no sync is done, SLF4J or INIT/SUCCEEDED update can interleave and overwrite the progress while being shorter as the progress itself.
* Replaced the concurrent hash map with a synchronized linked hash map to retain order of the progress meter. It will behave now like a queue.
* Work around a rounding bug existed upto Java 7
See http://stackoverflow.com/q/22797964/696632 and Oracle's bugfix
Announcement: http://www.oracle.com/technetwork/java/javase/8-compatibility-guide-2156366.html
Race conditions cannot be avoided if -T is employed since one does not have access to the output stream of a SLF4J backend to synchronize on.
2017-01-23 11:18:15 +01:00
Michael Osipov
deefd9342b
[MNG-5954] Remove outdated maven-embedder/src/main/resources/META-INF/MANIFEST.MF
2017-01-22 21:37:57 +01:00
Michael Osipov
355f4dff03
[MNG-5975] Use Java 7's SimpleDateFormat in CLIReportingUtils#formatTimestamp
2017-01-22 21:37:57 +01:00
Hervé Boutemy
079f6b3ba3
[MNG-6088] add a newline after forked execution success message
2017-01-22 17:14:05 +01:00
Michael Osipov
618e62dd33
[MNG-5649] Use Commons Lang's Validate to intercept invalid input
...
Use wherever possible Validate with consistent messages and exceptions.
2015-10-16 17:32:57 +02:00
Michael Osipov
d556da8434
Capitalize names in missing -v output
2015-10-10 19:52:56 +02:00
Karl Heinz Marbaise
8a51f9e512
[MNG-5681] Properties on command line with leading or trailing quotes are stripped
...
Refactored out cleanArgs method from CLIManager into separate class
and added appropriate tests which proves the solution
of the issue.
2015-10-07 17:13:43 +02:00
Keith Turner
7f0e1b7538
[MNG-5891] Log file command line option description contains an extra word
...
Signed-off-by: Michael Osipov <michaelo@apache.org>
2015-09-21 20:47:02 +02:00
Hervé Boutemy
2669980461
[MNG-5887] updated Modello site url
2015-09-14 19:52:21 +02:00
Karl Heinz Marbaise
d12f6501f2
Refactored code to be consistent with other code.
2015-09-06 11:19:48 +02:00
Karl Heinz Marbaise
15223116a6
Fixed URL's to issue tracking after transition to
...
Apache Software Foundation.
2015-07-19 09:53:50 +02:00
tssp
193778ec0e
[MNG-5816] Empy maven.config cause Maven to exit with failure
...
Avoid adding non empty configuration argument that causes exception.
Signed-off-by: Karl Heinz Marbaise <khmarbaise@apache.org>
2015-07-06 20:21:39 +02:00
sugartxy
7f206ef1cc
try-with-resources
...
Reformatted to code style by me. This fixes #53
2015-06-20 14:32:46 +02:00
Kristian Rosenvold
7badeb5b5b
Upgraded to java7 language features
2015-06-20 10:56:07 +02:00
Robert Stern
49a3e55208
Fixed typo 'propery' to 'property'
2015-05-06 13:16:44 +02:00
Jason van Zyl
56e6db1231
MNG-5795: Maven extensions can not be retrieved from authenticated repositories
2015-04-02 00:49:50 -04:00
Hervé Boutemy
08715d87d9
[MNG-5771] added core extension reference
2015-03-12 23:20:10 +01:00
Hervé Boutemy
cb356ed478
[MNG-5767] added documentation for project-specific jvm options and
...
maven command-line parameters
2015-03-12 23:16:02 +01:00
Igor Fedorenko
cc429e8451
MNG-5774 restored MavenCli user/global settings location contants
...
Signed-off-by: Igor Fedorenko <ifedorenko@apache.org>
2015-03-11 18:24:14 -04:00
Hervé Boutemy
207d18ddb6
stupid "enchancement" :)
2015-03-07 09:07:08 +01:00