MeenuNagpal
asked on
mvn install on Linux
I am trying to run java project on Linux with maven. Although the java version which I have installed is 1.6.0_20, I get following exception
/home/administrator/Deskto p/developm ent/eclips e/com.rads dk.framewo rk/src/mai n/java/com /radsdk/Va lueBase.ja va:[61,2] annotations are not supported in -source 1.3
(use -source 5 or higher to enable annotations)
the mvn --version returns following
Apache Maven 2.2.1 (rdebian-4)
Java version: 1.6.0_20
Java home: /usr/lib/jvm/java-6-openjd k/jre
Default locale: en_US, platform encoding: UTF-8
I guess I need to change the VM configuration. Any idea?
/home/administrator/Deskto
(use -source 5 or higher to enable annotations)
the mvn --version returns following
Apache Maven 2.2.1 (rdebian-4)
Java version: 1.6.0_20
Java home: /usr/lib/jvm/java-6-openjd
Default locale: en_US, platform encoding: UTF-8
I guess I need to change the VM configuration. Any idea?
The error message comes as a result of running which command?
ASKER
I executed "mvn install"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Maybe you want to use newer maven - I guess the current version is 3.0.3
ASKER
@for yan I installed maven in ubuntu. I only got option to install maven2 in Synaptic package manager. Will try installing latest version manually.
you don't need to use the maven-compiler-plugin
and you probably don't want to be using 1.5 either
and you probably don't want to be using 1.5 either