Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Javadoc generation failed due to not found package-list file when using Java 7 or 8

Hi,

thanks for the reply. I verified and I see any error lines but I have the following warning  - maybe be it is related

[WARNING] No packages found

I got it just before [INFO] Calling: cmd.exe /X /C ""C:\Program Files\Java\jdk1.8.0_31\jre\..\bin\javadoc.exe" @F:\Workspace\........\target\javadoc.options.txt"


Le 26/03/2015 14:51, SCHREIBER.Martin a écrit :

Hi,

 

it looks like that the call to javadoc fails because the files generated by Javadoc are missing.

Do you see any failure in the output beside the last couple of lines.

There must be an INFO output which looks like this (on Windows and similar on other platforms):

 

[INFO]: Calling: cmd.exe /X /C  <pathToJavaDoc.exe> @<pathToTargetDir>

 

The lines after that one are showing the Javadoc error(s) – if there are errors.

 

An error might be for example:

[INFO] Calling: cmd.exe /X /C ""C:\Program Files\Java\jdk1.8.0_25\jre\..\bin\javadoc.exe" @D:\tychoTest\foo.bar.myplugin\target\javadoc.options.txt"

javadoc: error - No packages or classes specified.

Usage: javadoc [options] [packagenames] [sourcefiles] [@files]

  -overview <file>                 Read overview documentation from HTML file

  -public                          Show only public classes and members

  -protected                       Show protected/public classes and members (default)

  -package                         Show package/protected/public classes and members

 

-martin

 

 

Von: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] Im Auftrag von Idrissa DIENG
Gesendet: Donnerstag, 26. März 2015 13:54
An: tycho-user@xxxxxxxxxxx
Betreff: [tycho-user] Javadoc generation failed due to not found package-list file when using Java 7 or 8

 

Hello,

I got the following error when using the tycho-document-bundle-plugin plugin (version 0.22.0) with Java 7 or 8:

Failed to execute goal org.eclipse.tycho.extras:tycho-document-bundle-plugin:0.22.0:javadoc (javadoc) on project xyz: Failed to run javadoc: Failed to generate toc file: ...xyz\docs\org.eclipse.sphinx.doc.isv\target\javadoc\reference\api\package-list (Le fichier spécifié est introuvable) -> [Help 1]

The same build work when using Java 6 but I got this issue both for Java 7 & 8.

Can you please help here?

<plugin>
                <groupId>org.eclipse.tycho.extras</groupId>
                <artifactId>tycho-document-bundle-plugin</artifactId>
                <version>${tycho.version}</version>
                <executions>
                    <execution>
                        <id>javadoc</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>javadoc</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${doc.output.folder}/reference/api</outputDirectory>
                            <tocFile>${doc.output.folder}/toc/javadoc.xml</tocFile>
                            <javadocOptions>
                                <additionalArguments>
                                    <additionalArgument>-encoding UTF-8</additionalArgument>
                                    <additionalArgument>-linkoffline
                                        http://docs.oracle.com/javase/7/docs/api/
                                        ${doc.output.folder}/input/javase-7</additionalArgument>
                                    <additionalArgument>-linkoffline
                                        http://www.osgi.org/javadoc/r4v43/
                                        ${doc.output.folder}/input/osgi-r4v43</additionalArgument>
                                </additionalArguments>
                            </javadocOptions>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

Thanks in advance



_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top