must override a superclass method
<properties>
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
上边这个不解决问题,需要下边这个
http://lwjlaser.iteye.com/blog/1158459
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
</plugin>
奇怪的是,上下两种方法生成的class的magic都是32也就是java6阿,究竟target代表什么,
hd Start.class | head
00000000 ca fe ba be 00 00 00 32 03 d1 07 00 02 01 00 18 |.......2........|