How to specify javadoc location jar file for maven dependency?

(Patryk Roszczyniała) #1

I want to add local javadoc jar to maven dependency. Is it possible? If yes, how can I do it? The problem is that I’ve got maven dependency which contains transitive jars

dependencies {

compile ‘org.eclipse.persistence:eclipselink:2.5.0’


‘gradle dependencies’ command returned this:

compile - Compile classpath for source set ‘main’.

±-- org.eclipse.persistence:eclipselink:2.5.0

±-- org.eclipse.persistence:javax.persistence:2.1.0

— org.eclipse.persistence:commonj.sdo:2.1.1

Main dependency ‘eclipselink’ contains javadoc for ‘javax.persistence’ so I can’t see javadoc hints in eclipse editor. What I want to do is to connect ‘eclipselink’ javadoc to ‘javax.persistence’.

This is what I expect:

dependencies {

compile ‘org.eclipse.persistence:javax.persistence:2.1.0’ {

javadoc =



This question is already posted on stackoverflow ( but without any answer so I decided to pos it here.

(Peter Niederwieser) #2

This will require some non-trivial configuration of ‘eclipse.classpath’. The question has been asked before, so you should find something either here or on Stack Overflow.

(Patryk Roszczyniała) #3

Thanks Peter. I’ve already answered at stackoverflow (