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
146a3750
Commit
146a3750
authored
Sep 19, 2016
by
Marcin Grzejszczak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating mvnw for all projects
parent
82b4dfa2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
mvnw
mvnw
+2
-14
No files found.
mvnw
View file @
146a3750
...
...
@@ -226,19 +226,8 @@ export MAVEN_CMD_LINE_ARGS
WRAPPER_LAUNCHER
=
org.apache.maven.wrapper.MavenWrapperMain
echo
"Running version check for the first time to ensure all jars are downloaded. Without this wrong version might be chosen"
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
-o
--non-recursive
org.codehaus.mojo:exec-maven-plugin:1.3.1:exec
)
echo
"Running version check for the second time in order to output only the version"
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
-o
--non-recursive
org.codehaus.mojo:exec-maven-plugin:1.3.1:exec
)
eecho
"Running version check"
VERSION
=
$(
sed
'\!<parent!,\!</parent!d'
pom.xml |
grep
'<version'
|
head
-1
|
sed
-e
's/.*<version>//'
-e
's!</version>.*$!!'
)
echo
"The found version is [
${
VERSION
}
]"
if
echo
$VERSION
| egrep
-q
'M|RC'
;
then
...
...
@@ -249,7 +238,6 @@ else
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"
\
...
...
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