You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Holt, Jack C." <JA...@saic.com> on 2006/12/08 18:44:49 UTC

Change default source version

Please forgive me if this question has been asked a million times already
but I didn't see it in the FAQ and this is my first post so here goes...

 

When I enter "mvn package" in the root directory of my project, I get a
Compilation failure with the following error message (apparently from javac
itself):

 

            annotations are not supported in -source 1.3

 

It appears that maven is passing "-source 1.3" to javac because I'm using a
Java SE 1.5 SDK so annotations support would be the default. 

 

How do I change the default source version?

 

Jack C. Holt

Senior Web Software Engineer

 


Re: Change default source version

Posted by Mykel Alvis <my...@weirdness.com>.
http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html

On 12/8/06, Holt, Jack C. <JA...@saic.com> wrote:
>
> Please forgive me if this question has been asked a million times already
> but I didn't see it in the FAQ and this is my first post so here goes...
>
>
>
> When I enter "mvn package" in the root directory of my project, I get a
> Compilation failure with the following error message (apparently from
> javac
> itself):
>
>
>
>             annotations are not supported in -source 1.3
>
>
>
> It appears that maven is passing "-source 1.3" to javac because I'm using
> a
> Java SE 1.5 SDK so annotations support would be the default.
>
>
>
> How do I change the default source version?
>
>
>
> Jack C. Holt
>
> Senior Web Software Engineer
>
>
>
>
>


-- 
I'm just an unfrozen caveman software developer.  I don't understand your
strange, "modern" ways.