You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Anton Atanassov (JIRA)" <ji...@apache.org> on 2015/12/18 17:22:46 UTC

[jira] [Created] (MJAVADOC-440) -sourcepath config option does not work with explicit jar file

Anton Atanassov created MJAVADOC-440:
----------------------------------------

             Summary: -sourcepath config option does not work with explicit jar file
                 Key: MJAVADOC-440
                 URL: https://issues.apache.org/jira/browse/MJAVADOC-440
             Project: Maven Javadoc Plugin
          Issue Type: Bug
    Affects Versions: 2.10.3, 2.10.1
         Environment: Linux 2.6.32-358.23.2.el6.x86_64 x86_64

using maven 3.3.3
            Reporter: Anton Atanassov


I have this config of my javadoc plugin goal in a pom:

<execution>
  <goals>
    <goal>jar</goal>
  </goals>
  <configuration>
    <sourcepath>"absolute path to jar"</sourcepath>
  </configuration>
</execution>

when I execute:
mvn clean install -X

The resulting options file for the javadoc generation does not mention at all the jar file in the sourcepath option. And obviously the sources in the jar are not included in the generated html documentation. Javadoc tool supports passing jar files with sources into the sourcepath option but it seems that the maven javadoc plugin has a limitation. If I extract the jar and use the folder in the source path all is well. Also it would be nice if I can append to the default source path rather than replace it.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)