Hi,

I had similar problem once and I think the requirement is that the
source version can not be greater than the target version. So source
and target should be either 1.5 or 1.6.

You should choose the version dependending on the Java features you
use. If you don't use 1.6 features there is no reason why you
shouldn't use 1.5. From my experience, OSX 10.6.5 has no problem with
source and target set to 1.5.

Best,
 - Fabian

2011/1/3 patrick o'leary <[email protected]>:
> I'm not a maven person, so it's probably some if the wind is 'blowing from
> the east' argument you pass to mvn to make it work.
>
> But found that os-x 10.6.5 snow leopard only comes with java 1.6, so having
> a target of 1.5 throws an error.
>
>
>
> On Sun, Jan 2, 2011 at 8:05 PM, Estrada Groups <
> [email protected]> wrote:
>
>> The latest build of Ubuntu doesn't want to build it either. I get the exact
>> same error. I thought it was me but now I blame Chris ;-)
>>
>> Adam
>>
>> Sent from my iPhone
>>
>> On Jan 2, 2011, at 10:52 PM, "patrick o'leary" <[email protected]> wrote:
>>
>> > Is there  a reason why the maven compile target is 1.5?
>> > On os-x 10.6.5 it's not a happy camper
>> >
>> > Caused by: org.apache.maven.plugin.CompilationFailureException:
>> Compilation
>> > failure
>> > Failure executing javac, but could not parse the error:
>> > javac: source release 1.6 requires target release 1.6
>> >
>> > But the following makes it purr again
>> >
>> > patrick-olearys-MacBook-Air:sis pjaol$ svn diff
>> > Index: sis-parent/pom.xml
>> > ===================================================================
>> > --- sis-parent/pom.xml (revision 1054518)
>> > +++ sis-parent/pom.xml (working copy)
>> > @@ -182,7 +182,7 @@
>> >
>> >   <properties>
>> >     <maven.compile.source>1.6</maven.compile.source>
>> > -    <maven.compile.target>1.5</maven.compile.target>
>> > +    <maven.compile.target>1.6</maven.compile.target>
>> >     <sis.version>${project.version}</sis.version>
>> >   </properties>
>>
>



-- 
Fabian

Reply via email to