Class ImportFactoryMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.micronaut.maven.AbstractMicronautMojo
io.micronaut.maven.ImportFactoryMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="generate-import-factory", defaultPhase=GENERATE_SOURCES, threadSafe=true, requiresDependencyResolution=COMPILE_PLUS_RUNTIME) public class ImportFactoryMojo extends AbstractMicronautMojo
Import beans from project dependencies by generating factories annotated with @Import containing the list of packages.
Since:
4.5.0
Author:
Auke Schrijnen
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Name of the import factory mojo.

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

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    ImportFactoryMojo(org.apache.maven.project.MavenProject project)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class io.micronaut.maven.AbstractMicronautMojo

    setLog

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

    getLog, getPluginContext, setPluginContext

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • ImportFactoryMojo

      @Inject public ImportFactoryMojo(org.apache.maven.project.MavenProject project)
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException