Did you by any chance install using apt-get? I've seen a number of cases where 
doing so leads to errors like this. Try installing manually from the website.

On Oct 24, 2013, at 12:31 AM, gunrock seenu <gunrockse...@gmail.com> wrote:

> ~/M101J$ mvn --version
> Apache Maven 3.0.4
> Maven home: /usr/share/maven
> Java version: 1.7.0_40, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/jdk1.7.0_40/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "3.8.0-31-generic", arch: "amd64", family: "unix"
> 
> 
> strange thing I observed is when I went on the command line and invoke mvn
> compile , it failed with
> 
> ~/M101J/src/main/java/com/tengen/HelloWorldSparkStyle.java:[19,10] error:
> annotations are not supported in -source 1.3
> 
> made me think what if I generated the project from intellij - this time it
> worked. I had previously generated the project directly on command line and
> imported it into intelliJ and that seem to be the reason why it was not
> working well.
> 
> thank you all for your pointers. this one stumps me.

-----------------
Author, Getting Started with Apache Maven 
<http://www.packtpub.com/getting-started-with-apache-maven/video>

Come read my webnovel, Take a Lemon <http://www.takealemon.com>, 
and listen to the Misfile radio play <http://www.fuzzyfacetheater.com/misfile/>!







Reply via email to