Apache

Docs Plugins

Javadoc Plugin 3.12.0 · Other versions

The Apache Maven Javadoc Plugin is a plugin that uses the javadoc tool for generating javadocs for the specified project.

Source
Generated from the code
Wrong?
Report a problem

CPD Results

The following document contains the results of PMD's CPD 7.7.0.

Duplications

File Line
org/apache/maven/plugins/javadoc/TestJavadocJarMojo.java 176
org/apache/maven/plugins/javadoc/TestJavadocReport.java 184
}

    @Override
    protected List<File> getProjectBuildOutputDirs(MavenProject p) {
        List<File> dirs = new ArrayList<>();
        if (StringUtils.isNotEmpty(p.getBuild().getOutputDirectory())) {
            dirs.add(new File(p.getBuild().getOutputDirectory()));
        }
        if (StringUtils.isNotEmpty(p.getBuild().getTestOutputDirectory())) {
            dirs.add(new File(p.getBuild().getTestOutputDirectory()));
        }

        return dirs;
    }

    @Override
    protected List<String> getProjectSourceRoots(MavenProject p) {
        if ("pom".equals(p.getPackaging().toLowerCase(Locale.ENGLISH))) {