Class ProtocTestCompileJavaNanoMojo

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

@Mojo(name="test-compile-javanano", defaultPhase=GENERATE_TEST_SOURCES, requiresDependencyResolution=TEST, threadSafe=true) @Deprecated public final class ProtocTestCompileJavaNanoMojo extends AbstractProtocTestCompileMojo
Deprecated.
JavaNano has been deprecated in favour of Java Lite. Please see Protocol Buffers documentation for details.
This mojo executes the protoc compiler for generating test JavaNano sources from protocol buffer definitions. It also searches dependency artifacts in the test scope for .proto files and includes them in the proto_path so that they can be referenced. Finally, it adds the .proto files to the project as test resources so that they can be included in the test-jar artifact.
Since:
0.4.3
  • Field Details

    • outputDirectory

      @Parameter(required=true, property="javananoTestOutputDirectory", defaultValue="${project.build.directory}/generated-test-sources/protobuf/javanano") private File outputDirectory
      Deprecated.
      This is the directory into which the .java test sources will be created.
    • javaNanoOptions

      @Parameter(required=false, property="javaNanoOptions") private String javaNanoOptions
      Deprecated.
      Additional comma-separated options to be passed to the JavaNano generator. Cannot contain colon (:) symbols.
  • Constructor Details

    • ProtocTestCompileJavaNanoMojo

      public ProtocTestCompileJavaNanoMojo()
      Deprecated.
  • Method Details

    • addProtocBuilderParameters

      protected void addProtocBuilderParameters(Protoc.Builder protocBuilder)
      Deprecated.
      Description copied from class: AbstractProtocMojo
      Adds mojo-specific parameters to the protoc builder.
      Overrides:
      addProtocBuilderParameters in class AbstractProtocMojo
      Parameters:
      protocBuilder - the builder to be modified.
    • getOutputDirectory

      protected File getOutputDirectory()
      Deprecated.
      Description copied from class: AbstractProtocMojo
      Returns the output directory for generated sources. Depends on build phase so must be defined in concrete implementation.
      Specified by:
      getOutputDirectory in class AbstractProtocMojo
      Returns:
      output directory for generated sources.