mcspring-boot icon indicating copy to clipboard operation
mcspring-boot copied to clipboard

As HeadsPluginAPI developer I would like to be able to have the bytecode match the source, so that I can debug the code properly

Open CC007 opened this issue 4 years ago • 3 comments

I saw that you are using lombok in your source code. This causes issues while debugging, because the source code doesn't match up with the bytecode in the .class file.

One way to fix this is to run the delombok with the lombok-maven-plugin, so that the sources in the artefact sources don't contain lombok.

CC007 avatar Jul 20 '20 18:07 CC007

Hello, delombok is already included in the project:

https://github.com/Alan-Gomes/mcspring-boot/blob/master/pom.xml#L198-L215

Maybe you're not downloading the dependency sources.

Alan-Gomes avatar Jul 20 '20 18:07 Alan-Gomes

This is true, but while you do use this lombok output for your maven-javadoc-plugin, you do not use it for your maven-source-plugin

CC007 avatar Jul 20 '20 23:07 CC007

Here is a good explanation on how to do this:

https://stackoverflow.com/questions/52362413/create-and-install-de-lomboked-source-jar-in-maven

The first answer lays the foundation and the second answer makes it more generally usable

CC007 avatar Jul 20 '20 23:07 CC007