You need Java 5 to build Lutece. Make sure that Maven is invoked with a Java 5 VM : your JAVA_HOME environment variable should be set to the base directory of your Java 5 JRE or SDK installation.
Check that you have declared maven-lutece-plugin in your project's POM (the pom.xml file in the root directory). For an example of how to do this, see the usage page.