Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lombok annotations do not work in netbeans with maven

<dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
        <version>0.12.0</version>
        <scope>compile</scope>
    </dependency>

Not generating the getter or setter when using maven and can not find the option to turn it on when I use netbeans maven project.

In maven projects that are not only active when this happens the option that lombok recommended (http://projectlombok.org/setup/netbeans.html) maven project but can not find it and neither generates.

Thanks for your time.

like image 629
josemm1790 Avatar asked Sep 16 '13 01:09

josemm1790


1 Answers

This worked for me with Netbeans 8

https://blogs.oracle.com/geertjan/entry/lombok_maven_and_netbeans

            <dependency>
                <groupId>org.projectlombok</groupId>
                <artifactId>lombok</artifactId>
                <version>1.14.4</version>
                <scope>provided</scope>
            </dependency>

Then you should also make a mvn clean package in the CLI, before it actually works.

like image 172
juanmf Avatar answered Oct 15 '22 00:10

juanmf