Maven 3, program mvn not found

I’m not a Java developer and don’t have to compile much Java. Unfortunately sometimes I do, and on those rare occasions it usually goes wrong. Today my problem was with Maven 3. I installed using apt-get install maven 3, however when I tried to use the mvn command I got the error “program mvn not found”. This is a…