You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2021/05/01 10:44:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17337781#comment-17337781 ]
Hudson commented on MJAVADOC-672:
---------------------------------
Build failed in Jenkins: Maven » Maven TLP » maven-javadoc-plugin » master #52
See https://ci-builds.apache.org/job/Maven/job/maven-box/job/maven-javadoc-plugin/job/master/52/
> 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)