【发布时间】:2023-04-09 18:10:01
【问题描述】:
当我尝试构建/运行项目时,我的 java 项目中的 IDE (2020.3.4) 出现以下错误。由于这个问题,我无法通过 IDE 构建/运行应用程序。
java: warnings found and -Werror specified
我在我的 POM 文件中找到了下面的行,并尝试对此进行评论。但同样的错误。
<configuration>
<forceJavacCompilerUse>true</forceJavacCompilerUse>
<compilerArgs>
<!-- <arg>-Werror</arg>-->
<arg>-verbose</arg>
</compilerArgs>
<source>11</source>
<target>11</target> <!--or <release>10</release>-->
</configuration>
这是任何设置特定的错误。
【问题讨论】:
标签: intellij-idea maven-3