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

To run the doc plugin, the projects must be part of the reactor and must be specified as dependencies in the plugin where you have the tycho-document-bundle-plugin configured, in other words, it’s not possible to only build the document plugin.

Btw. I am using Java7 and Java8 with tycho version 0.22.0.

 

-martin

 

 

Von: Idrissa DIENG [mailto:idydieng@xxxxxxxxx]
Gesendet: Freitag, 27. März 2015 10:20
An: SCHREIBER.Martin; Tycho user list
Cc: Idrissa DIENG
Betreff: Re: AW: [tycho-user] Javadoc generation failed due to not found package-list file when using Java 7 or 8

 

The problem seems to be related to the reactor. I built all required feature and for testing I build only the documentation plugin.
I see this INFO

[INFO] Cleaning up first
[INFO] Did not find project Dependency {groupId=org.eclipse.sphinx.features, artifactId=org.eclipse.sphinx, version=0.9.0-SNAPSHOT, type=jar} in reactor

so, I will run a full built and keep you informed if it solve the problem

Le 27/03/2015 10:12, Idrissa DIENG a écrit :

Hi,

please see my comments below

Le 27/03/2015 07:08, SCHREIBER.Martin a écrit :

Hi,

 

Strange why it seems to work with Java6 but it looks like that your pom setup is not correct.

Yes I aggree it is very strange

Does the pom file where you specify the tycho-document-bundle-plugin stuff have any dependencies to features/plugins that you to create Javadoc for?

In my case the pom where I uses the tycho-document-bundle-plugin specifies required dependencies (only features)

And does this dependencies do have exported packages in their MANIFEST.MF files?

Yes packages are exported in relevant plugins

 

My setup – which works fine – looks like this:

Which tycho and java version did you used?

 

pom.xml  -> parent pom that does build all the plugins, the feature and the Javadoc project:

 

  <modules>

    <module>foo.bar.myplugin</module>

    <module>foo.bar.myotherplugin</module>

    <module>foo.bar.feature</module>

    <module>javadoc</module>

  </modules>

 

foo.bar.myplugin/pom.xml -> an eclipse-plugin that does have exported packages inside the MANIFEST.MF

foo.bar.myotherplugin/pom.xml -> another eclipse-plugin also exporting some packages

foo.bar.feature/pom.xml -> the eclipse-feature

javadoc/pom.xml -> packaging type pom, containing dependencies to the plugins java doc should be generated for and of course the tycho-document-bundle-plugin definition similar to what you have:

 

  <dependencies>

    <dependency>

        <groupId>foo.bar</groupId>

        <artifactId>foo.bar.myplugin</artifactId>

        <version>1.0.0-SNAPSHOT</version>

      </dependency>

     <dependency>

        <groupId>foo.bar</groupId>

        <artifactId>foo.bar.myotherplugin</artifactId>

        <version>1.0.0-SNAPSHOT</version>

      </dependency>

  </dependencies>

 

 

Hth

martin

 

Von: Idrissa DIENG [mailto:idydieng@xxxxxxxxx]
Gesendet: Donnerstag, 26.
März 2015 15:20
An: Tycho user list
Cc: SCHR
EIBER.Martin
Betreff: 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