Package org.apache.maven.plugins.javadoc
Class AbstractFixJavadocMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.plugins.javadoc.AbstractFixJavadocMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
FixJavadocMojo,TestFixJavadocMojo
public abstract class AbstractFixJavadocMojo extends org.apache.maven.plugin.AbstractMojoAbstract class to fix Javadoc documentation and tags in source files.- Since:
- 2.6
- Author:
- Vincent Siveton
- See Also:
- Where Tags Can Be Used
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_VERSION_VALUEDefault version value.protected booleanignoreClirrFlag to ignore or not Clirr.static StringJAVA_FILESJava Files Pattern.
-
Constructor Summary
Constructors Constructor Description AbstractFixJavadocMojo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()protected StringgetArtifactType(org.apache.maven.project.MavenProject p)protected List<String>getCompileClasspathElements(org.apache.maven.project.MavenProject p)protected static StringgetJavaMethodAsString(com.thoughtworks.qdox.model.JavaExecutable javaExecutable)protected org.apache.maven.project.MavenProjectgetProject()protected List<String>getProjectSourceRoots(org.apache.maven.project.MavenProject p)
-
-
-
Field Detail
-
JAVA_FILES
public static final String JAVA_FILES
Java Files Pattern.- See Also:
- Constant Field Values
-
DEFAULT_VERSION_VALUE
public static final String DEFAULT_VERSION_VALUE
Default version value.- See Also:
- Constant Field Values
-
ignoreClirr
@Parameter(property="ignoreClirr", defaultValue="false") protected boolean ignoreClirrFlag to ignore or not Clirr.
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
getProject
protected final org.apache.maven.project.MavenProject getProject()
-
getArtifactType
protected String getArtifactType(org.apache.maven.project.MavenProject p)
- Parameters:
p- not null maven project.- Returns:
- the artifact type.
-
getProjectSourceRoots
protected List<String> getProjectSourceRoots(org.apache.maven.project.MavenProject p)
- Parameters:
p- not null maven project.- Returns:
- the list of source paths for the given project.
-
getCompileClasspathElements
protected List<String> getCompileClasspathElements(org.apache.maven.project.MavenProject p) throws org.apache.maven.artifact.DependencyResolutionRequiredException
- Parameters:
p- not null- Returns:
- the compile classpath elements
- Throws:
org.apache.maven.artifact.DependencyResolutionRequiredException- if any
-
getJavaMethodAsString
protected static String getJavaMethodAsString(com.thoughtworks.qdox.model.JavaExecutable javaExecutable)
- Parameters:
javaExecutable- not null- Returns:
- the fully qualify name of javaMethod with signature
-
-