You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Steinar Bang (JIRA)" <ji...@apache.org> on 2019/04/03 17:43:00 UTC
[jira] [Commented] (MJAVADOC-596) aggregate-jar doesn't create any
artifact on the top jar
[ https://issues.apache.org/jira/browse/MJAVADOC-596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16808968#comment-16808968 ]
Steinar Bang commented on MJAVADOC-596:
---------------------------------------
I was able to work around the issue by downgrading to version 3.0.1 of the maven-javadoc-plugin, which successfully created a javadoc jar consisting of all javadoc and attach this jar to the top pom of a multi module maven project.
> aggregate-jar doesn't create any artifact on the top jar
> --------------------------------------------------------
>
> Key: MJAVADOC-596
> URL: https://issues.apache.org/jira/browse/MJAVADOC-596
> Project: Maven Javadoc Plugin
> Issue Type: Bug
> Affects Versions: 3.1.0
> Environment: debian 9.8 "stretch", amd64, openjdk 8u212-b01-1~deb9u1, maven 3.6.0
> Reporter: Steinar Bang
> Priority: Major
>
> Starting with version 3.1.0 it is no longer possible to use the aggregate-jar goal to create a javadoc jar for the entire project and attach it to the top pom.
> Instead the following error is logged:
> {noformat}
> [INFO] <<< maven-javadoc-plugin:3.1.0:aggregate-jar (aggregate-javadocs) < compile @ authservice <<<
> [INFO]
> [INFO]
> [INFO] --- maven-javadoc-plugin:3.1.0:aggregate-jar (aggregate-javadocs) @ authservice ---
> [INFO] Not executing Javadoc as the project is not a Java classpath-capable package
> {noformat}
> The configuration for javadoc in the top POM, is:
> {noformat}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-javadoc-plugin</artifactId>
> <configuration>
> <show>private</show>
> </configuration>
> <executions>
> <execution>
> <id>attach-javadocs</id>
> <goals>
> <goal>jar</goal>
> </goals>
> </execution>
> <execution>
> <id>aggregate-javadocs</id>
> <goals>
> <goal>aggregate-jar</goal>
> </goals>
> <phase>prepare-package</phase>
> <configuration>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)