11216 Commits

Author SHA1 Message Date
Sylwester Lachiewicz
4927b1d02e Use Maven 3.6.3 for builds 2020-08-05 23:15:06 +02:00
mickroll
6087444430 [MNG-6972] Allow access to org.apache.maven.graph
This is, for example, needed for rebuilding the dependency graph during build
extension execution after changing dependencies.

This closes #368
2020-08-04 14:04:51 +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
Dennis Lundberg
4f193b3fc2 [MNG-6964] Maven version sorting is internally inconsistent. 2020-07-22 11:24:26 +02:00
Dennis Lundberg
51c0399030 [MNG-6967] Improve the command line output from maven-artifact. 2020-07-22 11:01:35 +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
Maarten Mulders
3b442badfc [MNG-6949] Run integration tests on large matrix, build on small one.
Integration tests now run on Java 8, 11 and 14 with Windows, macOS and Linux.
2020-07-01 12:06:54 +02:00
Martin Kanters
c9d1788f76 [MNG-6949] Add a GitHub Actions Workflow for building and integration testing changes 2020-07-01 12:06:54 +02:00
rfscholte
65ec04c236 [MNG-6948] Repository files should not pass build-filters 2020-06-29 20:35:31 +02:00
rfscholte
76427d2320 [MNG-6946] Build/consumer incorrectly transforms name of artifactId 2020-06-26 12:58:50 +02:00
rfscholte
a945ca4ed3 [MNG-6944] Fix ordering lifecycles 2020-06-23 19:37:29 +02:00
rfscholte
bdec668de9 [MNG-6656] Introduce base for build/consumer pom 2020-06-22 21:24:49 +02:00
rfscholte
881274914a [MNG-6917] Introduce wrapper lifecycle 2020-06-22 20:26:56 +02:00
rfscholte
b373bb06e8 Merge branch 'MNG-6878' 2020-06-21 12:21:20 +02:00
rfscholte
7b939937f5 [MNG-6863] Support --also-make flag in combination with --resume-from.
Author: Martin Kanters <Martin.Kanters@infosupport.com>
2020-06-21 11:21:39 +02:00
rfscholte
0925462311 [MNG-6891] delete useless codes
Author: 2997ms <wangchong756@gmail.com>
2020-06-21 11:21:38 +02:00
rfscholte
101caea3c3 [MNG-6942] Arbitrary file write during archive extraction ("Zip Slip") in wrapper 2020-06-21 11:21:37 +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
rfscholte
628a5756d3 [MNG-6562] WARN if plugins injected by default lifecycle bindings don't have their version locked in pom.xml or parent 2020-06-21 11:21:34 +02:00
rfscholte
958380685d Revert "[MNG-6562] added WARNING on default bindings plugins unlocked versions"
This reverts commit d9bf929c74c7e72da22610d92bd53707a0588179.
2020-06-21 11:21:33 +02:00
Benjamin Marwell
c4ad91e6b9 Do not create empty file on error 2020-06-21 11:21:32 +02:00
liym@home
95660b5904 Fixes alignment in settings.xml 2020-06-21 11:21:31 +02:00
Michael Osipov
1cf99bc80b [MNG-6937] StringSearchModelInterpolatorTest fails on symlinked paths
Don't compare baseDir in a canonical form when the second comparing value
(System.getProperty( "user.dir" )) is not canonicalized.

This closes #361
2020-06-21 11:21:30 +02:00
Sylwester Lachiewicz
872f9416d6 Fix maven-checkstyle-plugin 3.1.1 reported error
- with maven-shared-resources v3
2020-06-21 11:21:29 +02:00
Sylwester Lachiewicz
1c12bf655d [MNG-6828] DependencyResolutionException breaks serialization 2020-06-21 11:21:28 +02:00
olivier lamy
bc9e7eb687 [MNG-5868] No duplicate artifacts in attached artifacts
if attached artifacts already contains the artifact remove it and add the new one

