Commit Graph

220 Commits

Author SHA1 Message Date
Christofer Dutz 7ffeb1f5e1 - Added Apache header to the downloader java class 2020-06-21 11:19:05 +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 0a5f3581d2 [maven-release-plugin] prepare for next development iteration 2020-06-21 11:18:59 +02:00
Manfred Moser b5838749c6 [maven-release-plugin] prepare release maven-wrapper-0.3.0 2020-06-21 11:18:58 +02:00
Manfred Moser 81ea5f200f added chunk size change 2020-06-21 11:18:57 +02:00
Manfred Moser 2b40a1d674 added chunk size change 2020-06-21 11:18:56 +02:00
Manfred Moser 3aed953813 much less verbose progress reporting since it is now a new line each 2020-06-21 11:18:55 +02:00
Manfred Moser 4f3c4b0f9d added warning about issues found from provisio upgrade 2020-06-21 11:18:54 +02:00
Manfred Moser 89d11a2fd7 removed redundant empty element 2020-06-21 11:18:53 +02:00
Jeremy Landis 5874d0e37a [pom] Update provision-maven-plugin to 0.1.50 2020-06-21 11:18:52 +02:00
Jeremy Landis 4f8adb9599 [pom] Update ant to 1.9.9 2020-06-21 11:18:51 +02:00
Jeremy Landis 15d67d8bdd [pom] Update commons-io to 2.5 2020-06-21 11:18:50 +02:00
Jeremy Landis 0e8dd0e503 [pom] Update mockito-core to 2.8.47 2020-06-21 11:18:48 +02:00
Jeremy Landis 036f0998cd [pom] Update junit to 4.12 2020-06-21 11:18:47 +02:00
Jeremy Landis 1e705f0517 [pom] Use empty relativePath
To prevent maven from issuing warnings if upper directory has a pom that
is unrelated.  The parent shouldn't be checked there but rather in .m2
first.
2020-06-21 11:18:46 +02:00
Manfred Moser 15745d0a63 upped version 2020-06-21 11:18:45 +02:00
Manfred Moser fd091d94a0 added recent pr merges 2020-06-21 11:18:44 +02:00
Manfred Moser 79660d03ac set to new maven version 2020-06-21 11:18:43 +02:00
Konstantin Sobolev db83880114 fix to actually read the environment variable value 2020-06-21 11:18:42 +02:00
Konstantin Sobolev cd4c904218 respect MVNW_VERBOSE when printing diagnostic stuff 2020-06-21 11:18:41 +02:00
H Pragt 93f6c7bdf3 set title of command window 2020-06-21 11:18:39 +02:00
Manfred Moser dd97d37838 wrapper file upgrade 2020-06-21 11:18:38 +02:00
Manfred Moser 6f4b588281 [maven-release-plugin] prepare for next development iteration 2020-06-21 11:18:37 +02:00
Manfred Moser 6faca9923e [maven-release-plugin] prepare release maven-wrapper-0.2.3 2020-06-21 11:18:36 +02:00
Manfred Moser 8c6d458f2e update info on wrapper 2020-06-21 11:18:35 +02:00
Tadaya Tsuyukubo b77616c591 Fix NPE due to missing MVNW_VERBOSE 2020-06-21 11:18:34 +02:00
Manfred Moser fb82a01e70 updated wrapper jar 2020-06-21 11:18:33 +02:00
Manfred Moser 3fe315affe [maven-release-plugin] prepare for next development iteration 2020-06-21 11:18:32 +02:00
Manfred Moser 5112bed3e3 [maven-release-plugin] prepare release maven-wrapper-0.2.2 2020-06-21 11:18:30 +02:00
Manfred Moser 70f1adc9f8 added verbose mode activated with MVNW_VERBOSE set to true 2020-06-21 11:18:29 +02:00
Manfred Moser 59ffd080f5 cleaned up version output 2020-06-21 11:18:28 +02:00
Chris Boudreau 90d5ab7642 words are missing - I think this is what you mean... 2020-06-21 11:18:27 +02:00
Alexander Falb 7773b68254 Fix typo 2020-06-21 11:18:26 +02:00
Manfred Moser 96eae5daa0 added changelog entry, added Takari to output 2020-06-21 11:18:25 +02:00
Tadaya Tsuyukubo 1859142a15 Print out maven wrapper version at every invocation 2020-06-21 11:18:24 +02:00
Manfred Moser 274ffb663e formatting, added update via plugin 2020-06-21 11:18:23 +02:00
Manfred Moser ae4dda4c16 fixed version in changelog 2020-06-21 11:18:21 +02:00
Manfred Moser 789de49dd1 [maven-release-plugin] prepare for next development iteration 2020-06-21 11:18:20 +02:00
Manfred Moser ad8b2ef723 [maven-release-plugin] prepare release maven-wrapper-0.2.1 2020-06-21 11:18:19 +02:00
Manfred Moser 40302afc0c added changelog entry for java 1.5 change and release 2020-06-21 11:18:18 +02:00
Manfred Moser 220a94efc0 added doc about Java version 2020-06-21 11:18:17 +02:00
Mark Chesney 353a487bfd Ignore IntelliJ files 2020-06-21 11:18:16 +02:00
Mark Chesney b06a8903fe Make artifact compatible with older Java 2020-06-21 11:18:15 +02:00
Manfred Moser 4a5f7c7cae improved wording on supported systems 2020-06-21 11:18:14 +02:00
Manfred Moser 6ebdbb1de5 [maven-release-plugin] prepare for next development iteration 2020-06-21 11:18:12 +02:00
Manfred Moser 8bfc821a0d [maven-release-plugin] prepare release maven-wrapper-0.2.0 2020-06-21 11:18:11 +02:00
Manfred Moser a908f601b7 solaris support changelog entry and release date 2020-06-21 11:18:10 +02:00
Manfred Moser 885284331e added section about supported systems 2020-06-21 11:18:09 +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
Manfred Moser 312fcd2886 upgraded parent 2020-06-21 11:18:07 +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 1f66af513f added note about dash testing 2020-06-21 11:18:05 +02:00
Manfred Moser 33ded77c02 ammeded changelog 2020-06-21 11:18:04 +02:00
Manfred Moser 57557a1803 Upgraded default Maven version to 3.5.0 2020-06-21 11:18:03 +02:00
Fred Bricon 2daa97829f Add .DS_Store to .gitignore
Signed-off-by: Fred Bricon <fbricon@gmail.com>
2020-06-21 11:18:01 +02:00
Fred Bricon 6fb2b29420 updated wrapper maven version to 3.5.0
Signed-off-by: Fred Bricon <fbricon@gmail.com>
2020-06-21 11:18:00 +02:00
Manfred Moser b18f554a74 added changelog entry about spaces fix 2020-06-21 11:17:59 +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
Manfred Moser 5e42c7c631 changelog updates 2020-06-21 11:17:57 +02:00
Manfred Moser 65fd2ba0fc fix to avoid usage of stale maven wrapper jar 2020-06-21 11:17:56 +02:00
Manfred Moser 241aa78725 updated wrapper maven version to 3.3.9 2020-06-21 11:17:55 +02:00
Manfred Moser 20149576e9 updated parent to latest release 2020-06-21 11:17:54 +02:00
Manfred Moser a0f66ebd56 updated to 0.2.0-SNAPSHOT as version due to number of changes 2020-06-21 11:17:52 +02:00
Manfred Moser ef9cbe6aaa upgraded provisio maven plugin 2020-06-21 11:17:51 +02:00
Manfred Moser cc4f84b123 one more PR merge and changelog update 2020-06-21 11:17:50 +02:00
Luke Lu 9d47c124ec Quote paths in commands
Fix issue #31
2020-06-21 11:17:49 +02:00
Manfred Moser c3d69ec5b5 adding changelog 2020-06-21 11:17:48 +02:00
Michal Domagala 27eabec6c6 remove unused MAVEN_CMD_LINE_ARGS 2020-06-21 11:17:47 +02:00
Andreas Ahlenstorf c61dabfe94 Fix path escaping
If `%MAVEN_PROJECTBASEDIR%` contained whitespaces, Windows couldn't find the maven-wrapper.jar because the whitespaces were considered as argument separators.
2020-06-21 11:17:46 +02:00
Dave Syer 9621b2aaff 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-06-21 11:17:45 +02:00
Manfred Moser ec6db49837 upped version to new snapshot since 0.1.6 is already on central 2020-06-21 11:17:44 +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
Jason van Zyl 8a3714dd09 Update release version 2020-06-21 11:17:41 +02:00
Kay-Uwe Janssen 636a1a6a66 use @REM instead of # (#27)
using # in .cmd files as comment issues the following error: `Der Befehl "#" ist entweder falsch geschrieben oder konnte nicht gefunden werden.` aka command not found
2020-06-21 11:17:40 +02:00
Jason van Zyl 999b2e8b84 Update to release version of parent 2020-06-21 11:17:39 +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
Johnny Lim 325dd71901 Fix typo 2020-06-21 11:17:35 +02:00
Jason van Zyl 9649876244 Use org.apache.ant 2020-06-21 11:17:34 +02:00
Jason van Zyl a9de0f7074 [maven-release-plugin] prepare for next development iteration 2020-06-21 11:17:32 +02:00
Jason van Zyl 781551133f [maven-release-plugin] prepare release maven-wrapper-0.1.4 2020-06-21 11:17:31 +02:00
Jason van Zyl 978ad9ea34 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-06-21 11:17:30 +02:00
Jason van Zyl c3629669d2 [maven-release-plugin] prepare for next development iteration 2020-06-21 11:17:29 +02:00
Jason van Zyl 9959135cf1 [maven-release-plugin] prepare release maven-wrapper-0.1.3 2020-06-21 11:17:28 +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
Dan Rollo 763a2b2a9b super-mega minor typo 2020-06-21 11:17:25 +02:00
Dave Syer a31d5b0323 Correct name of Windows script in README
Also adds a short section on how to fix the Maven version
2020-06-21 11:17:23 +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 252caf7fa0 Add license stanza to POM 2020-06-21 11:17:21 +02:00
Jason van Zyl 2d36e2a420 Add license file 2020-06-21 11:17:20 +02:00
Andreas Gudian ccf486b9e5 Remove some unused parts of the windows scripts and rename them to .cmd 2020-06-21 11:17:19 +02:00
Jason van Zyl a111c65d5c Fix typo 2020-06-21 11:17:18 +02:00
Jason van Zyl 8b5a696806 Add a note about using the windows script 2020-06-21 11:17:17 +02:00
Jason van Zyl 00c691df85 Fix a few typos 2020-06-21 11:17:16 +02:00
Jason van Zyl 90b5c10bf6 Update the README.md with instructions 2020-06-21 11:17:14 +02:00
Jason van Zyl fc68fd6faa [maven-release-plugin] prepare for next development iteration 2020-06-21 11:17:13 +02:00
Jason van Zyl e630603439 [maven-release-plugin] prepare release maven-wrapper-0.1.2 2020-06-21 11:17:12 +02:00
Jason van Zyl 79e6e17f7f Update properties path
Whatever
2020-06-21 11:17:11 +02:00
Jason van Zyl d64377a7fa [maven-release-plugin] prepare for next development iteration 2020-06-21 11:17:10 +02:00
Jason van Zyl 6e98e46afd [maven-release-plugin] prepare release maven-wrapper-0.1.1 2020-06-21 11:17:09 +02:00
Jason van Zyl 8d82d0e0fb Update location for searching for the version 2020-06-21 11:17:07 +02:00
Jason van Zyl f129f913b4 [maven-release-plugin] prepare for next development iteration 2020-06-21 11:17:06 +02:00
Jason van Zyl 3b64300be9 [maven-release-plugin] prepare release maven-wrapper-0.1.0 2020-06-21 11:17:05 +02:00
Jason van Zyl 0c157e1393 Use a released version of provisio 2020-06-21 11:17:04 +02:00
Jason van Zyl 8e97812c60 Use provisio packaging to produce an archive that can be deployed for use in a Maven plugin 2020-06-21 11:17:03 +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
Jason van Zyl 1c97b4025b Update the wrapper jar 2020-06-21 11:17:00 +02:00
Jason van Zyl 1cd6b2f185 Make sure the maven.multiModuleProjectDirectory envar is set for proper 3.3.1+ execution 2020-06-21 11:16:58 +02:00
Jason van Zyl f18d4302c0 Formatting 2020-06-21 11:16:57 +02:00
Jason van Zyl c4ab161b7d Update to Maven 3.3.1 which resides in Maven Central 2020-06-21 11:16:56 +02:00
David Carver 5136195fbe Update properties file to point to maven 3.2.3
The properties file was pointing to 3.0.5 of maven, and the
latest version is now 3.2.3.  This commit updates to make sure
maven 3.2.3 is downloaded if if doesn't already exist.
2020-06-21 11:16:55 +02:00
bdemers d9c472da6c correcting README formatting 2020-06-21 11:16:54 +02:00
bdemers fbcb4e967c Adding simple README 2020-06-21 11:16:53 +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