You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (Jira)" <ji...@apache.org> on 2021/05/01 10:12:00 UTC
[jira] [Closed] (MJAVADOC-672) misleading Exit code: 2 - javadoc:
error - No source files for package
[ https://issues.apache.org/jira/browse/MJAVADOC-672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte closed MJAVADOC-672.
-----------------------------------
Fix Version/s: 3.3.0
Assignee: Robert Scholte
Resolution: Fixed
Fixed in [f3c6b4a2582b5c689af9e8fabaea0d647e3ce9c4|https://gitbox.apache.org/repos/asf?p=maven-javadoc-plugin.git;a=commit;h=f3c6b4a2582b5c689af9e8fabaea0d647e3ce9c4]
> misleading Exit code: 2 - javadoc: error - No source files for package
> ----------------------------------------------------------------------
>
> Key: MJAVADOC-672
> URL: https://issues.apache.org/jira/browse/MJAVADOC-672
> Project: Maven Javadoc Plugin
> Issue Type: Improvement
> Components: javadoc
> Affects Versions: 3.1.1
> Reporter: Ernst Reissner
> Assignee: Robert Scholte
> Priority: Major
> Fix For: 3.3.0
>
>
> Configuration is done as follows:
> {code:java}
> // code
> <!-- javadoc plugin -->
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-javadoc-plugin</artifactId>
> <version>3.1.1</version>
> <configuration> <!--phase>generate-sources</phase--> <!-- this is the default -->
> <sourcepath>src/main/java:src/test/java</sourcepath>
> <tags>
> <tag>
> <name>todo</name>
> <placement>a</placement>
> <head>what is to be done in the present code fragment;
> jopas only</head>
> </tag>
> <tag>
> <name>To.Do</name>
> <placement>a</placement>
> <head>ToDo: </head>
> </tag>
> </tags>
> ...
> </plugin>
> {code}
> The outcoming when doing mvn javadoc:test-javadoc is as follows:
> ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.1.1:test-javadoc (default-cli) on project l2r: An error has occurred in Test Javadoc report generation:
> [ERROR] Exit code: 2 - javadoc: error - No source files for package jopas
> [ERROR]
> [ERROR] Command line was: /usr/lib64/jvm/java/bin/javadoc @options @argfile
> [ERROR]
> [ERROR] Refer to the generated Javadoc files in '/home/ernst/Software/target/site/testapidocs' dir.
> Note that the package is not org.jopas, but just jopas.
> In the tag definition, there is a line break just before jopas.
> If I remove that line break, all works fine.
> I think this gives indication to very gragilepom reading.. either this plugin or maven.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)