Skip to content
This repository was archived by the owner on Jan 7, 2024. It is now read-only.

Commit fea3620

Browse files
committed
Update maven-wrapper version and documentation.
1 parent 38ef748 commit fea3620

File tree

6 files changed

+14
-79
lines changed

6 files changed

+14
-79
lines changed

README.org

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To use snapshots instead of releases, you'll need to add as well as a =pluginRep
2626
: <plugin>
2727
: <groupId>com.rimerosolutions.maven.plugins</groupId>
2828
: <artifactId>wrapper-maven-plugin</artifactId>
29-
: <version>0.0.1</version>
29+
: <version>0.0.2-SNAPSHOT</version>
3030
: <configuration>
3131
: <!-- optional base distribution url -->
3232
: <baseDistributionUrl>https://repository.apache.org/content/repositories/releases/org/apache/maven/apache-maven</baseDistributionUrl>
@@ -40,13 +40,13 @@ To use snapshots instead of releases, you'll need to add as well as a =pluginRep
4040
:
4141
: <!--
4242
: ADD A REFERENCE TO THE SONATYPE SNAPSHOTS REPOSITORY if you want to use snapshots
43+
: -->
4344
: <pluginRepositories>
4445
: <pluginRepository>
4546
: <id>sonatype.snapshots</id>
4647
: <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
4748
: </pluginRepository>
4849
: </pluginRepositories>
49-
: -->
5050
: </project>
5151

5252

maven/maven-wrapper.jar

415 Bytes
Binary file not shown.

maven/maven-wrapper.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#Maven download properties
2-
#Sun Jul 07 11:39:35 EDT 2013
3-
distributionUrl=https\://repository.apache.org/content/repositories/releases/org/apache/maven/apache-maven/3.0.3/apache-maven-3.0.3-bin.zip
2+
#Sun Jan 19 16:58:20 EST 2014
3+
distributionUrl=https\://repository.apache.org/content/repositories/releases/org/apache/maven/apache-maven/3.1.1/apache-maven-3.1.1-bin.zip

mvnw

+5-36
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#
2828
# Optional ENV vars
2929
# -----------------
30-
# M2_HOME - location of maven2's installed home dir
3130
# MAVEN_OPTS - parameters passed to the Java VM when running Maven
3231
# e.g. to debug Maven itself, use
3332
# set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
@@ -69,36 +68,8 @@ if [ -z "$JAVA_HOME" ] ; then
6968
fi
7069
fi
7170

72-
if [ -z "$M2_HOME" ] ; then
73-
## resolve links - $0 may be a link to maven's home
74-
PRG="$0"
75-
76-
# need this for relative symlinks
77-
while [ -h "$PRG" ] ; do
78-
ls=`ls -ld "$PRG"`
79-
link=`expr "$ls" : '.*-> \(.*\)$'`
80-
if expr "$link" : '/.*' > /dev/null; then
81-
PRG="$link"
82-
else
83-
PRG="`dirname "$PRG"`/$link"
84-
fi
85-
done
86-
87-
saveddir=`pwd`
88-
89-
M2_HOME=`dirname "$PRG"`/..
90-
91-
# make it fully qualified
92-
M2_HOME=`cd "$M2_HOME" && pwd`
93-
94-
cd "$saveddir"
95-
# echo Using m2 at $M2_HOME
96-
fi
97-
9871
# For Cygwin, ensure paths are in UNIX format before anything is touched
9972
if $cygwin ; then
100-
[ -n "$M2_HOME" ] &&
101-
M2_HOME=`cygpath --unix "$M2_HOME"`
10273
[ -n "$JAVA_HOME" ] &&
10374
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
10475
[ -n "$CLASSPATH" ] &&
@@ -107,8 +78,6 @@ fi
10778

10879
# For Migwn, ensure paths are in UNIX format before anything is touched
10980
if $mingw ; then
110-
[ -n "$M2_HOME" ] &&
111-
M2_HOME="`(cd "$M2_HOME"; pwd)`"
11281
[ -n "$JAVA_HOME" ] &&
11382
JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
11483
# TODO classpath?
@@ -155,17 +124,17 @@ fi
155124
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
156125

