Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

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

Open
CC007 opened this issue Jul 20, 2020 · 3 comments

Comments

@CC007
Copy link
Contributor

CC007 commented Jul 20, 2020

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.

@Alan-Gomes
Copy link
Owner

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.

@CC007
Copy link
Contributor Author

CC007 commented Jul 20, 2020

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
Copy link
Contributor Author

CC007 commented Jul 20, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants