Class MainGenerateMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.github.ascopes.protobufmavenplugin.mojo.AbstractGenerateMojo
io.github.ascopes.protobufmavenplugin.mojo.MainGenerateMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="generate", defaultPhase=GENERATE_SOURCES, requiresDependencyCollection=COMPILE_PLUS_RUNTIME, requiresDependencyResolution=NONE, requiresOnline=true, threadSafe=true) public final class MainGenerateMojo extends AbstractGenerateMojo
Generate source code from protobuf files.

This treats generated code as being part of the main source set. For test sources, use the generate-test goal instead.

Any project dependencies using the compile, provided, or system scopes will be made available to import from protobuf sources.

By default, sources will be read from src/main/protobuf, and generated sources will be written to target/generated-sources/protobuf.

Author:
Ashley Scopes
  • Constructor Details

    • MainGenerateMojo

      public MainGenerateMojo()