QuickTip : annotations are not supported in -source 1.3

Posted on Tuesday, May 13, 2008

15


If you are using Maven 2 and you see this issue when you are building your applications then easy way out is to add the following snippet to your pom.xml

<build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
    </plugins>
  </build>

Another tip: For posting source code on wordpress click here

Advertisements
Posted in: Java