它是什么意思,以及如何将其删除(重新格式化以提高可读性)?

[INFO] Compiling 30 source files to ...\target\test-classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Failure executing javac, but could not parse the error:
warning: Supported source version 'RELEASE_5' from annotation processor
'org.sonatype.guice.bean.scanners.index.QualifiedIndexAPT6'
less than -source '1.6'
warning: No processor claimed any of these annotations:
org.junit.Ignore,org.junit.Test,org.junit.BeforeClass


org.sonatype.sisu:sisu-inject-plexus:2.1.1是项目依赖项之一时,会发生这种情况。

最佳答案

sisu-inject-plexus升级到以下版本后,第一个警告被删除:

<dependency>
  <groupId>org.sonatype.sisu</groupId>
  <artifactId>sisu-inject-plexus</artifactId>
  <version>2.3.0</version>
</dependency>


使用javac编译器的-Xlint:-processing标志后的第二个:

<plugin>
  <artifactId>maven-compiler-plugin</artifactId>
  <executions>
    <execution>
      <id>default-testCompile</id>
      <configuration>
        <compilerArgument>-Xlint:-processing</compilerArgument>
      </configuration>
    </execution>
  <execution>
</plugin>


否则,我们可以使用

<compilerArgument>-proc:none</compilerArgument>

09-10 09:37