New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't override MAVEN_OPTS in run scripts if it is already set #356

Closed
gravitonian opened this Issue Feb 8, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@gravitonian
Contributor

gravitonian commented Feb 8, 2016

Change the script to something like:

!/bin/bash

if [[ -z ${MAVEN_OPTS} ]]; then
echo "The environment variable 'MAVEN_OPTS' is not set, setting it for you";
MAVEN_OPTS="-noverify -Xms256m -Xmx2G"
fi
echo "MAVEN_OPTS is set to '$MAVEN_OPTS'";
mvn clean install -Prun

and similar for Windows.

@gravitonian gravitonian added this to the 2.2.0 milestone Feb 8, 2016

@gravitonian gravitonian self-assigned this Feb 8, 2016

gravitonian pushed a commit that referenced this issue Feb 29, 2016

gravitonian pushed a commit that referenced this issue Feb 29, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment