mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 08:18:29 +00:00
Explained the correct pom magic incantation to force maven to use a v1.6 compiler.
This commit is contained in:
1 parent
c66654505f
commit
10a4211346
1 file changed
+13
@@ -59,6 +59,19 @@
|
||||
<url>http://projectlombok.org/mavenrepo</url>
|
||||
</repository>
|
||||
</repositories></div>
|
||||
<div>
|
||||
<em><strong>CAREFUL:</strong></em> 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:
|
||||
<div class="snippet"><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></div>
|
||||
</div>
|
||||
That's all there is to it!<br />
|
||||
<em>note:</em> You'll still need to download lombok, or doubleclick on the lombok.jar file downloaded by maven, to install lombok into your eclipse installation.<br />
|
||||
<a id="downloadLink" href="http://projectlombok.googlecode.com/files/lombok.jar">Download lombok.jar</a>
|
||||
|
||||
Reference in new issue
Block a user