Signed-off-by: olivier lamy <olamy@apache.org>
2020-06-21 11:21:27 +02:00
olivier lamy
ff9ac46211 fix mvnDebug which was not working anymore for unix
Signed-off-by: olivier lamy <olamy@apache.org>
2020-06-21 11:21:25 +02:00
Olivier Lamy
466ac17cca Add a Jenkinsfile to run it test (per default it runs it master branch but now there is a parameter to use a different it source branch) (#355)
* add Jenkinsfile for its running with a branch of integration-testing source

Signed-off-by: olivier lamy <olamy@apache.org>
2020-06-21 11:21:24 +02:00
rfscholte
6cf17fd8fa [MNG-6919] drop wrapperUrl from maven-wrapper.properties
Ensure maven-wrapper can handle spaced paths
2020-06-21 11:21:23 +02:00
Michael Osipov
3848a47385 [MNG-6900] Upgrade Jansi to 1.18 2020-06-21 11:21:22 +02:00
James Z.M. Gao
5db4951ffb Get maven user home (~/.m2) with the same logic with maven
New maven wrapper will guess the maven user home location via system props, system envs
and at last the default location (`~/.m2`).
This guessing order is the convention of the gradle wrapper.
For maven, user home has a fixed location, i.e. `~/.m2`.
2020-06-21 11:21:21 +02:00
James Z.M. Gao
6fba7aa3c4 get MVNW_USERNAME and MVNW_PASSWORD from env
when auth for the http proxy, MVNW_{USERNAME,PASSWORD} should be fetched via `System.getenv`.
2020-06-21 11:21:20 +02:00
Sylwester Lachiewicz
14449e426a [MNG-6819] Undo unintended changes after rebase 2020-06-21 11:21:19 +02:00
Sylwester Lachiewicz
de0d576b63 [MNG-6819] Fix also NPE in StringSearchModelInterpolator 2020-06-21 11:21:18 +02:00
Sylwester Lachiewicz
7b3b585df3 [MNG-6819] Refactor unit tests for ModelInterpolator 2020-06-21 11:21:16 +02:00
碎镜
2df61010c1 [MNG-6819] Fix NullPointerException in StringVisitorModelInterpolator
Closes #301
2020-06-21 11:21:15 +02:00
rfscholte
ba3234e7ae [MNG-6914] Align mvn and mvnw scripts 2020-06-21 11:21:14 +02:00
rfscholte
59183ace18 [MNG-5937] Adjust JenkinsFile to pick up wrapper dists
Improve assembly
2020-06-21 11:21:13 +02:00
rfscholte
f813d54ae9 [MNG-5937] Optimize code for Java 8 2020-06-21 11:21:11 +02:00
rfscholte
e613b06eb7 [MNG-5937] Split wrapper jar from assemblies
Remove unused cli package
Reformat code
2020-06-21 11:21:10 +02:00
rfscholte
84b3baebea [MNG-5937] Fix licenses, removed unwanted root files 2020-06-21 11:21:09 +02:00
Manfred Moser
edd0bfc7fe [maven-release-plugin] prepare for next development iteration 2020-06-21 11:21:08 +02:00
Manfred Moser
9b7027e09b [maven-release-plugin] prepare release maven-wrapper-0.5.6 2020-06-21 11:21:07 +02:00
Manfred Moser
a66affb12b Update for 0.5.6 release 2020-06-21 11:21:06 +02:00
Manfred Moser
f02a81cbcc Update to Maven 3.6.3 2020-06-21 11:21:04 +02:00
William Entriken
49da8bad24 Fix typo 2020-06-21 11:21:03 +02:00
Oscar Korz
05352442eb Remove trailing whitespace 2020-06-21 11:21:02 +02:00
Christian Herold
82720d64ac Corrects the false Maven2 reference in the startup scripts (#121) 2020-06-21 11:21:01 +02:00
Manfred Moser
3aa7e9693b more details about what happens for users 2020-06-21 11:21:00 +02:00
Manfred Moser
bdb5b52ca4 source format only 2020-06-21 11:20:59 +02:00