Return to Snippet

Revision: 5051
at February 7, 2008 22:18 by arunpjohny


Initial Code
<profile>
    <id>java5</id>
    <properties>
        <build-home>D:/Build-Loc/build-cougar</build-home>
	<maven.compiler.compilerVersion>5</maven.compiler.compilerVersion>
        <maven.compiler.executable>pathto/bin/javac</maven.compiler.executable>
	<maven.compiler.source>5</maven.compiler.source>
	<maven.compiler.target>5</maven.compiler.target>
    </properties>
</profile>

Initial URL


Initial Description
This is used to set the compiler version to Java5 in maven2. We can put this in pom.xml, in the profile section. 

If we activate this profile, all the  projects we build will follow Java5 compilation

Initial Title
Setting compiler version to Java5 in maven2

Initial Tags


Initial Language
Other