maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Wu (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (MJAVADOC-514) Maven Javadoc Plugin can't get dependency from third party maven repository
Date Wed, 21 Feb 2018 20:50:00 GMT

    [ https://issues.apache.org/jira/browse/MJAVADOC-514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16371967#comment-16371967
] 

Justin Wu edited comment on MJAVADOC-514 at 2/21/18 8:49 PM:
-------------------------------------------------------------

Tried on old version 2.10.4, it only searches my own maven repository , complains some
library like log4j is not found:

 

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.4:jar (attach-javadoc)
on project myProject: MavenReportException: Error while generating Javadoc: Unable to find
artifact:groupId = 'log4j'
 [ERROR] artifactId = 'log4j'
 [ERROR] version = '1.2.17': Failure to find log4j:log4j:bundle:1.2.17 in [http://my_maven_server:8081/nexus/content/repositories/releases/]
was cached in the local
repository, resolution will not be reattempted until the update interval of main has elapsed
or updates are forced


was (Author: wuyg719):
Tried on old version 2.10.4, it only searches my own maven repository , complains some
library like log4j is not found:

 

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.4:jar (attach-javadoc)
on project myProject: MavenReportException: Error whil
nerating Javadoc: Unable to find artifact:groupId = 'log4j'
[ERROR] artifactId = 'log4j'
[ERROR] version = '1.2.17': Failure to find log4j:log4j:bundle:1.2.17 in http://my_maven_server:8081/nexus/content/repositories/releases/
was cached in the local
sitory, resolution will not be reattempted until the update interval of main has elapsed or
updates are forced

> Maven Javadoc Plugin can't get dependency from third party maven repository
> ---------------------------------------------------------------------------
>
>                 Key: MJAVADOC-514
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-514
>             Project: Maven Javadoc Plugin
>          Issue Type: Bug
>         Environment: maven 3.2.x
>            Reporter: Justin Wu
>            Priority: Major
>
> I had a Jar is saved in my own maven repository which is runing on Nexus.
> It works well if it is a normal maven dependency.
> but it fails if I declare it in Maven Javadoc Plugin:
>  
> [INFO] --- maven-javadoc-plugin:3.0.0:jar (attach-javadoc) @ treaty ---
> Downloading: https://repo.maven.apache.org/maven2/com/mycompany/util/object-tree-creator/1.0/object-tree-creator-1.0.pom
> [WARNING] The POM for com.mycompany.util:object-tree-creator:jar:1.0 is missing, no dependency
information available
> Downloading: +[https://repo.maven.apache.org/maven2/com/mycompany/util/object-tree-creator/1.0/object-tree-creator-1.0.jar|https://repo.maven.apache.org/maven2/com/validusre/util/object-tree-creator/1.0/object-tree-creator-1.0.jar]+
>  
>  
> This is my code:
>  
> <plugin>
>  <groupId>org.apache.maven.plugins</groupId>
>  <artifactId>maven-javadoc-plugin</artifactId>
>  <version>3.0.0</version>
>  <configuration>
>  <doclet>bm.mycompany.common.doclet.MyDoclet</doclet>
> <docletPath>${project.build.directory}/../../shared-java/target/classes;${project.build.directory}/classes</docletPath>
>  <sourcePath>${project.build.directory}/../../shared-java/src/java;${project.build.directory}/../src/java</sourcePath>
>  <encoding>UTF-8</encoding>
>  <show>public</show>
>  <subpackages>com.mycompany.api</subpackages>
>  <useStandardDocletOptions>false</useStandardDocletOptions>
>  
>  <docletArtifacts>
>  <!-- has to declare doclet dependency if we need it -->
>  <docletArtifact>
>  <groupId>javax.ws.rs</groupId>
>  <artifactId>javax.ws.rs-api</artifactId>
>  <version>2.0.1</version>
>  </docletArtifact>
>  <docletArtifact>
>  <groupId>javax.servlet</groupId>
>  <artifactId>servlet-api</artifactId>
>  <version>2.5</version>
>  </docletArtifact>
>  
>  <docletArtifact>
>  <groupId>com.mycompany.util</groupId>
>  <artifactId>object-tree-creator</artifactId>
>  <version>1.0</version>
>  </docletArtifact>
>  
>  </docletArtifacts>
> ...



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message