I assume, you are using Ubuntu as Linux distribution. For information, my version is Ubuntu 13.04. And Java is already installed on your machine.
>java -version java version "1.7.0_40" Java(TM) SE Runtime Environment (build 1.7.0_40-b43) Java HotSpot(TM) Server VM (build 24.0-b56, mixed mode)
Step 1 :
Run a complete Maven installation through the standard command line :
>sudo apt-get install maven
It installs Maven 3.0.4.