0

Apologies in advance if this question is very simplistic! I have Ubuntu 12.04. I manually installed Maven by downloading the binary tarball file and extracting it to the /opt/ folder. I then set the relevant export variables with the following commands:

export M2_HOME=/opt/apache-maven-3.0.5
export PATH=$PATH:$M2_HOME/bin

For good measure, I added these into the /home/andrew/.bashrc file (with andrew being the main user profile). However, I later realised that obviously this only set the path variables for that particular user. When I change to a secondary user, they don't detect the maven installation as they don't have the export variables.

How do I set global variables to govern something like this?

0 Answers0