Skip to content

Commit 48624ee

Browse files
Removed automatic profile setting in wrapper
1 parent 0176780 commit 48624ee

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

mvnw

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -236,25 +236,25 @@ export MAVEN_CMD_LINE_ARGS
236236

237237
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
238238

239-
echo "Running version check"
240-
VERSION=$(sed '\!<parent!,\!</parent!d' $(dirname $0)/pom.xml | grep '<version' | head -1 | sed -e 's/.*<version>//' -e 's!</version>.*$!!')
241-
echo "The found version is [${VERSION}]"
242-
243-
if echo $VERSION | egrep -q 'M|RC'; then
244-
echo Activating \"milestone\" profile for version=\"$VERSION\"
245-
echo $MAVEN_ARGS | grep -q milestone || MAVEN_ARGS="$MAVEN_ARGS -Pmilestone"
246-
else
247-
echo Deactivating \"milestone\" profile for version=\"$VERSION\"
248-
echo $MAVEN_ARGS | grep -q milestone && MAVEN_ARGS=$(echo $MAVEN_ARGS | sed -e 's/-Pmilestone//')
249-
fi
250-
251-
if echo $VERSION | egrep -q 'RELEASE'; then
252-
echo Activating \"central\" profile for version=\"$VERSION\"
253-
echo $MAVEN_ARGS | grep -q milestone || MAVEN_ARGS="$MAVEN_ARGS -Pcentral"
254-
else
255-
echo Deactivating \"central\" profile for version=\"$VERSION\"
256-
echo $MAVEN_ARGS | grep -q central && MAVEN_ARGS=$(echo $MAVEN_ARGS | sed -e 's/-Pcentral//')
257-
fi
239+
#echo "Running version check"
240+
#VERSION=$(sed '\!<parent!,\!</parent!d' $(dirname $0)/pom.xml | grep '<version' | head -1 | sed -e 's/.*<version>//' -e 's!</version>.*$!!')
241+
#echo "The found version is [${VERSION}]"
242+
243+
#if echo $VERSION | egrep -q 'M|RC'; then
244+
# echo Activating \"milestone\" profile for version=\"$VERSION\"
245+
# echo $MAVEN_ARGS | grep -q milestone || MAVEN_ARGS="$MAVEN_ARGS -Pmilestone"
246+
#else
247+
# echo Deactivating \"milestone\" profile for version=\"$VERSION\"
248+
# echo $MAVEN_ARGS | grep -q milestone && MAVEN_ARGS=$(echo $MAVEN_ARGS | sed -e 's/-Pmilestone//')
249+
#fi
250+
#
251+
#if echo $VERSION | egrep -q 'RELEASE'; then
252+
# echo Activating \"central\" profile for version=\"$VERSION\"
253+
# echo $MAVEN_ARGS | grep -q milestone || MAVEN_ARGS="$MAVEN_ARGS -Pcentral"
254+
#else
255+
# echo Deactivating \"central\" profile for version=\"$VERSION\"
256+
# echo $MAVEN_ARGS | grep -q central && MAVEN_ARGS=$(echo $MAVEN_ARGS | sed -e 's/-Pcentral//')
257+
#fi
258258

259259
exec "$JAVACMD" \
260260
$MAVEN_OPTS \

0 commit comments

Comments
 (0)