Commit Graph

14 Commits

Author SHA1 Message Date
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