Maven: Difference between revisions

From bibbleWiki
Jump to navigation Jump to search
Line 7: Line 7:
In ~/.bashrc add
In ~/.bashrc add


export M2_HOME=/usr/share/maven export M2=$M2_HOME/bin
export M2_HOME=/usr/share/maven<br>
export MAVEN_OPTS=-Xms256m -Xmx512m
export M2=$M2_HOME/bin<br>
export MAVEN_OPTS="-Xms256m -Xmx512m"<br>


You can either log out or run the script with
You can either log out or run the script with
  . ~/bashrc
  . ~/.bashrc

Revision as of 21:06, 12 May 2020

Installation of ubuntu 20.04

Surprise nothing special

apt-get update
apt-get install maven

Set Environment

In ~/.bashrc add

export M2_HOME=/usr/share/maven
export M2=$M2_HOME/bin
export MAVEN_OPTS="-Xms256m -Xmx512m"

You can either log out or run the script with

. ~/.bashrc