Class ServiceloaderMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
eu.somatik.maven.serviceloader.ServiceloaderMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="generate", defaultPhase=COMPILE, requiresDependencyResolution=COMPILE, requiresProject=true, threadSafe=true) public class ServiceloaderMojo extends org.apache.maven.plugin.AbstractMojo
Goal that generates the services files
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.maven.project.MavenProject
    Maven Internal: Project to interact with.

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The main entry point for this Mojo.
     
    org.apache.maven.project.MavenProject
     
     
    void
    setBuildContext(org.sonatype.plexus.build.incremental.BuildContext buildContext)
     

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • project

      @Parameter(property="project", required=true, readonly=true) protected org.apache.maven.project.MavenProject project
      Maven Internal: Project to interact with.
  • Constructor Details

    • ServiceloaderMojo

      public ServiceloaderMojo()
  • Method Details

    • getProject

      public org.apache.maven.project.MavenProject getProject()
    • getServices

      public String[] getServices()
    • getCompileClasspath

      public List<String> getCompileClasspath()
    • setBuildContext

      public void setBuildContext(org.sonatype.plexus.build.incremental.BuildContext buildContext)
    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      The main entry point for this Mojo.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - when an exception occurred during the execution of this plugin