This is weird - I'll check the build too

regards
Grzegorz Grzybek

pt., 6 lut 2026 o 17:20 Jean-Baptiste Onofré <[email protected]> napisał(a):

> OK, I reproduce the build issue with JDK 21.
>
> As said, for me it's not a blocker as Karaf 4.4.x is supposed to be built
> with JDK11.
>
> JDK21 min version for build is planned for Karaf 4.5.x.
>
> Regards
> JB
>
> On Fri, Feb 6, 2026 at 5:15 PM Jean-Baptiste Onofré <[email protected]>
> wrote:
>
> > Just as a reminder (according to https://karaf.apache.org/download.html
> ):
> > Karaf 4.4.x is still built with JDK 11 (it supports JDK 17/21 at runtime,
> > but the build is Java 11).
> >
> > Regards
> > JB
> >
> > On Fri, Feb 6, 2026 at 3:28 PM Francois Papon <
> > [email protected]> wrote:
> >
> >> Hi,
> >>
> >> I have an error when building from the source on dist but the dep is on
> >> maven central.
> >>
> >> Is there a min/max maven version?
> >>
> >> I am using a jdk 21 and maven 3.9.12.
> >>
> >> Any idea?
> >>
> >> [INFO] Running org.apache.karaf.main.lock.StatementsTest
> >> [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> >> 0.001 s -- in org.apache.karaf.main.lock.StatementsTest
> >> [INFO] Running org.apache.karaf.main.MainStartTest
> >> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> >> 0.090 s <<< FAILURE! -- in org.apache.karaf.main.MainStartTest
> >> [ERROR] org.apache.karaf.main.MainStartTest.testAutoStart -- Time
> >> elapsed: 0.089 s <<< ERROR!
> >> java.lang.RuntimeException: Could not resolve
> >> mvn:org.apache.felix/org.apache.felix.framework/5.6.10
> >>          at
> >>
> >>
> org.apache.karaf.main.util.SimpleMavenResolver.resolve(SimpleMavenResolver.java:59)
> >>          at org.apache.karaf.main.Main.createClassLoader(Main.java:519)
> >>          at org.apache.karaf.main.Main.launch(Main.java:289)
> >>          at
> >> org.apache.karaf.main.MainStartTest.testAutoStart(MainStartTest.java:58)
> >>          at
> >>
> >>
> java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
> >>          at java.base/java.lang.reflect.Method.invoke(Method.java:580)
> >>          at
> >>
> >>
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
> >>          at
> >>
> >>
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> >>          at
> >>
> >>
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
> >>          at
> >>
> >>
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> >>          at
> >>
> >>
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
> >>          at
> >> org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
> >>          at
> >>
> >>
> org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
> >>          at
> org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
> >>          at
> >>
> >>
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
> >>          at
> >>
> >>
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
> >>          at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
> >>          at
> >> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
> >>          at
> >> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
> >>          at
> >> org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
> >>          at
> >> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
> >>          at
> >> org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
> >>          at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
> >>          at
> >>
> >>
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
> >>          at
> >>
> >>
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
> >>          at
> >>
> >>
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
> >>          at
> >>
> >>
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
> >>          at
> >>
> >>
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
> >>          at
> >>
> >>
> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
> >>          at
> >> org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
> >>          at
> >>
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
> >>
> >> François
> >> [email protected]
> >> [email protected]
> >>
> >> Le 05/02/2026 à 16:49, Jean-Baptiste Onofré a écrit :
> >> > Hi everyone,
> >> >
> >> > I submit Apache Karaf runtime 4.4.10 to your vote (rc0).
> >> >
> >> > This is a maintenance release on the 4.4.x series, especially
> bringing:
> >> > - Define the required java version range in karaf maven plugins (to
> >> avoid
> >> > Java version error on Maven goal)
> >> > - Set chcp in karaf.bat to cleanly render tables on Windows platform
> >> > - Set javase 11 by default
> >> > - Catch StringIndexOutOfBoundException in ConsoleSessionImpl to
> >> workaround
> >> > an issue in JLine
> >> > - Fix override of numeric value via env variable or system property
> >> > - Do not use properties with dots in org.ops4j.pax.logging config
> >> >
> >> > You can take a look on the Release Notes for details:
> >> >
> >>
> https://github.com/apache/karaf/releases/tag/untagged-189e45c2c831b7f870ab
> >> >
> >> > Maven Staging Repository:
> >> >
> https://repository.apache.org/content/repositories/orgapachekaraf-1214/
> >> >
> >> > Dist Staging Repository:
> >> > https://dist.apache.org/repos/dist/dev/karaf/4.4.10/
> >> >
> >> > Git tag:
> >> > https://github.com/apache/karaf/tree/karaf-4.4.10
> >> >
> >> > Please vote to approve this release:
> >> > [ ] +1 Approve the release
> >> > [ ] -1 Don't approve the release (please provide specific comments)
> >> >
> >> > This vote will be open for at least 72 hours.
> >> >
> >> > Regards
> >> > JB
> >> >
> >>
> >
>

Reply via email to