I'm running Junits on our app server that fail with Unsupported major.minor version 51.0. But, the web application then builds, deploys, and runs fine. I don't understand how this can happen. My maven compiler's config looks like this:
<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>
And my Junit dependency:
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
<version>4.10</version>
</dependency>
Can anyone think of a reason this is failing?