我正在我们的应用服务器上运行Junits,但出现了不支持的major.minor版本号51.0的故障。然而,网络应用程序构建、部署和运行正常。我不明白为什么会这样。我的Maven编译器配置如下:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<verbose>true</verbose>
<fork>true</fork>
<source>1.7</source>
<target>1.7</target>
<executable>${JAVA_1_7_HOME}/bin/javac</executable>
<encoding>ISO-8859-1</encoding>
<verbose>true</verbose>
</configuration>
</plugin>
我的Junit依赖项:
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
<version>4.10</version>
</dependency>
有人能够想到为什么这个失败了吗?