解决办法:

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

 

相关文章: