Class ProtocCompileJavaNanoMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="compile-javanano",
          defaultPhase=GENERATE_SOURCES,
          requiresDependencyResolution=COMPILE,
          threadSafe=true)
    @Deprecated
    public final class ProtocCompileJavaNanoMojo
    extends AbstractProtocCompileMojo
    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 main JavaNano sources from protocol buffer definitions. It also searches dependency artifacts 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 resources so that they are included in the final artifact.
    Since:
    0.4.3
    • Field Detail

      • outputDirectory

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

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

      • ProtocCompileJavaNanoMojo

        public ProtocCompileJavaNanoMojo()
        Deprecated.
    • Method Detail

      • getOutputDirectory

        protected java.io.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.