tycho 打包编译报错 Access restriction: The type XYZ is not API

解决办法:

在pom.xml中加入以下配置

<plugin>
    <groupId>org.eclipse.tycho</groupId>
    <artifactId>tycho-compiler-plugin</artifactId>
    <version>${tycho.version}</version>
    <configuration>
    <compilerArgument>warn:+discouraged,forbidden</compilerArgument>
    </configuration>
</plugin>

 

posted @ 2016-07-05 16:46  demonrain  阅读(401)  评论(0编辑  收藏  举报