Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I access spark javadoc or sources from java project?

I'm using Spark from a java project on IntelliJ 14 CE. Is there any way to navigate to the Spark sources or javadoc? By default it only shows the rough decompile code without any comment. I wouldn't mind navigating to the scala code if there was a way to do it. But maybe it would be better to plug in the javadoc, but I cannot find it anywhere

thanks

like image 649
Daniel Pinyol Avatar asked Aug 18 '15 08:08

Daniel Pinyol


2 Answers

What did the trick to me was to install the Scala plugin for IntelliJ, I was then able to navigate and debug through the spark core (which is written in scala), in spite of the project being in Java, and properly see the Javadoc, which was automatically inferred from the scala source code. Of course, you also need to have the Spark source code properly setup, easy to do using Gradle or Maven.

like image 126
FelipeKunzler Avatar answered Sep 18 '22 14:09

FelipeKunzler


"right click on your pom.xml" -> "Maven" -> then choose "Download Sources and Documentation"

To avoid this in the future: "Preferences" -> "Build, Execution, Deployment" -> "Build Tools" -> "Maven" -> "Importing" -> Check the Automatically download Sources and Documentation boxes.

Credit to Yacov Schondorf and Stephen Boesch from Intellij user forums.

like image 45
JMess Avatar answered Sep 16 '22 14:09

JMess