我正在将AM升级到6.1到6.4。在系统/控制台/捆绑包中,我的代码包出现以下问题,
sun.awt -- Cannot be resolved but is not required and overwritten by Boot Delegation
sun.io -- Cannot be resolved but is not required and overwritten by Boot Delegation
sun.java2d.pipe -- Cannot be resolved but is not required and overwritten by Boot Delegation
不确定如何解决此问题?我必须添加什么罐子才能解决此问题。有人可以帮我吗?
答案 0 :(得分:0)
理想情况下,我们不应该使用这些内部API。
您当然可以看一下这篇文章,https://forums.adobe.com/thread/2335157
您可以尝试在org.apache.felix配置插件中导入缺少的包装吗?
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<!-- pseudo code -->
<Import-Package>sun.awt.*;resolution:=optional,sun.io.*;resolution:=optional,sun.java2d.pipe.*;resolution:=optional</Import-Package>
</instructions>
</configuration>
</plugin>
这可能会解决问题。
答案 1 :(得分:0)
实际上,我在pom文件中添加的依赖项对我造成了sun。*问题。我删除了以下依赖项,从而解决了我的问题。
<dependency>
<groupId>org.codehaus.groovy.modules.http-builder</groupId>
<artifactId>http-builder</artifactId>
<version>0.6</version>
</dependency>
<dependency>
<groupId>xom</groupId>
<artifactId>xom</artifactId>
<version>1.2.5</version>
</dependency>
谢谢大家的帮助!