Class 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 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
    • Constructor Detail

      • AbstractPlugin

        public AbstractPlugin()
    • Method Detail

      • 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
      • 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.MojoExecutionException
        org.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.MojoExecutionException
        org.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.DependencyCollectionException
        org.apache.maven.plugin.MojoFailureException
        org.apache.maven.plugin.MojoExecutionException