Commit Graph

10144 Commits

Author SHA1 Message Date
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
Nemo Chen a2358ba7bb [MNG-6081] Log refactoring - Method Invocation Replaced By Variable 2017-01-22 21:37:57 +01:00
Michael Osipov 5053a628c0 [MNG-6106] Remove maven.home setter from m2.conf 2017-01-22 21:37:57 +01:00
Michael Osipov 8373c79a47 [MNG-6138] Remove obsolete message_*.properties form maven-core 2017-01-22 21:37:57 +01:00
Hervé Boutemy c516ef79ae [MNG-5836] put $maven.home/conf/logging first in classpath to avoid
extension jar overriding logging config
2017-01-22 17:17:11 +01:00
Hervé Boutemy 079f6b3ba3 [MNG-6088] add a newline after forked execution success message 2017-01-22 17:14:05 +01:00
Guillaume Boué d413296cf3 [MNG-6117] ${session.parallel} not correctly set
MultiThreadedBuilder must set parallel to true when it's using more than
1 thread to build: i.e. a degree of concurrency greater than 1 (-T) and
more than 1 project to build. Since each ProjectSegment works on a
cloned session instance (see
BuildListCalculator#calculateProjectBuilds), the flag must be also set
on each cloned session.
2017-01-16 20:29:49 +01:00
Christian Schulte c6c5192d4b Merge branch 'MNG-5629' 2017-01-16 03:16:49 +01:00
Stephen Connolly a83296d795 [INFRA-13307] Now we can build on either Windows node 2017-01-11 23:11:15 +00:00
Christian Schulte ca1179ce6a [MNG-5629] ClosedChannelException from DefaultUpdateCheckManager.read
o Updated to stop producing 'ClosedChannelException's when reading tracking files.
o Updated to use 'Long.MAX_VALUE' as the size of any locked regions to prevent writing beyond locked regions.
o Updated to support shrinking of tracking files.
2017-01-09 16:07:28 +01:00
Stephen Connolly e51fc87277 [MNG-6152] Add a Jenkinsfile 2017-01-09 09:49:16 +00:00
Stephen Connolly bce33aa266 [MNG-6151] Set version to 3.5.0-SNAPSHOT 2017-01-04 09:12:47 +00:00
Jason van Zyl 737de43e39 [maven-release-plugin] prepare for next development iteration 2015-11-10 11:37:02 -05:00
Jason van Zyl bb52d8502b [maven-release-plugin] prepare release maven-3.3.9 2015-11-10 11:36:45 -05:00
Karl Heinz Marbaise cf2f373ddb [MNG-5882] Nonportable shell constructs cause bin/mvn errors on Debian 2015-11-08 15:08:18 +01:00
Stephen Connolly 1953284925 [MNG-5840] A regression had crept in and was missed as the intergration tests were not running the MNG-5840 tests 2015-11-02 12:17:23 +00:00
Hervé Boutemy 2f7daeff58 [MNG-5871] refactoring: improved empty urls handling 2015-10-31 12:55:47 +01:00
Jason van Zyl 406a46fd83 [maven-release-plugin] prepare for next development iteration 2015-10-30 09:41:20 -07:00
Jason van Zyl cdd15915eb [maven-release-plugin] prepare release maven-3.3.8 2015-10-30 09:40:58 -07:00
Jason van Zyl f684761dee Fix for urls being empty in the POM and causing an out of bounds exception 2015-10-29 18:33:59 -07:00
Jason van Zyl 508d97ec87 [maven-release-plugin] prepare for next development iteration 2015-10-27 11:36:39 -07:00
Jason van Zyl d48a49b353 [maven-release-plugin] prepare release maven-3.3.7 2015-10-27 11:36:22 -07:00
Karl Heinz Marbaise b6c9bee1b6 [MNG-5915] Upgrade Wagon version to 2.10 2015-10-24 16:58:04 +02:00
Karl Heinz Marbaise 4497e2bb1e [MNG-5898] Multi-module build with ear fails to resolve war in 3.3.3
Added types of packaging which can used as dependencies in a
multi module build.
2015-10-21 00:36:04 +02:00
Karl Heinz Marbaise 20854ce7be Revert "[MNG-5898] Multi-module build with ear fails to resolve war in 3.3.3"
This reverts commits f3a3ef2 b9cc9c3 72e2478 all related to MNG-5898
2015-10-18 16:14:13 +02:00
Karl Heinz Marbaise f3a3ef2632 [MNG-5898] Multi-module build with ear fails to resolve war in 3.3.3
Followup to fix core IT's.
2015-10-16 20:27:23 +02: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
Karl Heinz Marbaise b9cc9c3652 [MNG-5898] Multi-module build with ear fails to resolve war in 3.3.3
Followup to fix core IT's.
2015-10-16 17:25:00 +02:00
Karl Heinz Marbaise 72e2478ec5 [MNG-5898] Multi-module build with ear fails to resolve war in 3.3.3 2015-10-16 15:38:24 +02:00
Karl Heinz Marbaise 2a0fb4543f [MNG-5911] Upgrade maven-parent to version 27
Cleaned up pom accordingly to upgrade.
2015-10-14 21:24:27 +02:00
Hervé Boutemy 600c0a0f9e updated Jira location 2015-10-11 23:13:13 +02:00
Hervé Boutemy c1a26faecb added 3.3.1 and 3.3.3 releases 2015-10-11 23:11:58 +02:00
Martin Schäf d1dc63844f [MNG-5721] Possible NullPointerException in org.apache.maven.repository.MetadataResolutionResult
Signed-off-by: Michael Osipov <michaelo@apache.org>
2015-10-10 21:25:57 +02:00
Michael Osipov d556da8434 Capitalize names in missing -v output 2015-10-10 19:52:56 +02:00
Michael Osipov 7e2d657fa0 Make the non-canonical build revision display the time zone 2015-10-10 16:54:43 +02:00
Michael Osipov 4ba3b752d6 [MNG-5877] maven-aether-provider/maven-compat does not always generate snapshot versions using Gregorian calendar year
Postfix all repo snapshot handling not just Aether.
2015-10-10 16:43:25 +02:00
Michael Osipov 2ec27257b4 [MNG-5907] org.apache.maven.repository.internal.RemoteSnapshotMetadataTest fails starting at midnight
Added missing import.
2015-10-10 16:03:46 +02:00
Michael Osipov 316298e529 [MNG-5907] org.apache.maven.repository.internal.RemoteSnapshotMetadataTest fails starting at midnight 2015-10-10 15:50:22 +02:00
Michael Osipov b711de57dc [MNG-5906] Use canonical name for UTC timezone 2015-10-10 14:39:31 +02:00
Karl Heinz Marbaise bcacea2cfb [MNG-5905] Maven build does not work with Maven 2.2.1
Added maven-enforcer rule to check the minimum Maven version
to be built with.
2015-10-07 17:30:04 +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
Robert Scholte c8a200a725 Revert "[MNG-5901] Export org.eclipse.aether.util.artifact.SubArtifact"
This reverts commit 89058b3ac8.
2015-10-04 19:39:01 +02:00
Robert Scholte 89058b3ac8 [MNG-5901] Export org.eclipse.aether.util.artifact.SubArtifact 2015-10-04 14:40:35 +02:00
Arnaud Héritier dfed29cc66 MNG-5787,MNG-5842,MNG-5845: Add missing org.slf4j.helpers.* export which is provided slf4j-api
It broke various plugins with missing classes ( org.slf4j.helpers.MarkerIgnoringBase, org.slf4j.helpers.MessageFormatter ) like:
* net.java.truelicense:truelicense-maven-plugin (2.3.4)
* com.github.eirslett:frontend-maven-plugin (0.0.20, 0.0.22)
* maven-antrun-plugin with the cobertura ant task
* org.mortbay.jetty:jetty-maven-plugin (7.6.16.v20140903)
2015-10-04 14:21:56 +02:00
Joseph Walton 5cbc294e72 [MNG-5877] maven-aether-provider does not always generate snapshot versions using Gregorian calendar year
Snapshot versioning should use the Gregorian calendar for consistency
across systems. Apply the fix reported by Anders Forsell to make that
explicit, and include a somewhat overengineered test to confirm that
it's working.

Signed-off-by: Michael Osipov <michaelo@apache.org>
2015-09-29 10:36:35 +02:00
Karl Heinz Marbaise 2a9a07b0a1 [MNG-5894] Removed binding for maven-ejb3-plugin from default binding 2015-09-26 20:39:10 +02:00
Karl Heinz Marbaise d4e299acec Cleanup checkstyle reported errors. 2015-09-26 20:19:16 +02:00
Karl Heinz Marbaise b03062d2a0 [MNG-5893] Make used plugin version for maven-resources-plugin in
default-bindings.xml consistent
Using version 2.6 for ear binding as in the other bindings.
2015-09-26 20:02:32 +02:00