Replacements for deprecated JPMS modules with Java EE APIs

后端 未结 8 1493
滥情空心
滥情空心 2020-11-22 05:23

Java 9 deprecated six modules that contain Java EE APIs and they are going to be removed soon:

  • java.activation with javax.activation pack
8条回答
  •  爱一瞬间的悲伤
    2020-11-22 06:05

    I have experimented with most of the suggestions described above using JDK 11.0.3 and have been not been successful. The only solution that I eventually found to work is the following. Perhaps there are other options that also work but it appears that the selection of version is critical. For example, changing com.sun.xml.ws:rt to 2.3.2 causes module javax.jws to no long be available.

        
            org.glassfish.jaxb
            jaxb-runtime
            2.4.0-b180830.0438
        
        
            com.sun.xml.ws
            rt
            2.3.1
         
    

提交回复
热议问题