您可以尝试以下两种建议:
1)添加编译器参数-Xlint:all:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.0</version> <configuration> <source>1.6</source> <target>1.6</target> <compilerArgument>-Xlint:all</compilerArgument> <showWarnings>true</showWarnings> <showDeprecation>true</showDeprecation> </configuration></plugin>
2)尝试通过命令行传递参数,如下所示:
mvn clean install -Dmaven.compiler.showDeprecation=true
祝好运!



