You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ernst Reissner (Jira)" <ji...@apache.org> on 2021/02/14 09:37:00 UTC
[jira] [Created] (MJAVADOC-672) misleading Exit code: 2 - javadoc:
error - No source files for package jopas
Ernst Reissner created MJAVADOC-672:
---------------------------------------
Summary: misleading Exit code: 2 - javadoc: error - No source files for package jopas
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
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)