English 中文(简体)
支持源版本RELEASE_5 来自注解处理器... 是什么意思?
原标题:What does "Supported source version RELEASE_5 from annotation processor..." mean?

它意味着什么,以及如何可以删除它(为更好的可读性而调整格式)?

[INFO] Compiling 30 source files to ...	arget	est-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>

使用-Xlint:javac 汇编者:

<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>
问题回答

这里有两个无关的警告。 首先,有一个类别声称它想看附加说明, 但是它只理解 Java 5 语法, 而且您在命令行指定 Java 6 语法; 其次, 你在那里有一些 Java 6 语法说明, 但是没有看到它们 。

它们都听起来相当安全,可以忽略,但不幸的是,无论试图在这里运行 javac (是 apt 吗? ), 都无法理解输出。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...