murat8505 / projectlombok

Automatically exported from code.google.com/p/projectlombok
0 stars 1 forks source link

NetBeans Maven project with Lombok fails to compile #785

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please discuss feature requests first on
https://groups.google.com/forum/#!forum/project-lombok

What steps will reproduce the problem?
1.create a new maven Java application
2.create a new Java main class
3.add dependency on Lombok.1.16.0
4.populate it with fields, and annotate with @Data, add getX() invocation
5.clean and build

What is the expected output? What do you see instead?
expected a successful build.  Build failed on getter methods.

What version of the product are you using? On what operating system?
1.16.0 or 1.16.2, windows7, NetBeans8.0.2

Please provide any additional information below.
Attached are snapshots showing failures in 1.16.0 and 1.16.2, and success
with 1.14.8

Original issue reported on code.google.com by rchr...@gmail.com on 11 Feb 2015 at 9:01

Attachments:

GoogleCodeExporter commented 9 years ago
I had similar problem at 1.16.2, and fixed to add below dependency.

javax.annotation:jsr250-api:1.0

Original comment by sis.yosh...@gmail.com on 12 Feb 2015 at 7:01

GoogleCodeExporter commented 9 years ago
I have the similar problem, even with javax.annotation:jsr250-api:1.0 added as 
dependency. It fails whenever maven tries to compile a test that invokes one of 
the Lombok-generated methods.

Happens on both 1.16.0 and 1.16.2, 1.14.8 works fine as reported in the issue. 
I have these dependencies set in pom.xml:

<dependency>
  <groupId>org.projectlombok</groupId>
  <artifactId>lombok</artifactId>
  <version>1.16.2</version>
</dependency>
<dependency>
  <groupId>javax.annotation</groupId>
  <artifactId>jsr250-api</artifactId>
  <version>1.0</version>
</dependency>

Original comment by thomasri...@gmail.com on 18 Mar 2015 at 2:54

GoogleCodeExporter commented 9 years ago
Hi,

I have been experiencing the same issue, only after 1.16 release (same as the 
rest).

Kind Regards,

Ewout.

Original comment by ewout.va...@gmail.com on 25 Mar 2015 at 2:38

GoogleCodeExporter commented 9 years ago
Same problem here, with JDK 8u20, Netbeans 8.0.2 and Lombok 1.16.2

Original comment by vaclav.s...@gmail.com on 4 Apr 2015 at 6:11

GoogleCodeExporter commented 9 years ago
Had the same problem in production, while my CI was compiling fine. Apperently 
this was due running on an older Maven version in production. 

Failing:
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.8.0_40, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "3.13.0-43-generic", arch: "amd64", family: "unix"

Success:

Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 
2014-02-14T18:37:52+01:00)
Maven home: /usr/share/maven3
Java version: 1.8.0_40, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "3.13.0-43-generic", arch: "amd64", family: "unix"

Original comment by JWGmelig...@gmail.com on 4 May 2015 at 5:23