Package org.apache.maven.plugin.jxr
Class JxrReportUtil
java.lang.Object
org.apache.maven.plugin.jxr.JxrReportUtil
Utility class for the jxr report.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringgetMavenJavadocPluginBasicOption(org.apache.maven.project.MavenProject project, String optionName, String defaultValue) Returns theoptionNamevalue defined in a project for the "maven-javadoc-plugin" plugin.protected static List<?> getMavenJavadocPlugins(org.apache.maven.project.MavenProject project) Returns the plugin references for the javadoc plugin in a project.protected static StringgetStructure(org.apache.maven.project.MavenProject project, boolean ignoreMissingSiteUrl) Generates the site structure using the project hierarchy (project and its modules) or using the distributionManagement elements from the pom.xml.protected static booleanisJavadocAggregated(org.apache.maven.project.MavenProject project) Determine if javadoc is aggregated in this project, paying attention to both TODO: take cognizance of javadoc versus test-javadoc the old parameter and the new mojo.private static booleanisReportPluginJavaDocPlugin(String pluginArtifactId, org.apache.maven.model.ReportPlugin reportPlugin) private static booleanisReportPluginMavenJavadoc(String pluginArtifactId, org.apache.maven.model.Plugin plugin)
-
Field Details
-
MAVEN_JAVADOC_PLUGIN_GROUP_ID
- See Also:
-
MAVEN_JAVADOC_PLUGIN_ARTIFACT_ID
- See Also:
-
-
Constructor Details
-
JxrReportUtil
public JxrReportUtil()
-
-
Method Details
-
isJavadocAggregated
protected static boolean isJavadocAggregated(org.apache.maven.project.MavenProject project) Determine if javadoc is aggregated in this project, paying attention to both TODO: take cognizance of javadoc versus test-javadoc the old parameter and the new mojo.- Parameters:
project- the Maven project- Returns:
- if javadoc is aggregated, false otherwise
-
getMavenJavadocPluginBasicOption
protected static String getMavenJavadocPluginBasicOption(org.apache.maven.project.MavenProject project, String optionName, String defaultValue) Returns theoptionNamevalue defined in a project for the "maven-javadoc-plugin" plugin.- Parameters:
project- not nulloptionName- the option name wanteddefaultValue- a default value- Returns:
- the value for the option name or the default value. Could be null if not found.
-
getMavenJavadocPlugins
Returns the plugin references for the javadoc plugin in a project.- Parameters:
project- Maven project- Returns:
- list of Javadoc plugins
-
isReportPluginMavenJavadoc
private static boolean isReportPluginMavenJavadoc(String pluginArtifactId, org.apache.maven.model.Plugin plugin) -
isReportPluginJavaDocPlugin
private static boolean isReportPluginJavaDocPlugin(String pluginArtifactId, org.apache.maven.model.ReportPlugin reportPlugin) -
getStructure
protected static String getStructure(org.apache.maven.project.MavenProject project, boolean ignoreMissingSiteUrl) throws IOException Generates the site structure using the project hierarchy (project and its modules) or using the distributionManagement elements from the pom.xml.- Parameters:
project- the Maven projectignoreMissingSiteUrl- whether missing site url in distribution management of the POM should be ignored- Returns:
- the structure relative path
- Throws:
IOException- if site url is missing
-