You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Christian Schneider <ch...@die-schneider.net> on 2019/07/05 08:02:04 UTC

Build error on Java 11 - Upgrade of maven-surefire-plugin version on sling parent?

I have found an issue when build a sling bundle on Java 11.
https://issues.apache.org/jira/browse/SLING-8563

It seems that the error is caused by the maven-surefire-plugin we use (
2.20.1) in parent not being compatible to Java 11.
I was able to fix the build by using a newer version (2.22.2) in this
bundle.

So my question is: Should I update the sling parent to this new version or
are there known issues with it?

Christian

-- 
-- 
Christian Schneider
http://www.liquid-reality.de

Computer Scientist
http://www.adobe.com

Re: Build error on Java 11 - Upgrade of maven-surefire-plugin version on sling parent?

Posted by Christian Schneider <ch...@die-schneider.net>.
Sorry for the noise .. there is a version 35 of the pom which works.
I tried to set this version in eclipse before and wrongly interpreted an
error as the artifact not being available.

Christian

Am Fr., 5. Juli 2019 um 11:32 Uhr schrieb Christian Schneider <
chris@die-schneider.net>:

> The latest released parent is 34 which does not yet work..
>
> Unfortunately I missed to check master .. There we already use 3.0.0-M3
> which should be fine..
> So my question is wrong :-)
> The correct question is: Should we release the parent with those changes?
> Is a milestone release of surefire ready for prime time?
>
> An alternative would be to switch back to 2.22.2 and release this. We
> could then switch to surefire 3 once it is released.
>
> WDYT?
>
> Christian
>
> Am Fr., 5. Juli 2019 um 10:55 Uhr schrieb Radu Cotescu <ra...@apache.org>:
>
>> Hi Christian,
>>
>> > On 5 Jul 2019, at 10:02, Christian Schneider <ch...@die-schneider.net>
>> wrote:
>> >
>> > I have found an issue when build a sling bundle on Java 11.
>> > https://issues.apache.org/jira/browse/SLING-8563
>> >
>> > It seems that the error is caused by the maven-surefire-plugin we use (
>> > 2.20.1) in parent not being compatible to Java 11.
>> > I was able to fix the build by using a newer version (2.22.2) in this
>> > bundle.
>> >
>>
>> Have you tried updating the parent you’re using [0]?
>>
>> Cheers,
>> Radu
>>
>> [0] -
>> https://github.com/apache/sling-parent/blob/sling-parent-reactor-35/sling-parent/pom.xml#L61
>>
>>
>
> --
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Computer Scientist
> http://www.adobe.com
>
>

-- 
-- 
Christian Schneider
http://www.liquid-reality.de

Computer Scientist
http://www.adobe.com

Re: Build error on Java 11 - Upgrade of maven-surefire-plugin version on sling parent?

Posted by Christian Schneider <ch...@die-schneider.net>.
The latest released parent is 34 which does not yet work..

Unfortunately I missed to check master .. There we already use 3.0.0-M3
which should be fine..
So my question is wrong :-)
The correct question is: Should we release the parent with those changes?
Is a milestone release of surefire ready for prime time?

An alternative would be to switch back to 2.22.2 and release this. We could
then switch to surefire 3 once it is released.

WDYT?

Christian

Am Fr., 5. Juli 2019 um 10:55 Uhr schrieb Radu Cotescu <ra...@apache.org>:

> Hi Christian,
>
> > On 5 Jul 2019, at 10:02, Christian Schneider <ch...@die-schneider.net>
> wrote:
> >
> > I have found an issue when build a sling bundle on Java 11.
> > https://issues.apache.org/jira/browse/SLING-8563
> >
> > It seems that the error is caused by the maven-surefire-plugin we use (
> > 2.20.1) in parent not being compatible to Java 11.
> > I was able to fix the build by using a newer version (2.22.2) in this
> > bundle.
> >
>
> Have you tried updating the parent you’re using [0]?
>
> Cheers,
> Radu
>
> [0] -
> https://github.com/apache/sling-parent/blob/sling-parent-reactor-35/sling-parent/pom.xml#L61
>
>

-- 
-- 
Christian Schneider
http://www.liquid-reality.de

Computer Scientist
http://www.adobe.com

Re: Build error on Java 11 - Upgrade of maven-surefire-plugin version on sling parent?

Posted by Radu Cotescu <ra...@apache.org>.
Hi Christian,

> On 5 Jul 2019, at 10:02, Christian Schneider <ch...@die-schneider.net> wrote:
> 
> I have found an issue when build a sling bundle on Java 11.
> https://issues.apache.org/jira/browse/SLING-8563
> 
> It seems that the error is caused by the maven-surefire-plugin we use (
> 2.20.1) in parent not being compatible to Java 11.
> I was able to fix the build by using a newer version (2.22.2) in this
> bundle.
> 

Have you tried updating the parent you’re using [0]?

Cheers,
Radu

[0] - https://github.com/apache/sling-parent/blob/sling-parent-reactor-35/sling-parent/pom.xml#L61