apache / apache/maven-javadoc-plugin

[MJAVADOC-728] Dependencies not resolved for aggregate-jar

Open
#1,097 3 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
107
Forks
116
Avg merge
1d 10h
Merged PRs (30d)
16

Description

**[Youenn LE JEUNE](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER295089)** opened **[MJAVADOC-728](https://issues.apache.org/jira/browse/MJAVADOC-728?redirect=false)** and commented

When building a multi-modules project using `maven clean install javadoc:aggregate-jar` I'm getting this:

```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 ...
```

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:

```java
        1.8
        1.8
```

which are not overriden in the _core_ module.

---

**Affects:** 3.2.0, 3.4.1

3 votes, 4 watchers

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the multi-module build with `maven clean install javadoc:aggregate-jar`, using the dependency and compiler-property details in the report. Trace how `aggregate-jar` resolves dependencies; done means dependency classes and annotations such as `Unmodifiable` and `HoverEventSource` are available and aggregate Javadoc generation succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.