org.whitesource.maven
Class WhitesourceMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.whitesource.maven.WhitesourceMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- AgentMojo
public abstract class WhitesourceMojo
- extends org.apache.maven.plugin.AbstractMojo
Concrete implementation holding common functionality to all goals in this plugin.
- Author:
- Edo.Shor
Field Summary |
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.sonatype.aether.RepositorySystemSession |
repoSession
The current repository/network configuration of Maven. |
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. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
failOnError
@Parameter(defaultValue="false")
protected boolean failOnError
- Indicates whether the build will continue even if there are errors.
skip
@Parameter(defaultValue="false")
protected boolean skip
- Set this to 'true' to skip the maven execution.
session
@Component
protected org.apache.maven.execution.MavenSession session
mavenProject
@Component
protected org.apache.maven.project.MavenProject mavenProject
projectDependenciesResolver
@Component(hint="default")
protected org.apache.maven.project.ProjectDependenciesResolver projectDependenciesResolver
- The project dependency resolver to use.
repoSession
@Parameter(defaultValue="${repositorySystemSession}",
readonly=true,
required=true)
protected org.sonatype.aether.RepositorySystemSession repoSession
- The current repository/network configuration of Maven.
service
protected org.whitesource.agent.client.WhitesourceService service
WhitesourceMojo
public WhitesourceMojo()
doExecute
public abstract void doExecute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
createService
protected void createService()
handleError
protected void handleError(Exception error)
throws org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoFailureException
debug
protected void debug(CharSequence content)
debug
protected void debug(CharSequence content,
Throwable error)
info
protected void info(CharSequence content)
warn
protected void warn(CharSequence content,
Throwable error)
warn
protected void warn(CharSequence content)
error
protected void error(CharSequence content,
Throwable error)
error
protected void error(CharSequence content)
Copyright © 2011-2014 White Source. All Rights Reserved.