title: I use maven test to run my project but it said I was using JDK 1.3
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6513479/maven-install-annotations-are-not-supported-in-source-1-3">Maven Install: “Annotations are not supported in -source 1.3”</a>  </p>
  </blockquote>
  
  
  
  <p>I use ubuntu 10.04 and open-jdk-1.6.0.</p>
  
  <p>This is my mvn -version output:</p>
  
  <pre><code>Apache Maven 2.2.1 (rdebian-1)
  Java version: 1.6.0_20
  Java home: /usr/lib/jvm/java-6-openjdk/jre
  Default locale: en_US, platform encoding: UTF-8
  OS name: "linux" version: "2.6.32-37-generic" arch: "i386" Family: "unix"
  </code></pre>
  
  <p>But when I run mvn test, there are some errors:</p>
  
  <pre><code>/home/unionx/workspace/java/try-netty/src/test/java/net/bluedash/trynetty/DataTypeTest.java:[3,7] static import declarations are not supported in -source 1.3
  (use -source 5 or higher to enable static import declarations)
  import static org.junit.Assert.assertEquals;
  
  /home/unionx/workspace/java/try-netty/src/test/java/net/bluedash/trynetty/DataTypeTest.java:[11,2] annotations are not supported in -source 1.3
  (use -source 5 or higher to enable annotations)
  @Test
  
  /home/unionx/workspace/java/try-netty/src/test/java/net/bluedash/trynetty/ChannelBufferTest.java:[3,7] static import declarations are not supported in -source 1.3
  (use -source 5 or higher to enable static import declarations)
  import static org.junit.Assert.*;
  
  /home/unionx/workspace/java/try-netty/src/test/java/net/bluedash/trynetty/ChannelBufferTest.java:[11,2] annotations are not supported in -source 1.3
  (use -source 5 or higher to enable annotations)
  @Test
  
  /home/unionx/workspace/java/try-netty/src/test/java/net/bluedash/trynetty/PathTest.java:[3,7] static import declarations are not supported in -source 1.3
  (use -source 5 or higher to enable static import declarations)
  import static org.junit.Assert.*;
  
  /home/unionx/workspace/java/try-netty/src/test/java/net/bluedash/trynetty/PathTest.java:[11,2] annotations are not supported in -source 1.3
  (use -source 5 or higher to enable annotations)
  @Test
  </code></pre>
  
  <p>I seems that the mvn thought I use java 1.3, perhaps it just support java 1.5?</p>