37 Commits

Author SHA1 Message Date
Manfred Moser
95dcd2fb79 consistent usage of MVNW_USERNAME and MVWN_PASSWORD 2020-05-23 09:58:25 +02:00
Dániel Kovács
60668e739c fix wrapper path for cygwin 2020-05-23 09:58:15 +02:00
Dániel Kovács
f45eac293b fix compile path for cygwin 2020-05-23 09:58:14 +02:00
Vincent Jansen (v.jansen@blueriq.com)
b9e6795b6c Download maven wrapper with authentication if availble 2020-05-23 09:58:07 +02:00
Manfred Moser
42ca0a344f Removed todo comment 2020-05-23 09:58:06 +02:00
Manfred Moser
4976f684d2 updated to wrapper 0.4.2 in prep of new release 2020-05-23 09:58:02 +02:00
Manfred Moser
7ee971eeee updated static files to point to 0.4.1 release 2020-05-23 09:57:58 +02:00
Manfred Moser
d6d69f8239 updated to new wrapper version in default URLs 2020-05-23 09:57:46 +02:00
Manfred Moser
e77b971a68 adapted to honor the MVNW_VERBOSE flag 2020-05-23 09:57:44 +02:00
Manfred Moser
9a162b5be1 introduced intermediary var for path to jar since it didnt work without that in bash 2020-05-23 09:57:40 +02:00
Christofer Dutz
d7ddce2525 Updated to the latest maven-wrapper version. 2020-05-23 09:57:35 +02:00
Christofer Dutz
75698b0a7c Updated the download url to the https version 2020-05-23 09:57:34 +02:00
Christofer Dutz
e4986f65c2 Removed a hack to force the script to use curl or wget ... 2020-05-23 09:57:33 +02:00
Christofer Dutz
34c91b39c8 - Made the wrapperUrl configurable from the maven-wrapper.properties file
- Updated and tested the linux/unix/mac version of the script
  - Updated and tested the Java downloader
  - Updated the windows cmd (but not tested yet)

(Need to test the changes to the windows command on a windows machine)
2020-05-23 09:57:30 +02:00
Christofer Dutz
a0dfc3eee4 - Changed the wget command to use "-O" instead of "--output-document=" 2020-05-23 09:57:29 +02:00
Christofer Dutz
87f298313c - Changed the curl and wget detection to the "possix way" using "command" 2020-05-23 09:57:28 +02:00
Christofer Dutz
5aa0e6fa9d - Added a download extension for windows 2020-05-23 09:57:26 +02:00
Christofer Dutz
d14aa05699 - Made the script use curl or wget if available and fallback to java in case none of them are.
- Moved the Java source code to the filesystem.
2020-05-23 09:57:25 +02:00
Christofer Dutz
a3787b7307 Cleaned up the code a little to not exit with 0 in case of an error. 2020-05-23 09:57:24 +02:00
Christofer Dutz
1a920c765e - Added an initial version of an auto-downloader for the maven-wrapper.jar 2020-05-23 09:57:23 +02:00
Manfred Moser
020545b5c6 added verbose mode activated with MVNW_VERBOSE set to true 2020-05-23 09:56:52 +02:00
Alexander Falb
e1613568ee Fix typo 2020-05-23 09:56:49 +02:00
Romain Pelisse
afbc151906 fixing issue on Solaris
- removed use of 'local' for Solaris 11
- switched $() to  ...
2020-05-23 09:56:32 +02:00
Romain Pelisse
79fc2f2c20 Use of bashisms make this script fail in minimal /bin/sh implementations like dash 2020-05-23 09:56:29 +02:00
Manfred Moser
fa9b9aba2f support spaces in folder names on nix, simplified from https://github.com/takari/maven-wrapper/pull/25 2020-05-23 09:56:22 +02:00
Luke Lu
2ccae98c41 Quote paths in commands
Fix issue #31
2020-05-23 09:56:13 +02:00
Michal Domagala
6d30420438 remove unused MAVEN_CMD_LINE_ARGS 2020-05-23 09:56:11 +02:00
Karsten Sperling
8a6480c20b Use Apple-recommended strategy for locating JAVA_HOME.
This works correctly with both Oracle and Apple JDKs.
2020-05-23 09:56:07 +02:00
Tadaya Tsuyukubo
6c57c4c242 Remove whitespace (#22) 2020-05-23 09:56:02 +02:00
Manfred Moser
295826d697 avoid using MAVEN_CMD_LINE_ARGS for invocation since that can losse parameter escaping 2020-05-23 09:56:01 +02:00
Anton Tanasenko
7fa99bcd49 handle MAVEN_PROJECTBASEDIR correctly in cygwin 2020-05-23 09:56:00 +02:00
Dave Syer
53eff03415 Use basedir location instead of "." to locate wrapper jar
The wrapper script has detected a .mvn directory, so it would be
better to assume that this is the location of the wrapper jar,
rather than the current directory (.). This change could be
enhanced by adding a separate detection loop for the jar itself
as opposed to the .mvn directory, but this is the smallest
possible change that fixes the bug.

Fixes gh-5
2020-05-23 09:55:51 +02:00
Dave Syer
ec3d0ccb90 Align Un*x and Windows scripts to both use MAVEN_CONFIG consistently
Tested on Ubuntu 14.04 and Windows 7 64bit.

Fixes gh-3
2020-05-23 09:55:50 +02:00
Dave Syer
cbb5886a8e Fix while loop so that basedir is detected in current dir
There was a problem with the logic in the while loop that detects
the base dir - it should first look in the current directory,
otherwise you can't build in a directory with local settings because
it will always climb up and find .mvn in a parent directory (e.g. user's
home).
2020-05-23 09:55:47 +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
7bd43645a0 Use the now standard .mvn directory 2020-05-23 09:55:27 +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