How to build SonarLint source code using Maven?

1k Views Asked by At

I am trying to build sonar lint for eclipse for development purpose and adding a new language. I made some changes but I am not able to generate a zip file which I can locally install in eclipse as a plugin.

I have tried

mvn clean package : Not working clean install : Not working mvn compile : Not working

I have even tried opening plugin.xml and clicked the green play button which showed at the right corner of the screen as written in github. But it still does not work.

I am not finding any documentation related to this, how can we generate plugin to install it in eclipse.

1

There are 1 best solutions below

10
Sambit On BEST ANSWER

As I have understood your question, you want to build sonarlint eclipse plugin source code using Maven. Here is the command.

mvn clean package

Once build is successful, go to the following directory.

org.sonarlint.eclipse.site\target

You will find the zip file of your plugin ie. org.sonarlint.eclipse.site-4.2.0-SNAPSHOT.zip