157126
# For Cygwin, switch paths to Windows format before running java
158-
if $cygwin; then
159-
[ -n "$M2_HOME" ] &&
160-
M2_HOME=`cygpath --path --windows "$M2_HOME"`
127+
if $cygwin; then
161128
[ -n "$JAVA_HOME" ] &&
162129
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
163130
[ -n "$CLASSPATH" ] &&
164131
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
165132
fi
166133

134+
DIR=`dirname "$0"`
135+
167136
exec "$JAVACMD" \
168137
$MAVEN_OPTS \
169-
-classpath "\
170-
./maven/maven-wrapper.jar" \
138+
-classpath \
139+
"$DIR/maven/maven-wrapper.jar" \
171140
${WRAPPER_LAUNCHER} "$@"

mvnw.bat

+2-36
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
@REM JAVA_HOME - location of a JDK home dir
2525
@REM
2626
@REM Optional ENV vars
27-
@REM M2_HOME - location of maven2's installed home dir
2827
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
2928
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
3029
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
@@ -63,7 +62,7 @@ echo.
6362
goto error
6463

6564
:OkJHome
66-
if exist "%JAVA_HOME%\bin\java.exe" goto chkMHome
65+
if exist "%JAVA_HOME%\bin\java.exe" goto init
6766

6867
echo.
6968
echo ERROR: JAVA_HOME is set to an invalid directory.
@@ -73,39 +72,6 @@ echo location of your Java installation
7372
echo.
7473
goto error
7574

76-
:chkMHome
77-
if not "%M2_HOME%"=="" goto valMHome
78-
79-
if "%OS%"=="Windows_NT" SET "M2_HOME=%~dp0.."
80-
if "%OS%"=="WINNT" SET "M2_HOME=%~dp0.."
81-
if not "%M2_HOME%"=="" goto valMHome
82-
83-
echo.
84-
echo ERROR: M2_HOME not found in your environment.
85-
echo Please set the M2_HOME variable in your environment to match the
86-
echo location of the Maven installation
87-
echo.
88-
goto error
89-
90-
:valMHome
91-
92-
:stripMHome
93-
if not "_%M2_HOME:~-1%"=="_\" goto checkMBat
94-
set "M2_HOME=%M2_HOME:~0,-1%"
95-
goto stripMHome
96-
97-
:checkMBat
98-
if exist "%M2_HOME%\bin\mvn.bat" goto init
99-
100-
echo.
101-
echo ERROR: M2_HOME is set to an invalid directory.
102-
echo M2_HOME = "%M2_HOME%"
103-
echo Please set the M2_HOME variable in your environment to match the
104-
echo location of the Maven installation
105-
echo.
106-
goto error
107-
@REM ==== END VALIDATION ====
108-
10975
:init
11076
@REM Decide how to startup depending on the version of windows
11177

@@ -144,7 +110,7 @@ goto Win9xApp
144110
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
145111

146112
@REM -- Regular WinNT shell
147-
set WRAPPER_JAR="".\maven\maven-wrapper.jar""
113+
set WRAPPER_JAR=%~dp0maven\maven-wrapper.jar""
148114
goto runm2
149115

150116
@REM Start MAVEN2

pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ limitations under the License.
8585
<plugin>
8686
<groupId>com.rimerosolutions.maven.plugins</groupId>
8787
<artifactId>wrapper-maven-plugin</artifactId>
88-
<version>0.0.1</version>
88+
<version>0.0.2-SNAPSHOT</version>
8989
<configuration>
9090
<!-- optional wrapper jar output folder -->
9191
<!--
@@ -100,10 +100,10 @@ limitations under the License.
100100
</plugins>
101101
</build>
102102

103-
<!-- <pluginRepositories>
103+
<pluginRepositories>
104104
<pluginRepository>
105105
<id>sonatype.snapshots</id>
106106
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
107107
</pluginRepository>
108-
</pluginRepositories> -->
108+
</pluginRepositories>
109109
</project>

0 commit comments

Comments
 (0)