Uploaded image for project: 'Maven Javadoc Plugin'
  1. Maven Javadoc Plugin
  2. MJAVADOC-728

Dependencies not resolved for aggregate-jar

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.2.0, 3.4.1
    • None
    • jar, javadoc
    • None

    Description

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

      [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:

              <maven.compiler.source>1.8</maven.compiler.source>
              <maven.compiler.target>1.8</maven.compiler.target> 

      which are not overriden in the core module.

      Attachments

        Activity

          People

            Unassigned Unassigned
            SkytAsul Youenn LE JEUNE
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: