javadoc-plugin error since plugin-pom 4.19 ?

330 views
Skip to first unread message

Goyot, Martin

unread,
Jul 5, 2021, 11:34:23 AM7/5/21
to jenkin...@googlegroups.com
Hi there,

We repeatedly run into an error trying to `maven release:prepare release:perform` our plugin. It would appear that the javadoc plugin was updated by plugin-pom 4.19 but maybe this is just a misguided guess. Someone with the same kind of error ?

here is the trace:

[WARNING] '/home/mgoyot/Cube/tuleap-api-plugin/target/checkout/target/tuleap-api.hpi' not allowed on the path, only outputDirectories and jars are accepted [INFO] No previous run data found, generating javadoc. [INFO] 1 error [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 27.899 s [INFO] Finished at: 2021-07-05T15:53:30+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.3.0:jar (attach-javadocs) on project tuleap-api: MavenReportException: Error while generating Javadoc: [ERROR] Exit code: 1 - javadoc: error - Error fetching URL: https://javadoc.jenkins.io/ [ERROR] [ERROR] Command line was: /usr/lib/jvm/java-11-openjdk-11.0.11.0.9-4.fc34.x86_64/bin/javadoc @options @packages [ERROR] [ERROR] Refer to the generated Javadoc files in '/home/mgoyot/Cube/tuleap-api-plugin/target/checkout/target/apidocs' dir. [ERROR] [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:55 min [INFO] Finished at: 2021-07-05T15:53:30+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:perform (default-cli) on project tuleap-api: Maven execution failed, exit code: '1' -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Mark Waite

unread,
Jul 5, 2021, 2:16:17 PM7/5/21
to jenkinsci-dev
There appears to be a problem in the Javadoc generation process for Jenkins core.  When I open https://javadoc.jenkins-ci.org/ , it shows 3 links (as expected).  When I click the "plugins" link and the "components" link, it opens a page listing those items.  When I click the "Jenkins core" link, it reports "404 - not found".

Will need some further research to understand why that Javadoc page is not being generated for Jenkins core.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CA%2Bb6JB_AQoQYSUmEyGcp2y9u%3DgoaKC8A3TqZJJxrONs1OkZqmA%40mail.gmail.com.

Mark Waite

unread,
Jul 5, 2021, 4:49:34 PM7/5/21
to Jenkins Developers
If you need to release in a hurry, you could generate the javadoc without the reference to https://javadoc.jenkins.io/ by adding the following into the builds section of your pom file:

        <plugins>
            <plugin>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>3.3.0</version>
                <configuration combine.self="override">
                    <source>8</source>
                    <quiet>false</quiet>
                    <links></links>
                </configuration>
            </plugin>
        </plugins>


Daniel Beck

unread,
Jul 6, 2021, 1:52:55 AM7/6/21
to JenkinsCI Developers


On Mon, Jul 5, 2021 at 8:16 PM Mark Waite <mark.ea...@gmail.com> wrote:

Will need some further research to understand why that Javadoc page is not being generated for Jenkins core.


Looks like it's a side effect of the 2.300 release not being in the usual repo (see my thread from last week). If so, it should resolve itself later today with the release of 2.301.

Mark Waite

unread,
Jul 6, 2021, 8:11:18 AM7/6/21
to Jenkins Developers
Thanks Daniel!

When it is resolved, we can close https://issues.jenkins.io/browse/WEBSITE-779 that reports the issue in the issue tracker.

Jesse Glick

unread,
Jul 6, 2021, 11:57:32 AM7/6/21
to Jenkins Dev
Reply all
Reply to author
Forward
0 new messages