|
|
@ -231,14 +231,14 @@ VERSION=$(exec "$JAVACMD" \ |
|
|
|
$MAVEN_OPTS \ |
|
|
|
$MAVEN_OPTS \ |
|
|
|
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ |
|
|
|
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ |
|
|
|
"-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ |
|
|
|
"-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 ) |
|
|
|
-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" |
|
|
|
echo "Running version check for the second time in order to output only the version" |
|
|
|
VERSION=$(exec "$JAVACMD" \ |
|
|
|
VERSION=$(exec "$JAVACMD" \ |
|
|
|
$MAVEN_OPTS \ |
|
|
|
$MAVEN_OPTS \ |
|
|
|
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ |
|
|
|
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ |
|
|
|
"-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ |
|
|
|
"-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 ) |
|
|
|
-Dexec.executable="echo" -Dexec.args='${project.version}' ${WRAPPER_LAUNCHER} -q -o --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec ) |
|
|
|
echo "The found version is [${VERSION}]" |
|
|
|
echo "The found version is [${VERSION}]" |
|
|
|
|
|
|
|
|
|
|
|
if echo $VERSION | egrep -q 'M|RC'; then |
|
|
|
if echo $VERSION | egrep -q 'M|RC'; then |
|
|
|