You can use lombok with maven by adding the following to your
pom.xml:
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>@VERSION@</version>
</dependency>
</dependencies>
For now you also need to add the following repository, though we've put in a request at apache to add lombok to
the central maven repository, so you may want to try it without this extra block first and see if it works. If not, also add:
<repositories>
<repository>
<id>projectlombok.org</id>
<url>http://projectlombok.org/mavenrepo</url>
</repository>
</repositories>
That's all there is to it!