You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sis.apache.org by patrick o'leary <pj...@pjaol.com> on 2011/01/03 04:52:16 UTC

pom target 1.6

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>

Re: pom target 1.6

Posted by "Mattmann, Chris A (388J)" <ch...@jpl.nasa.gov>.
LOL :)

On Jan 2, 2011, at 8:05 PM, Estrada Groups 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" <pj...@pjaol.com> 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>


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattmann@nasa.gov
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Re: pom target 1.6

Posted by Fabian Christ <ch...@googlemail.com>.
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 <pj...@pjaol.com>:
> 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 <
> estrada.adam.groups@gmail.com> 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" <pj...@pjaol.com> 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

Re: pom target 1.6

Posted by patrick o'leary <pj...@pjaol.com>.
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 <
estrada.adam.groups@gmail.com> 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" <pj...@pjaol.com> 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>
>

Re: pom target 1.6

Posted by Estrada Groups <es...@gmail.com>.
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" <pj...@pjaol.com> 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>

Re: pom target 1.6

Posted by "Mattmann, Chris A (388J)" <ch...@jpl.nasa.gov>.
Weird, I don't think there's a reason the target is 1.5 other than if we want to maintain a 1.5 jar distro in addition to a 1.6. But, it's fine by me for the patch below. I threw up a discussion a while ago about SIS using Java 6 [1], and it didn't really receive much objection.

I'd throw up a JIRA issue and throw up the patch below and commit it, +1.

Thanks Patrick!

Cheers,
Chris

On Jan 2, 2011, at 7:52 PM, patrick o'leary 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>

[1] http://s.apache.org/Z4A


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattmann@nasa.gov
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++