org.whitesource.maven
public abstract class WhitesourceMojo extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
failOnError
Indicates whether the build will continue even if there are errors.
|
protected org.apache.maven.project.MavenProject |
mavenProject |
protected org.apache.maven.project.ProjectDependenciesResolver |
projectDependenciesResolver
The project dependency resolver to use.
|
protected org.whitesource.agent.client.WhitesourceService |
service |
protected org.apache.maven.execution.MavenSession |
session |
protected boolean |
skip
Set this to 'true' to skip the maven execution.
|
| Constructor and Description |
|---|
WhitesourceMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createService() |
protected void |
debug(CharSequence content) |
protected void |
debug(CharSequence content,
Throwable error) |
abstract void |
doExecute() |
protected void |
error(CharSequence content) |
protected void |
error(CharSequence content,
Throwable error) |
void |
execute() |
protected void |
handleError(Exception error) |
protected void |
info(CharSequence content) |
protected void |
warn(CharSequence content) |
protected void |
warn(CharSequence content,
Throwable error) |
@Parameter(defaultValue="false") protected boolean failOnError
@Parameter(defaultValue="false") protected boolean skip
@Component protected org.apache.maven.execution.MavenSession session
@Component protected org.apache.maven.project.MavenProject mavenProject
@Component(hint="default") protected org.apache.maven.project.ProjectDependenciesResolver projectDependenciesResolver
protected org.whitesource.agent.client.WhitesourceService service
public abstract void doExecute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void createService()
protected void handleError(Exception error) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void debug(CharSequence content)
protected void debug(CharSequence content, Throwable error)
protected void info(CharSequence content)
protected void warn(CharSequence content, Throwable error)
protected void warn(CharSequence content)
protected void error(CharSequence content, Throwable error)
protected void error(CharSequence content)
Copyright © 2011-2015 White Source. All Rights Reserved.