You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stanbol.apache.org by Cristian Petroaca <cr...@gmail.com> on 2014/09/13 16:54:14 UTC

Trunk dev and Java 7

Hi All,

I'm using the trunk for development and I saw a while ago a mention that
the trunk supports Java 7. I added some Java 7 specific code (like try
catch with resources) and doing a mvn clean install ended with a failure
due to the fact that the source was 1.6.
I could obviously solve the issue by enforcing source 1.7 in my enhancement
engine's pom but I'm wondering shouldn't this be put somewhere in the root
pom.xml and committed to svn? Or is it something with my maven setup
(version 3.2.3) which by default uses source 1.6?

Thanks,
Cristian

Re: Trunk dev and Java 7

Posted by Cristian Petroaca <cr...@gmail.com>.
Hi Rupert,

Created https://issues.apache.org/jira/browse/STANBOL-1392

2014-09-15 9:21 GMT+03:00 Rupert Westenthaler <rupert.westenthaler@gmail.com
>:

> Hi Cristian,
>
> Bot the trunk and the release-0.12 branch require Java 7 because of
> some dependencies but you are right the `maven-compiler-plugin` still
> notes source and target to be 1.6.
>
> IMO keeping 1.6 for the 0.12.* branch is ok, but for the trunk
> (1.0.0-SNAPSHOT) we should definitely update to 1.7.
>
> Can you create an Issue about this. If no one complains here I will do
> the update later this week
>
> best
> Rupert
>
> On Sat, Sep 13, 2014 at 4:54 PM, Cristian Petroaca
> <cr...@gmail.com> wrote:
> > Hi All,
> >
> > I'm using the trunk for development and I saw a while ago a mention that
> > the trunk supports Java 7. I added some Java 7 specific code (like try
> > catch with resources) and doing a mvn clean install ended with a failure
> > due to the fact that the source was 1.6.
> > I could obviously solve the issue by enforcing source 1.7 in my
> enhancement
> > engine's pom but I'm wondering shouldn't this be put somewhere in the
> root
> > pom.xml and committed to svn? Or is it something with my maven setup
> > (version 3.2.3) which by default uses source 1.6?
> >
> > Thanks,
> > Cristian
>
>
>
> --
> | Rupert Westenthaler             rupert.westenthaler@gmail.com
> | Bodenlehenstraße 11                              ++43-699-11108907
> | A-5500 Bischofshofen
> | REDLINK.CO
> ..........................................................................
> | http://redlink.co/
>

Re: Trunk dev and Java 7

Posted by Rupert Westenthaler <ru...@gmail.com>.
Hi Cristian,

Bot the trunk and the release-0.12 branch require Java 7 because of
some dependencies but you are right the `maven-compiler-plugin` still
notes source and target to be 1.6.

IMO keeping 1.6 for the 0.12.* branch is ok, but for the trunk
(1.0.0-SNAPSHOT) we should definitely update to 1.7.

Can you create an Issue about this. If no one complains here I will do
the update later this week

best
Rupert

On Sat, Sep 13, 2014 at 4:54 PM, Cristian Petroaca
<cr...@gmail.com> wrote:
> Hi All,
>
> I'm using the trunk for development and I saw a while ago a mention that
> the trunk supports Java 7. I added some Java 7 specific code (like try
> catch with resources) and doing a mvn clean install ended with a failure
> due to the fact that the source was 1.6.
> I could obviously solve the issue by enforcing source 1.7 in my enhancement
> engine's pom but I'm wondering shouldn't this be put somewhere in the root
> pom.xml and committed to svn? Or is it something with my maven setup
> (version 3.2.3) which by default uses source 1.6?
>
> Thanks,
> Cristian



-- 
| Rupert Westenthaler             rupert.westenthaler@gmail.com
| Bodenlehenstraße 11                              ++43-699-11108907
| A-5500 Bischofshofen
| REDLINK.CO ..........................................................................
| http://redlink.co/