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

Maven Javadoc Plugin can't get dependency from third party maven repository

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      maven 3.2.x

      Description

      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>
      
      ...
      

        Attachments

          Activity

            People

            • Assignee:
              rfscholte Robert Scholte
              Reporter:
              wuyg719 Justin Wu
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: