Maven JavaDoc Plugin by providing Source path

1.9k Views Asked by At
<plugin>
     <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-javadoc-plugin</artifactId>
    <version>2.9.1</version>
    <configuration>
   <sourcepath>${svn url}/src/main/java</sourcepath>
    </configuration>
 </plugin>

Doesn't generate Javadoc while running goal as maven javadoc:javadoc because the source is not available in a maven project. Can I pass the svn url directly?

1

There are 1 best solutions below

4
On

The source code for which i want to generate javadoc is not maven project.so externally i had created maven project ,in that project i need to generate javadoc

Firstly , you do NOT need a maven project to generate source code for any project whatsoever.

As the source is not available in maven project.I am passing directly svn url

Why are you passing the SVN url here ? Since it is now a maven project, simply specify the path to the source folder of the project ( which I believe will be ${base.dir}/src/main/java )