We Recommend

Object-Oriented Programming in Pascal: A Graphical Approach Object-Oriented Programming in Pascal: A Graphical Approach
Covers all of the essential concepts of objectoriented programming, including object re-use, inheritance, virtual methods, and polymorphisms.


Posted By

arunpjohny on 02/07/08


Tagged

maven


Versions (?)


Setting compiler version to Java5 in maven2


Published in: Other 


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


  1. <profile>
  2. <id>java5</id>
  3. <properties>
  4. <build-home>D:/Build-Loc/build-cougar</build-home>
  5. <maven.compiler.compilerVersion>5</maven.compiler.compilerVersion>
  6. <maven.compiler.executable>pathto/bin/javac</maven.compiler.executable>
  7. <maven.compiler.source>5</maven.compiler.source>
  8. <maven.compiler.target>5</maven.compiler.target>
  9. </properties>
  10. </profile>

Report this snippet 

You need to login to post a comment.