Apache Maven 1.x has reached its end of life, and is no longer supported. For more information, see the announcement. Users are encouraged to migrate to the current version of Apache Maven.

Frequently Asked Questions

JDK 1.5

  1. How do I get Maven to compile using JDK 1.5?

JDK 1.5

How do I get Maven to compile using JDK 1.5?

The default javac settings cause problems with jdk 1.5 because the target is set to 1.1 and no source has been set.

You will need to provide two properties to allow compilation to work with 1.5:

maven.compile.source=1.5
maven.compile.target=1.5