You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Richard Stollar <ri...@gmail.com> on 2018/10/15 09:45:34 UTC
Building for Java 11?
Hello all,
With the new JDK-11 and the removal of certain modules
(|java.xml.bind|) what's the way-foward? I have tried building CXF but
am facing issues with the following root cause:
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException:
Failure to find
org.apache.karaf.shell:org.apache.karaf.shell.core:jar:4.2.1-SNAPSHOT
in https://repository.apache.org/snapshots/ was cached in the local
repository, resolution will not be reattempted until the update
interval of apache.snapshots has elapsed or updates are forced
I added several dependencies and hope that's going to work when I
can successfully build CXF...
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1.1</version>
</dependency>
Have you built CXF with Java-11? My environment is Ubuntu Linux.
--
Best regards,
Richard Stollar <http://www.stollar.co.uk>
------------------------------------------------------------------------
Re: Building for Java 11?
Posted by Freeman Fang <fr...@gmail.com>.
Yes, we've done this[1] for CXF master(3.3-SNAPSHOT) a while back with JAVA11 EA kit (Java(TM) SE Runtime Environment 18.9 (build 11-ea+14))
And I’m currently verify the build with OpenJDK 11GA
And yes, we need add external libs which were removed from the java modules.
[1]https://github.com/apache/cxf/commit/a3295e61bcf8c00c13a79707841a58131fd9c97d
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
> On Oct 15, 2018, at 5:45 PM, Richard Stollar <ri...@gmail.com> wrote:
>
> Hello all,
>
> With the new JDK-11 and the removal of certain modules (|java.xml.bind|) what's the way-foward? I have tried building CXF but am facing issues with the following root cause:
>
> Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException:
> Failure to find
> org.apache.karaf.shell:org.apache.karaf.shell.core:jar:4.2.1-SNAPSHOT
> in https://repository.apache.org/snapshots/ was cached in the local
> repository, resolution will not be reattempted until the update
> interval of apache.snapshots has elapsed or updates are forced
>
> I added several dependencies and hope that's going to work when I can successfully build CXF...
>
> <dependency>
> <groupId>javax.xml.bind</groupId>
> <artifactId>jaxb-api</artifactId>
> <version>2.3.0</version>
> </dependency>
> <dependency>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-impl</artifactId>
> <version>2.3.0</version>
> </dependency>
> <dependency>
> <groupId>org.glassfish.jaxb</groupId>
> <artifactId>jaxb-runtime</artifactId>
> <version>2.3.0</version>
> </dependency>
> <dependency>
> <groupId>javax.activation</groupId>
> <artifactId>activation</artifactId>
> <version>1.1.1</version>
> </dependency>
>
> Have you built CXF with Java-11? My environment is Ubuntu Linux.
>
> --
> Best regards,
>
> Richard Stollar <http://www.stollar.co.uk>
> ------------------------------------------------------------------------