You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Donatien RIVIERE (JIRA)" <ji...@apache.org> on 2019/02/22 09:28:00 UTC
[jira] [Commented] (MJAVADOC-338) When
includeDependencySources=true the javadoc plugin should not download the
internet every time it is run
[ https://issues.apache.org/jira/browse/MJAVADOC-338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16774939#comment-16774939 ]
Donatien RIVIERE commented on MJAVADOC-338:
-------------------------------------------
The issue is still there (using maven-javadoc-plugin:3.0.1) with includeSourceDependencies = true and includeTransitiveSourceDependencies = false:
{code:xml}
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>aggregate-javadoc</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<outputDirectory>target/apidocs</outputDirectory>
<attach>true</attach>
<debug>true</debug>
<verbose>true</verbose>
<includeDependencySources>true</includeDependencySources>
<includeTransitiveDependencySources>false</includeTransitiveDependencySources>
<stylesheetfile>${basedir}/src/main/javadoc/javadoc_stylesheet.css</stylesheetfile>
<detectOfflineLinks>false</detectOfflineLinks>
<links>
<link>http://docs.oracle.com/javase/8/docs/api/</link>
</links>
<excludePackageNames>.internal:.config</excludePackageNames>
<sourceFileExcludes>
<exclude>com/company/core/Check*.java</exclude>
</sourceFileExcludes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<!-- framework -->
<dependency>
<groupId>com.company</groupId>
<artifactId>fwk-library-1</artifactId>
</dependency>
<dependency>
<groupId>com.company</groupId>
<artifactId>fwk-library-2</artifactId>
</dependency>
<!-- test materials -->
<dependency>
<groupId>com.company</groupId>
<artifactId>fwk-commons</artifactId>
<type>test-jar</type>
</dependency>
</dependencies>
{code}
Which results in a veeery long list of `javadoc-resources.jar` download attempts:
{code:none}
[INFO] --- maven-javadoc-plugin:3.0.1:jar (aggregate-im-javadoc) @ im-javadoc ---
Downloading: http://vbet0008g.gre.hpecorp.net:8080/nexus/content/groups/public/org/apache/activemq/activemq-openwire-legacy/5.15.7/activemq-openwire-legacy-5.15.7-javadoc-resources.jar
Downloading: http://vbet0008g.gre.hpecorp.net:8080/nexus/content/groups/public/org/neo4j/driver/neo4j-java-driver/1.7.2/neo4j-java-driver-1.7.2-javadoc-resources.jar
Downloading: http://vbet0008g.gre.hpecorp.net:8080/nexus/content/groups/public/org/aspectj/aspectjrt/1.8.9/aspectjrt-1.8.9-javadoc-resources.jar
Downloading: http://vbet0008g.gre.hpecorp.net:8080/nexus/content/groups/public/org/eclipse/jetty/jetty-server/9.4.11.v20180605/jetty-server-9.4.11.v20180605-javadoc-resources.jar
Downloading: http://vbet0008g.gre.hpecorp.net:8080/nexus/content/groups/public/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0-javadoc-resources.jar
Downloading: http://vbet0008g.gre.hpecorp.net:8080/nexus/content/groups/public/org/eclipse/jetty/jetty-http/9.4.11.v20180605/jetty-http-9.4.11.v20180605-javadoc-resources.jar
Downloading: http://vbet0008g.gre.hpecorp.net:8080/nexus/content/groups/public/org/eclipse/jetty/jetty-io/9.4.11.v20180605/jetty-io-9.4.11.v20180605-javadoc-resources.jar
Downloading: http://vbet0008g.gre.hpecorp.net:8080/nexus/content/groups/public/org/eclipse/jetty/jetty-webapp/9.4.11.v20180605/jetty-webapp-9.4.11.v20180605-javadoc-resources.jar
Downloading: http://vbet0008g.gre.hpecorp.net:8080/nexus/content/groups/public/org/eclipse/jetty/jetty-xml/9.4.11.v20180605/jetty-xml-9.4.11.v20180605-javadoc-resources.jar
Downloading: http://vbet0008g.gre.hpecorp.net:8080/nexus/content/groups/public/org/eclipse/jetty/jetty-util/9.4.11.v20180605/jetty-util-9.4.11.v20180605-javadoc-resources.jar
Downloading: http://vbet0008g.gre.hpecorp.net:8080/nexus/content/groups/public/org/eclipse/jetty/jetty-servlet/9.4.11.v20180605/jetty-servlet-9.4.11.v20180605-javadoc-resources.jar
Downloading: http://vbet0008g.gre.hpecorp.net:8080/nexus/content/groups/public/org/eclipse/jetty/jetty-security/9.4.11.v20180605/jetty-security-9.4.11.v20180605-javadoc-resources.jar
[...]
{code}
This process can take almost one hour ....
> When includeDependencySources=true the javadoc plugin should not download the internet every time it is run
> -----------------------------------------------------------------------------------------------------------
>
> Key: MJAVADOC-338
> URL: https://issues.apache.org/jira/browse/MJAVADOC-338
> Project: Maven Javadoc Plugin
> Issue Type: Bug
> Affects Versions: 2.8
> Reporter: Geoffrey De Smet
> Priority: Major
>
> This is my configuration:
> {code}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-javadoc-plugin</artifactId>
> <executions>
> <execution>
> <phase>package</phase>
> <goals>
> <goal>javadoc</goal>
> </goals>
> </execution>
> </executions>
> <configuration>
> <includeDependencySources>true</includeDependencySources>
> <includeTransitiveDependencySources>true</includeTransitiveDependencySources>
> <dependencySourceIncludes>
> <dependencySourceInclude>org.drools:*</dependencySourceInclude>
> </dependencySourceIncludes>
> </configuration>
> </plugin>
> {code}
> the javadoc plugins downloads a very long list of dependencies every time it is run:
> {code}
> gdesmet@gdesmetRedHat2010 droolsjbpm-uber-distribution [master *] $ mvn javadoc:javadoc
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Drools and jBPM uber distribution 5.4.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO]
> [INFO] >>> maven-javadoc-plugin:2.8:javadoc (default-cli) @ droolsjbpm-uber-distribution >>>
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.0:enforce (default) @ droolsjbpm-uber-distribution ---
> [INFO]
> [INFO] <<< maven-javadoc-plugin:2.8:javadoc (default-cli) @ droolsjbpm-uber-distribution <<<
> [INFO]
> [INFO] --- maven-javadoc-plugin:2.8:javadoc (default-cli) @ droolsjbpm-uber-distribution ---
> [WARNING] Missing POM for stax:stax-ri:jar:1.0
> [WARNING] Missing POM for javax.ejb:ejb:jar:3.0
> [WARNING] Missing POM for com.sun:tools:jar:javadoc-resources:1.5.0
> [WARNING] Missing POM for woodstox:wstx-asl:jar:3.2.2
> [WARNING] Missing POM for org.springframework.osgi:log4j.osgi:jar:1.2.15-SNAPSHOT
> [WARNING] Missing POM for javax.servlet.jsp.jstl:jstl:jar:1.2
> Downloading: http://repository.jboss.org/nexus/content/groups/public/org/springframework/org.springframework.beans/3.0.0.RELEASE/org.springframework.beans-3.0.0.RELEASE.pom
> Downloading: https://repository.jboss.org/nexus/content/repositories/deprecated/org/springframework/org.springframework.beans/3.0.0.RELEASE/org.springframework.beans-3.0.0.RELEASE.pom
> Downloading: http://repo1.maven.org/maven2/org/springframework/org.springframework.beans/3.0.0.RELEASE/org.springframework.beans-3.0.0.RELEASE.pom
> [WARNING] Missing POM for org.springframework:org.springframework.beans:jar:javadoc-resources:3.0.0.RELEASE
> Downloading: http://repository.jboss.org/nexus/content/groups/public/org/springframework/org.springframework.asm/3.0.0.RELEASE/org.springframework.asm-3.0.0.RELEASE.pom
> Downloading: https://repository.jboss.org/nexus/content/repositories/deprecated/org/springframework/org.springframework.asm/3.0.0.RELEASE/org.springframework.asm-3.0.0.RELEASE.pom
> Downloading: http://repo1.maven.org/maven2/org/springframework/org.springframework.asm/3.0.0.RELEASE/org.springframework.asm-3.0.0.RELEASE.pom
> [WARNING] Missing POM for org.springframework:org.springframework.asm:jar:javadoc-resources:3.0.0.RELEASE
> Downloading: http://repository.jboss.org/nexus/content/groups/public/org/springframework/org.springframework.core/3.0.0.RELEASE/org.springframework.core-3.0.0.RELEASE.pom
> Downloading: https://repository.jboss.org/nexus/content/repositories/deprecated/org/springframework/org.springframework.core/3.0.0.RELEASE/org.springframework.core-3.0.0.RELEASE.pom
> Downloading: http://repo1.maven.org/maven2/org/springframework/org.springframework.core/3.0.0.RELEASE/org.springframework.core-3.0.0.RELEASE.pom
> [WARNING] Missing POM for org.springframework:org.springframework.core:jar:javadoc-resources:3.0.0.RELEASE
> Downloading: http://repository.jboss.org/nexus/content/groups/public/org/springframework/org.springframework.aop/3.0.0.RELEASE/org.springframework.aop-3.0.0.RELEASE.pom
> Downloading: https://repository.jboss.org/nexus/content/repositories/deprecated/org/springframework/org.springframework.aop/3.0.0.RELEASE/org.springframework.aop-3.0.0.RELEASE.pom
> Downloading: http://repo1.maven.org/maven2/org/springframework/org.springframework.aop/3.0.0.RELEASE/org.springframework.aop-3.0.0.RELEASE.pom
> [WARNING] Missing POM for org.springframework:org.springframework.aop:jar:javadoc-resources:3.0.0.RELEASE
> Downloading: http://repository.jboss.org/nexus/content/groups/public/org/springframework/org.springframework.aspects/3.0.0.RELEASE/org.springframework.aspects-3.0.0.RELEASE.pom
> Downloading: https://repository.jboss.org/nexus/content/repositories/deprecated/org/springframework/org.springframework.aspects/3.0.0.RELEASE/org.springframework.aspects-3.0.0.RELEASE.pom
> Downloading: http://repo1.maven.org/maven2/org/springframework/org.springframework.aspects/3.0.0.RELEASE/org.springframework.aspects-3.0.0.RELEASE.pom
> [WARNING] Missing POM for org.springframework:org.springframework.aspects:jar:javadoc-resources:3.0.0.RELEASE
> Downloading: http://repository.jboss.org/nexus/content/groups/public/org/springframework/org.springframework.context/3.0.0.RELEASE/org.springframework.context-3.0.0.RELEASE.pom
> Downloading: https://repository.jboss.org/nexus/content/repositories/deprecated/org/springframework/org.springframework.context/3.0.0.RELEASE/org.springframework.context-3.0.0.RELEASE.pom
> Downloading: http://repo1.maven.org/maven2/org/springframework/org.springframework.context/3.0.0.RELEASE/org.springframework.context-3.0.0.RELEASE.pom
> [WARNING] Missing POM for org.springframework:org.springframework.context:jar:javadoc-resources:3.0.0.RELEASE
> Downloading: http://repository.jboss.org/nexus/content/groups/public/org/springframework/org.springframework.context.support/3.0.0.RELEASE/org.springframework.context.support-3.0.0.RELEASE.pom
> Downloading: https://repository.jboss.org/nexus/content/repositories/deprecated/org/springframework/org.springframework.context.support/3.0.0.RELEASE/org.springframework.context.support-3.0.0.RELEASE.pom
> Downloading: http://repo1.maven.org/maven2/org/springframework/org.springframework.context.support/3.0.0.RELEASE/org.springframework.context.support-3.0.0.RELEASE.pom
> [WARNING] Missing POM for org.springframework:org.springframework.context.support:jar:javadoc-resources:3.0.0.RELEASE
> Downloading: http://repository.jboss.org/nexus/content/groups/public/org/springframework/org.springframework.expression/3.0.0.RELEASE/org.springframework.expression-3.0.0.RELEASE.pom
> Downloading: https://repository.jboss.org/nexus/content/repositories/deprecated/org/springframework/org.springframework.expression/3.0.0.RELEASE/org.springframework.expression-3.0.0.RELEASE.pom
> Downloading: http://repo1.maven.org/maven2/org/springframework/org.springframework.expression/3.0.0.RELEASE/org.springframework.expression-3.0.0.RELEASE.pom
> [WARNING] Missing POM for org.springframework:org.springframework.expression:jar:javadoc-resources:3.0.0.RELEASE
> Downloading: http://repository.jboss.org/nexus/content/groups/public/net/sourceforge/jexcelapi/com.springsource.jxl/2.6.6/com.springsource.jxl-2.6.6.pom
> Downloading: https://repository.jboss.org/nexus/content/repositories/deprecated/net/sourceforge/jexcelapi/com.springsource.jxl/2.6.6/com.springsource.jxl-2.6.6.pom
> Downloading: http://repo1.maven.org/maven2/net/sourceforge/jexcelapi/com.springsource.jxl/2.6.6/com.springsource.jxl-2.6.6.pom
> [WARNING] Missing POM for net.sourceforge.jexcelapi:com.springsource.jxl:jar:javadoc-resources:2.6.6
> Downloading: http://repository.jboss.org/nexus/content/groups/public/com/thoughtworks/xstream/com.springsource.com.thoughtworks.xstream/1.3.1/com.springsource.com.thoughtworks.xstream-1.3.1.pom
> Downloading: https://repository.jboss.org/nexus/content/repositories/deprecated/com/thoughtworks/xstream/com.springsource.com.thoughtworks.xstream/1.3.1/com.springsource.com.thoughtworks.xstream-1.3.1.pom
> Downloading: http://repo1.maven.org/maven2/com/thoughtworks/xstream/com.springsource.com.thoughtworks.xstream/1.3.1/com.springsource.com.thoughtworks.xstream-1.3.1.pom
> [WARNING] Missing POM for com.thoughtworks.xstream:com.springsource.com.thoughtworks.xstream:jar:javadoc-resources:1.3.1
> Downloading: http://repository.jboss.org/nexus/content/groups/public/org/joda/com.springsource.org.joda.time/1.6.0/com.springsource.org.joda.time-1.6.0.pom
> Downloading: https://repository.jboss.org/nexus/content/repositories/deprecated/org/joda/com.springsource.org.joda.time/1.6.0/com.springsource.org.joda.time-1.6.0.pom
> Downloading: http://repo1.maven.org/maven2/org/joda/com.springsource.org.joda.time/1.6.0/com.springsource.org.joda.time-1.6.0.pom
> [WARNING] Missing POM for org.joda:com.springsource.org.joda.time:jar:javadoc-resources:1.6.0
> Downloading: http://repository.jboss.org/nexus/content/groups/public/org/antlr/com.springsource.org.antlr.runtime/3.1.3/com.springsource.org.antlr.runtime-3.1.3.pom
> Downloading: https://repository.jboss.org/nexus/content/repositories/deprecated/org/antlr/com.springsource.org.antlr.runtime/3.1.3/com.springsource.org.antlr.runtime-3.1.3.pom
> Downloading: http://repo1.maven.org/maven2/org/antlr/com.springsource.org.antlr.runtime/3.1.3/com.springsource.org.antlr.runtime-3.1.3.pom
> [WARNING] Missing POM for org.antlr:com.springsource.org.antlr.runtime:jar:javadoc-resources:3.1.3
> Downloading: http://repository.jboss.org/nexus/content/groups/public/org/antlr/com.springsource.org.antlr/3.1.3/com.springsource.org.antlr-3.1.3.pom
> Downloading: https://repository.jboss.org/nexus/content/repositories/deprecated/org/antlr/com.springsource.org.antlr/3.1.3/com.springsource.org.antlr-3.1.3.pom
> Downloading: http://repo1.maven.org/maven2/org/antlr/com.springsource.org.antlr/3.1.3/com.springsource.org.antlr-3.1.3.pom
> [WARNING] Missing POM for org.antlr:com.springsource.org.antlr:jar:javadoc-resources:3.1.3
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)