maven

Maven basics

Install Maven in Ubuntu

sudo apt-get install maven

Check Maven installation

mvn -version

Increase memmory allocation

1. Create a file within your home directory

$ vim .mavenrc

2. Insert the next lines

export MAVEN_DEBUG_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"

export MAVEN_OPTS="-Xms1024m -Xmx1024m -noverify -XX:MaxMetaspaceSize=760m"

​3. Add these lines into the .bashrc file

if [ -f ~/.mavenrc ]; then
    . ~/.mavenrc
fi
Subscribe to RSS - maven