edit delete favorite
Posted by mavenmaven on Nov 08, 2007
You must configure the source and target parameters in your pom, by default this is version 1.3. For example, to set the source and target JVM to 1.5, you should have in your pom.
<project>
  ...
  <build>
    ...
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
    </plugins>
    ...
  </build>
  ...
</project>
 
Must be logged in to add a comment or review

Comments

Please submit any bugs/features and report abuse. Thanks!
Spacer
Spacer
Spacer
Top Tags
Spacer