Commit Graph

33 Commits

Author SHA1 Message Date
Manfred Moser 026965ed9e Removed todo comment 2020-06-21 11:19:45 +02:00
Manfred Moser 43bd236950 updated to wrapper 0.4.2 in prep of new release 2020-06-21 11:19:41 +02:00
Manfred Moser c77c8eab30 updated static files to point to 0.4.1 release 2020-06-21 11:19:36 +02:00
Manfred Moser f10e57852c updated to new wrapper version in default URLs 2020-06-21 11:19:24 +02:00
Manfred Moser 2c0474785d adapted to honor the MVNW_VERBOSE flag 2020-06-21 11:19:22 +02:00
Manfred Moser 6178de4d0f introduced intermediary var for path to jar since it didnt work without that in bash 2020-06-21 11:19:19 +02:00
Christofer Dutz 85b58d9641 Updated to the latest maven-wrapper version. 2020-06-21 11:19:13 +02:00
Christofer Dutz 03b48aeca8 Updated the download url to the https version 2020-06-21 11:19:12 +02:00
Christofer Dutz b63badc11a Removed a hack to force the script to use curl or wget ... 2020-06-21 11:19:11 +02:00
Christofer Dutz 5a145c8759 - 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-06-21 11:19:09 +02:00
Christofer Dutz b5858c24bd - Changed the wget command to use "-O" instead of "--output-document=" 2020-06-21 11:19:07 +02:00
Christofer Dutz 1fd63e5aea - Changed the curl and wget detection to the "possix way" using "command" 2020-06-21 11:19:06 +02:00
Christofer Dutz 70e5171270 - Added a download extension for windows 2020-06-21 11:19:04 +02:00
Christofer Dutz 69369d2ead - 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-06-21 11:19:03 +02:00
Christofer Dutz 5a6e53da1c Cleaned up the code a little to not exit with 0 in case of an error. 2020-06-21 11:19:02 +02:00
Christofer Dutz bef721a75d - Added an initial version of an auto-downloader for the maven-wrapper.jar 2020-06-21 11:19:01 +02:00
Manfred Moser 70f1adc9f8 added verbose mode activated with MVNW_VERBOSE set to true 2020-06-21 11:18:29 +02:00
Alexander Falb 7773b68254 Fix typo 2020-06-21 11:18:26 +02:00
Romain Pelisse 4f373647a9 fixing issue on Solaris
- removed use of 'local' for Solaris 11
- switched $() to  ...
2020-06-21 11:18:08 +02:00
Romain Pelisse 2ffb15c84a Use of bashisms make this script fail in minimal /bin/sh implementations like dash 2020-06-21 11:18:06 +02:00
Manfred Moser bd285306d5 support spaces in folder names on nix, simplified from https://github.com/takari/maven-wrapper/pull/25 2020-06-21 11:17:58 +02:00
Luke Lu 9d47c124ec Quote paths in commands
Fix issue #31
2020-06-21 11:17:49 +02:00
Michal Domagala 27eabec6c6 remove unused MAVEN_CMD_LINE_ARGS 2020-06-21 11:17:47 +02:00
Karsten Sperling b952d3628d Use Apple-recommended strategy for locating JAVA_HOME.
This works correctly with both Oracle and Apple JDKs.
2020-06-21 11:17:42 +02:00
Tadaya Tsuyukubo b1564e34aa Remove whitespace (#22) 2020-06-21 11:17:38 +02:00
Manfred Moser 7589e43f57 avoid using MAVEN_CMD_LINE_ARGS for invocation since that can losse parameter escaping 2020-06-21 11:17:37 +02:00
Anton Tanasenko b55dfdd479 handle MAVEN_PROJECTBASEDIR correctly in cygwin 2020-06-21 11:17:36 +02:00
Dave Syer 218ebcaea8 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-06-21 11:17:27 +02:00
Dave Syer b607a31165 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-06-21 11:17:26 +02:00
Dave Syer 10296a8036 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-06-21 11:17:22 +02:00
Jason van Zyl 073ed72c89 Use the Maven 3.3.1 startup scripts to account for jvm.config and maven.config 2020-06-21 11:17:02 +02:00
Jason van Zyl a84a48feb2 Use the now standard .mvn directory 2020-06-21 11:17:01 +02:00
bdemers a850495296 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-06-21 11:16:52 +02:00