Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
a9fcc0a0
Commit
a9fcc0a0
authored
Sep 07, 2016
by
Marcin Grzejszczak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating mvnw for all projects
parent
08ed3c7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
15 deletions
+20
-15
mvnw
mvnw
+20
-15
No files found.
mvnw
View file @
a9fcc0a0
...
...
@@ -46,15 +46,6 @@ if [ -z "$MAVEN_SKIP_RC" ] ; then
fi
VERSION
=
$(
awk
'/<parent/ {l=4}; (l-- > 0) {$0=$0} 1'
`
dirname
$0
`
/pom.xml|
grep
'<version'
|
head
-1
|
sed
-e
's/.*>\(.*\)<.*/\1/'
)
if
echo
$VERSION
| egrep
-q
'M|RC'
;
then
echo
Activating
\"
milestone
\"
profile
for
version
=
\"
$VERSION
\"
echo
$MAVEN_ARGS
|
grep
-q
milestone
||
MAVEN_ARGS
=
"
$MAVEN_ARGS
-Pmilestone"
else
echo
Deactivating
\"
milestone
\"
profile
for
version
=
\"
$VERSION
\"
echo
$MAVEN_ARGS
|
grep
-q
milestone
&&
MAVEN_ARGS
=
$(
echo
$MAVEN_ARGS
|
sed
-e
's/-Pmilestone//'
)
fi
# OS specific support. $var _must_ be set to either true or false.
cygwin
=
false
;
darwin
=
false
;
...
...
@@ -66,27 +57,27 @@ case "`uname`" in
#
# Look for the Apple JDKs first to preserve the existing behaviour, and then look
# for the new JDKs provided by Oracle.
#
#
if
[
-z
"
$JAVA_HOME
"
]
&&
[
-L
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK
]
;
then
#
# Apple JDKs
#
export
JAVA_HOME
=
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
fi
if
[
-z
"
$JAVA_HOME
"
]
&&
[
-L
/System/Library/Java/JavaVirtualMachines/CurrentJDK
]
;
then
#
# Apple JDKs
#
export
JAVA_HOME
=
/System/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home
fi
if
[
-z
"
$JAVA_HOME
"
]
&&
[
-L
"/Library/Java/JavaVirtualMachines/CurrentJDK"
]
;
then
#
# Oracle JDKs
#
export
JAVA_HOME
=
/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home
fi
fi
if
[
-z
"
$JAVA_HOME
"
]
&&
[
-x
"/usr/libexec/java_home"
]
;
then
#
...
...
@@ -228,16 +219,30 @@ concat_lines() {
export
MAVEN_PROJECTBASEDIR
=
${
MAVEN_BASEDIR
:-$(
find_maven_basedir
)}
MAVEN_OPTS
=
"
$(
concat_lines
"
$MAVEN_PROJECTBASEDIR
/.mvn/jvm.config"
)
$MAVEN_OPTS
"
# Provide a "standardized" way to retrieve the CLI args that will
# Provide a "standardized" way to retrieve the CLI args that will
# work with both Windows and non-Windows executions.
MAVEN_CMD_LINE_ARGS
=
"
$MAVEN_CONFIG
$@
"
export
MAVEN_CMD_LINE_ARGS
WRAPPER_LAUNCHER
=
org.apache.maven.wrapper.MavenWrapperMain
VERSION
=
$(
exec
"
$JAVACMD
"
\
$MAVEN_OPTS
\
-classpath
"
$MAVEN_PROJECTBASEDIR
/.mvn/wrapper/maven-wrapper.jar"
\
"-Dmaven.home=
${
M2_HOME
}
"
"-Dmaven.multiModuleProjectDirectory=
${
MAVEN_PROJECTBASEDIR
}
"
\
-Dexec
.executable
=
"echo"
-Dexec
.args
=
'${project.version}'
${
WRAPPER_LAUNCHER
}
-q
--non-recursive
org.codehaus.mojo:exec-maven-plugin:1.3.1:exec
)
if
echo
$VERSION
| egrep
-q
'M|RC'
;
then
echo
Activating
\"
milestone
\"
profile
for
version
=
\"
$VERSION
\"
echo
$MAVEN_ARGS
|
grep
-q
milestone
||
MAVEN_ARGS
=
"
$MAVEN_ARGS
-Pmilestone"
else
echo
Deactivating
\"
milestone
\"
profile
for
version
=
\"
$VERSION
\"
echo
$MAVEN_ARGS
|
grep
-q
milestone
&&
MAVEN_ARGS
=
$(
echo
$MAVEN_ARGS
|
sed
-e
's/-Pmilestone//'
)
fi
exec
"
$JAVACMD
"
\
$MAVEN_OPTS
\
-classpath
"
$MAVEN_PROJECTBASEDIR
/.mvn/wrapper/maven-wrapper.jar"
\
"-Dmaven.home=
${
M2_HOME
}
"
"-Dmaven.multiModuleProjectDirectory=
${
MAVEN_PROJECTBASEDIR
}
"
\
${
WRAPPER_LAUNCHER
}
${
MAVEN_ARGS
}
"
$@
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment