From 10a4211346d76b5ae04161003ed0213a5d554b43 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Wed, 2 Sep 2009 01:27:58 +0200 Subject: Explained the correct pom magic incantation to force maven to use a v1.6 compiler. --- website/mavenrepo/index.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'website/mavenrepo/index.html') diff --git a/website/mavenrepo/index.html b/website/mavenrepo/index.html index 1d791e31..ea7b8715 100644 --- a/website/mavenrepo/index.html +++ b/website/mavenrepo/index.html @@ -59,6 +59,19 @@ <url>http://projectlombok.org/mavenrepo</url> </repository> </repositories> +
+ CAREFUL: lombok requires using the javac v1.6 compiler. If this is not your default compiler, you'll need to add the following to your + pom file to explicitly set the java compiler version to use: +
<plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <compilerVersion>1.6</compilerVersion> + <source>1.6</source> + <target>1.6</target> + </configuration> +</plugin>
+
That's all there is to it!
note: You'll still need to download lombok, or doubleclick on the lombok.jar file downloaded by maven, to install lombok into your eclipse installation.
Download lombok.jar -- cgit