当我尝试运行我的 play 应用程序时,我需要抑制这些警告:
[info] Compiling 8 Scala sources and 15 Java sources to D:\development\stserver\dashboard\target\scala-2.10\classes...
[error] D:\development\stserver\dashboard\app\ldap\UserAuthentication.java:26: warning: com.sun.jndi.ldap.LdapCtxFactory is Sun proprietary API and may be removed in a future release
[error] import com.sun.jndi.ldap.LdapCtxFactory;
[error] ^
[error] D:\development\stserver\dashboard\app\ldap\ReadLdapConfig.java:23: cannot access org.apache.commons.lang.exception.NestableException
[error] class file for org.apache.commons.lang.exception.NestableException not found
[error] try {
[error] ^
[error] Picked up _JAVA_OPTIONS: -Duser.timezone=GMT
[error] (compile:compile) javac returned nonzero exit code
[error] application -
当然,我可能会弄清楚如何在不使用这个库的情况下编写代码,但我不想这样做。我宁愿弄清楚如何告诉游戏在看到警告时停止失败/错误。