首页 > 技术文章 > tycho 打包编译报错 Access restriction: The type XYZ is not API

demonrain 2016-07-05 16:46 原文

解决办法:

在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>

 

推荐阅读