You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Martin Höller (Jira)" <ji...@apache.org> on 2023/02/21 09:57:00 UTC
[jira] [Commented] (MJAVADOC-728) Dependencies not resolved for aggregate-jar
[ https://issues.apache.org/jira/browse/MJAVADOC-728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17691490#comment-17691490 ]
Martin Höller commented on MJAVADOC-728:
----------------------------------------
Problem still exists with m-javadoc-p 3.5.0. Tested with maven-site-plugin 3.12.1 and 4.0.0-M5.
For me, the problem only exists if I generate JavaDoc via the maven-site-plugin. Running
{{ mvn clean site}}
fails, while running
{{ mvn clean javadoc:javadoc}}
runs fine.
> Dependencies not resolved for aggregate-jar
> -------------------------------------------
>
> Key: MJAVADOC-728
> URL: https://issues.apache.org/jira/browse/MJAVADOC-728
> Project: Maven Javadoc Plugin
> Issue Type: Bug
> Components: jar, javadoc
> Affects Versions: 3.2.0, 3.4.1
> Reporter: Youenn LE JEUNE
> Priority: Major
>
> When building a multi-modules project using {{maven clean install javadoc:aggregate-jar}} I'm getting this:
> {code:java}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.4.1:aggregate-jar (default-cli) on project beautyquests-parent: MavenReportException: Error while generating Javadoc:
> [ERROR] Exit code: 1 - Loading source file C:\Users\skyta\Documents\eclipse-workspace\BeautyQuests\core\src\main\java\fr\skytasul\quests\api\AbstractHolograms.java...
> [ERROR] Loading source file C:\Users\skyta\Documents\eclipse-workspace\BeautyQuests\core\src\main\java\fr\skytasul\quests\api\bossbar\BQBossBarImplementation.java...
> ...much more similar lines...
> [ERROR] Loading source files for package fr.skytasul.quests.api...
> ...again similar lines...
> [ERROR] Constructing Javadoc information...
> [ERROR] C:\Users\skyta\Documents\eclipse-workspace\BeautyQuests\core\src\main\java\fr\skytasul\quests\commands\CommandsManager.java:9: error: cannot find symbol
> [ERROR] import org.jetbrains.annotations.Unmodifiable;
> [ERROR] ^
> [ERROR] symbol: class Unmodifiable
> [ERROR] location: package org.jetbrains.annotations
> [ERROR] C:\Users\skyta\Documents\eclipse-workspace\BeautyQuests\core\src\main\java\fr\skytasul\quests\gui\ImmutableItemStack.java:9: error: cannot access HoverEventSource
> [ERROR] public class ImmutableItemStack extends ItemStack {
> [ERROR] ^
> [ERROR] class file for net.kyori.adventure.text.event.HoverEventSource not found
> ... 71 other errors ...{code}
> The javadoc generation fails on every dependency class/annotation/etc. access.
> Simply using the {{javadoc:jar}} plugin works, but it is not what I want.
> My parent project has those properties:
> {code:java}
> <maven.compiler.source>1.8</maven.compiler.source>
> <maven.compiler.target>1.8</maven.compiler.target> {code}
> which are not overriden in the _core_ module.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)