37 Commits

Author SHA1 Message Date
rfscholte
954cd81c9b [MNG-6942] Arbitrary file write during archive extraction ("Zip Slip") in wrapper 2020-06-20 14:02:48 +02:00
James Z.M. Gao
f8b556c2e8 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-05-24 21:42:34 +02:00
James Z.M. Gao
fe3b2dcb8a get MVNW_USERNAME and MVNW_PASSWORD from env
when auth for the http proxy, MVNW_{USERNAME,PASSWORD} should be fetched via `System.getenv`.
2020-05-24 17:48:34 +02:00
rfscholte
35e05e4972 [MNG-6914] Align mvn and mvnw scripts 2020-05-23 09:59:32 +02:00
rfscholte
cdcd351928 [MNG-5937] Adjust JenkinsFile to pick up wrapper dists
Improve assembly
2020-05-23 09:59:31 +02:00
rfscholte
9cc3638115 [MNG-5937] Optimize code for Java 8 2020-05-23 09:59:30 +02:00
rfscholte
738d99b03c [MNG-5937] Split wrapper jar from assemblies
Remove unused cli package
Reformat code
2020-05-23 09:59:28 +02:00
rfscholte
3730fb3d2a [MNG-5937] Fix licenses, removed unwanted root files 2020-05-23 09:59:27 +02:00
Manfred Moser
ee6d5bd6f4 Update to Maven 3.6.3 2020-05-23 09:59:22 +02:00
Manfred Moser
067d997415 update to default to Maven 3.6.1 2020-05-23 09:59:12 +02:00
Manfred Moser
94964ceb2b MVN_REPOURL env var usage for Maven binary download 2020-05-23 09:58:35 +02:00
Manfred Moser
e3ed3360da License header cleanup (#105)
- fixes https://github.com/takari/maven-wrapper/issues/104

Signed-off-by: Manfred Moser <mmoser@apache.org>
Signed-off-by: Manfred Moser <manfred@simpligility.com>
2020-05-23 09:58:28 +02:00
Manfred Moser
95dcd2fb79 consistent usage of MVNW_USERNAME and MVWN_PASSWORD 2020-05-23 09:58:25 +02:00
Reinhold Degenfellner
002f677437 remove unintended line 2020-05-23 09:58:23 +02:00
Reinhold Degenfellner
e09456d388 use warning instead of info
also remove unintended spaces
2020-05-23 09:58:22 +02:00
Reinhold Degenfellner
790be24342 use MVNW_USER and MVNW_PASSWORD instead of system properties
fix distribution naming
add readme entry
2020-05-23 09:58:21 +02:00
Reinhold Degenfellner
d395ca47f3 add basic auth support 2020-05-23 09:58:20 +02:00
Vincent Jansen (v.jansen@blueriq.com)
ed08eabf0e Download using authentication with properties 2020-05-23 09:58:08 +02:00
Manfred Moser
638f527d56 much less verbose progress reporting since it is now a new line each 2020-05-23 09:57:17 +02:00
Konstantin Sobolev
18e3d3ea0d fix to actually read the environment variable value 2020-05-23 09:57:04 +02:00
Konstantin Sobolev
68e102a63c respect MVNW_VERBOSE when printing diagnostic stuff 2020-05-23 09:57:03 +02:00
Tadaya Tsuyukubo
8fc916cd9c Fix NPE due to missing MVNW_VERBOSE 2020-05-23 09:56:57 +02:00
Manfred Moser
020545b5c6 added verbose mode activated with MVNW_VERBOSE set to true 2020-05-23 09:56:52 +02:00
Manfred Moser
a71bd825ec cleaned up version output 2020-05-23 09:56:51 +02:00
Manfred Moser
83d12ec075 added changelog entry, added Takari to output 2020-05-23 09:56:48 +02:00
Tadaya Tsuyukubo
2d87f1f673 Print out maven wrapper version at every invocation 2020-05-23 09:56:47 +02:00
Manfred Moser
54b22829ce fix to avoid usage of stale maven wrapper jar 2020-05-23 09:56:20 +02:00
Dave Syer
022fedb1bf Be defensive about creating directories for files
Maven 3.4 snapshots are now being published with invalid
zip files, where the entries are listed before their parent.
So the logic in the Installer is faulty: you have to mkdirs()
on all entries to be sure that the directory exists before you
write the file.
2020-05-23 09:56:09 +02:00
Jason van Zyl
98b6027a2d Use working files to create wrapper jar
We had working copies and files in src/main/wrapper. People have been
patching the working copies and it's easier to just have the one copy.
2020-05-23 09:55:55 +02:00
Andreas Gudian
040d343433 Remove some unused parts of the windows scripts and rename them to .cmd 2020-05-23 09:55:44 +02:00
Jason van Zyl
50938179cc Update properties path
Whatever
2020-05-23 09:55:36 +02:00
Jason van Zyl
fcd0a69a15 Update location for searching for the version 2020-05-23 09:55:33 +02:00
Jason van Zyl
d1bfe96618 Use provisio packaging to produce an archive that can be deployed for use in a Maven plugin 2020-05-23 09:55:29 +02:00
Jason van Zyl
5d40b536e3 Use the Maven 3.3.1 startup scripts to account for jvm.config and maven.config 2020-05-23 09:55:28 +02:00
Jason van Zyl
5deb2a60fc Make sure the maven.multiModuleProjectDirectory envar is set for proper 3.3.1+ execution 2020-05-23 09:55:24 +02:00
Jason van Zyl
ff3e1148b2 Formatting 2020-05-23 09:55:23 +02:00
bdemers
df3fdc9d5c A copy of the gradle wrapper ported for use with maven
Lightly touched to better mesh with current maven builds. (some of which my not have been necessary in hind sight) 

Test it out with this build, run: "./mvnw clean install" at the root of this repo
This will download, install, and run maven 3.0.5 (as configured in maven/wrapper/maven-wrapper.properties)

NOTE: windows batch file is NOT tested


TODO: 
* Possibly extract these bits out into something both gradle and maven (and others) can use
* Port gradle IT's to this build
* See if anyone is interested in this project
2020-05-23 09:55:18 +02:00