[ 
https://issues.apache.org/jira/browse/CXF-7899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16685994#comment-16685994
 ] 

Freeman Fang commented on CXF-7899:
-----------------------------------

Ideally, the code should be API oriented and shouldn't have direct dependency 
on impl.
If tests need to use impl, just add such impl dependencies in test scope.

Like in CXF, we have jaxb-impl dependencies for running test but only in test 
scope.

I believe in your project you should also have dependency on 
com.sun.activation:javax.activation:1.2.0 in test scope if you have any tests 
using it.

> Java 11 and javax.activation dependencies
> -----------------------------------------
>
>                 Key: CXF-7899
>                 URL: https://issues.apache.org/jira/browse/CXF-7899
>             Project: CXF
>          Issue Type: Task
>            Reporter: Tim Allison
>            Assignee: Freeman Fang
>            Priority: Major
>
> Again, many apologies if this is a duplicate.  Over on TIKA-2778, we're 
> trying to add only the minimal dependencies that will allow us to compile and 
> run with Java 11.
> We tried adding
> {noformat}
>     <!-- for java 10 -->
>     <dependency>
>       <groupId>org.glassfish.jaxb</groupId>
>       <artifactId>jaxb-runtime</artifactId>
>       <version>2.3.1</version>
>     </dependency>
> {noformat}
> However, as [~HansBrende] pointed out, this includes some of the 
> javax.activation classes, but not those in com.sun.activation.*
> Any chance you'd be willing to migrate away from classes in this namespace?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to