Questions tagged [maven-javadoc-plugin]

The Maven Javadoc Plugin uses the Javadoc tool to generate javadocs for the specified project.

The documentation on the Maven Java Doc plugin can be used to read more in detail how the javadoc plugin works and how to configure particular areas of the JavaDoc generation for a project.

193 questions
5
votes
2 answers

Execution attach-javadocs of goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.0:jar failed with Java10

Following the link Upgrade to Java 10 breaks links in Javadoc comments to JDK packages and trying to reproduce the same while I could set the build configuration to :
Naman
  • 23,555
  • 22
  • 173
  • 290
5
votes
1 answer

maven-javadoc-plugin overwrites central repository

I have a problem with the Maven Javadoc Plugin and a custom doclet. I'm using the maven-javadoc-plugin v2.10.1 and a custom doclet which is basicly a maven jar project. I have also a settings.xml which defines the central repository to a custom…
5
votes
1 answer

How to use AsciiDoclet to generate asciidoc file from javadoc comments in .java file

I'm newbie with asciidoc. I want to generate HTML Documentation from commented javadoc (in asciidoc format) in java file. for example java file /** * = Asciidoclet * * Sample comments that include `source code`. * * [source,java] * -- *…
Piyush
  • 1,388
  • 2
  • 20
  • 38
5
votes
1 answer

Why does Maven use the wrong plugin despite explicit plugin and pluginManagement version?

My parent pom exlicitly declares a dependence on maven-javadoc-plugin 2.9.1 in both org.apache.maven.plugins maven-javadoc-plugin
djb
  • 4,569
  • 1
  • 31
  • 35
5
votes
1 answer

JavaDoc giving fully-qualified class name... how to abbreviate?

Problem I'm running mvn javadoc:javadoc to generate JavaDoc, and I am pleased with the results, except for one thing: it gives the fully qualified class names for any class coming from a third-party library or our own codebase. For example, It gives…
ktm5124
  • 10,750
  • 18
  • 65
  • 104
4
votes
1 answer

maven 3 javadoc plugin ignores configuration

I use maven 3 and have my javadoc configured according to the new maven 3 siteplugin+javadoc configuration. However all of my javadoc configuration parameters seem to be ignored. So no package grouping, no source linking etc. My project is a multi…
4
votes
1 answer

How to link source classes JavaDoc from Test JavaDoc in maven site?

Having configured maven-site-plugin and maven-javadoc-plugin (with doclava doclet), I'm trying to get proper JavaDocs on the site generated by mvn site. In my code I have sevaral JUnit test classes (located in src/test/java/my/package/*.java) which…
Evgeny A.
  • 711
  • 2
  • 8
  • 19
4
votes
1 answer

Why mvn javadoc:fix shows success while in the same project mvn javadoc:javadoc fails afterwards?

I am trying to fix existing Javadocs into the project. I am running mvn javadoc:fix. It executes successfully BUT doesn't fix some of the Javadocs. Configuration of Maven Javadoc plugin: [DEBUG] Configuring mojo…
4
votes
2 answers

maven javadoc:fix fails to autofix docs

I am migrating the MWS Feeds API project from Ant to Maven. See MWS Feeds Maven port. I get all the time the same error which makes no sense for me when executing mvn javadoc:fix. [ERROR] Failed to execute…
Dmytro Chasovskyi
  • 2,169
  • 3
  • 18
  • 44
4
votes
1 answer

How to make Maven Javadoc Plugin work with any Java version

I'm using Maven Javadoc Plugin like this org.apache.maven.plugins maven-javadoc-plugin 3.1.1
John29
  • 2,830
  • 2
  • 27
  • 48
4
votes
1 answer

Maven 3: Generate Javadoc for defined artifacts

I want to generate javadocs only for certain artifacts of my project from within a dedicated docs-project. That means that I would like to have an independent project called "docs" for example. In the docs/pom.xml I would like to define the…
Jens
  • 15,326
  • 9
  • 51
  • 75
4
votes
2 answers

Maven Release Plugin deployment of sources.jar and javadoc.jar

I use maven release plugin for generating release of my project. I do not want to generate Javadoc all time I build. On the other hand when I call release:perform I would like if maven would generate sources.jar and javadoc.jar and would deploy it…
4
votes
1 answer

Javadoc warning being shown while generating the package

I'm working on the javadocs of a project, fixing all the errors and warnings that Javadoc shows.. But after fixing most of them, there are just this one that is being shown for some reason that I can't imagine. 4 warnings [WARNING] Javadoc…
Magno Nascimento
  • 595
  • 2
  • 17
4
votes
3 answers

How to make Maven build (goal site) fail on Javadoc warnings?

I am building my Maven project with the goal site. There are Javadoc warnings in the output. In this case my Maven build has to fail. Is there a way to do that? Here is the code snippet of my POM (I am using Maven 3.3):
4
votes
4 answers

Maven, javadoc : No source files for package

I'm writing a maven package with directory structure frtex pom.xml frtex/src/main/java/some-files.java frtex/src/main/java/utils/some-other-files.java Making mvn test works fine. My problem is mvn javadoc:javadoc that produces the right…
1 2
3
12 13