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

Compile errors and warning when generating the test-javadoc

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.10.1
    • 2.10.3
    • None
    • None

    Description

      With the changes to the classpath done in MJAVADOC-398 and MJAVADOC-406, this means now I get javadoc warnings and errors when creating a site. The errors fail the build.

      This showed up because code in src/test/java used constants defined in src/main/java.

      Work around was to revert to 2.9.1

      Sample pom snipit
       <build>
          <pluginManagement>
            <plugins>
              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <!-- <version>2.9.1</version> -->
                <version>2.10.1</version>
                <configuration>
                  <detectLinks>false</detectLinks>
                  <detectOfflineLinks>true</detectOfflineLinks>
                </configuration>
              </plugin>
            </plugins>
          </pluginManagement>
        </build>
        <reporting>
          <plugins>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-javadoc-plugin</artifactId>
              <configuration>
                <detectLinks>false</detectLinks>
                <detectOfflineLinks>true</detectOfflineLinks>
              </configuration>
              <reportSets>
                <reportSet>
                  <id>default</id>
                  <reports>
                    <report>javadoc</report>
                    <report>test-javadoc</report>
                  </reports>
                </reportSet>
              </reportSets>
            </plugin>
          </plugins>
        </reporting>
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            khmarbaise Karl Heinz Marbaise
            sellersj Jim Sellers
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment