Package io.github.checkleak.maven
Class AbstractPlugin
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- io.github.checkleak.maven.AbstractPlugin
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
InstallLib
public abstract class AbstractPlugin extends org.apache.maven.plugin.AbstractMojo
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.maven.artifact.repository.ArtifactRepositorylocalRepositoryprotected List<org.eclipse.aether.repository.RemoteRepository>remoteReposprotected org.eclipse.aether.RepositorySystemSessionrepoSessionprotected org.eclipse.aether.RepositorySystemrepositorySystem
-
Constructor Summary
Constructors Constructor Description AbstractPlugin()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddoExecute()voidexecute()protected List<org.eclipse.aether.artifact.Artifact>explodeDependencies(org.eclipse.aether.artifact.Artifact artifact)protected abstract booleanisIgnore()protected org.eclipse.aether.artifact.ArtifactnewArtifact(String artifactID)protected FileresolveArtifact(org.eclipse.aether.artifact.Artifact artifact)protected Set<File>resolveDependencies(String[] dependencyListParameter, String[] individualListParameter)
-
-
-
Field Detail
-
repositorySystem
@Component protected org.eclipse.aether.RepositorySystem repositorySystem
-
repoSession
@Parameter(defaultValue="${repositorySystemSession}") protected org.eclipse.aether.RepositorySystemSession repoSession
-
remoteRepos
@Parameter(defaultValue="${project.remoteProjectRepositories}") protected List<org.eclipse.aether.repository.RemoteRepository> remoteRepos
-
localRepository
@Parameter(defaultValue="${localRepository}") protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
-
-
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
-
isIgnore
protected abstract boolean isIgnore()
-
doExecute
protected abstract void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
newArtifact
protected org.eclipse.aether.artifact.Artifact newArtifact(String artifactID) throws org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoFailureException
-
resolveArtifact
protected File resolveArtifact(org.eclipse.aether.artifact.Artifact artifact) throws org.apache.maven.plugin.MojoExecutionException, org.eclipse.aether.collection.DependencyCollectionException
- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.eclipse.aether.collection.DependencyCollectionException
-
explodeDependencies
protected List<org.eclipse.aether.artifact.Artifact> explodeDependencies(org.eclipse.aether.artifact.Artifact artifact) throws org.eclipse.aether.collection.DependencyCollectionException
- Throws:
org.eclipse.aether.collection.DependencyCollectionException
-
resolveDependencies
protected Set<File> resolveDependencies(String[] dependencyListParameter, String[] individualListParameter) throws org.eclipse.aether.collection.DependencyCollectionException, org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
- Throws:
org.eclipse.aether.collection.DependencyCollectionExceptionorg.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionException
-
-