This question is about at how during maven build process is Lombok adding additional code during compile process.
I have been using Lombok for some time and am to some extent aware about it's features. If i look back at few good starter tutorials for Lombok, like this, they advice on using the below dependency
<dependencies>
...
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.20</version>
<scope>provided</scope>
</dependency>
...
</dependencies>
(For eclipse additional setup is required which is not my concern here. )
- So now with the above dependency added, if i do a
mvn clean compile
, will the boiler plate code be added to the generated class files. - If it does, how is this happening as there is no maven-compile stage plugin being added in the plugin section.
Above questions are based on the fact that Lombok code is added at compile time and not at run time.