User Tools

Site Tools


lombok

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
lombok [2020/07/02 18:40]
admin
lombok [2020/07/02 19:49] (current)
admin
Line 7: Line 7:
 To install it in eclipse you have to execute the downloaded jar (with java -jar or double click) and pick the current eclipse installation. You have to restart eclipse and you can see it is installed if you go to the installed componentes and see it on this list. To install it in eclipse you have to execute the downloaded jar (with java -jar or double click) and pick the current eclipse installation. You have to restart eclipse and you can see it is installed if you go to the installed componentes and see it on this list.
  
 +In addition, it is required that you import the library to your project. For example, in [[maven]] you have to write somthing like that
  
 +  <​dependency>​
 +  <​groupId>​org.projectlombok</​groupId>​
 +  <​artifactId>​lombok</​artifactId>​
 +  <​version>​1.18.12</​version>​
 +  <​scope>​provided</​scope>​
 +  </​dependency> ​
 +
 +And if you are in eclipse you have to do Maven->​Update project and Run -> Clean and Run -> Install
 +
 +Sometimes happens that maven downloads incorrectly the library. Then eclipse doesn'​t recognize the lombok annotations. The way to discover that is that when you run the maven install, you'll see an error regarding that like
 +
 +  [ERROR] error: error reading C:​\Users\xxx\.m2\repository\org\projectlombok\lombok\1.18.12\lombok-1.18.12.jar;​ invalid LOC header (bad signature)
 +
 +The solution is to remove manually the projectlombok folder and run maven install again. It will download again it and the error will be gone.
lombok.1593708007.txt.gz ยท Last modified: 2020/07/02 18:40 by admin