Class ProtocTestCompileJavaNanoMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.xolstice.maven.plugin.protobuf.AbstractProtocMojo
org.xolstice.maven.plugin.protobuf.AbstractProtocTestCompileMojo
org.xolstice.maven.plugin.protobuf.ProtocTestCompileJavaNanoMojo
- 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 Summary
FieldsModifier and TypeFieldDescriptionprivate StringDeprecated.Additional comma-separated options to be passed to the JavaNano generator.private FileDeprecated.This is the directory into which the.javatest sources will be created.Fields inherited from class AbstractProtocTestCompileMojo
descriptorSetClassifierFields inherited from class AbstractProtocMojo
attachDescriptorSet, attachProtoSources, buildContext, descriptorSetFileName, includeDependenciesInDescriptorSet, includeSourceInfoInDescriptorSet, project, projectHelper, session, toolchainManager, useArgumentFile, writeDescriptorSetFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddProtocBuilderParameters(Protoc.Builder protocBuilder) Deprecated.Adds mojo-specific parameters to the protoc builder.protected FileDeprecated.Returns the output directory for generated sources.Methods inherited from class AbstractProtocTestCompileMojo
doAttachGeneratedFiles, doAttachProtoSources, getDependencyArtifacts, getDescriptorSetOutputDirectory, getProtoSourceRootMethods inherited from class AbstractProtocMojo
checkFilesUpToDate, checkParameters, createDependencyArtifact, createDependencyArtifact, createProtocPlugins, detectJavaHome, doAttachFiles, execute, findGeneratedFilesInDirectory, findProtoFilesInDirectories, findProtoFilesInDirectory, getDependencyArtifactFiles, getExcludes, getIncludes, hasDelta, lastModified, makeProtoPathFromJars, resolveBinaryArtifact, skipMojo, toHexString, truncatePathMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
outputDirectory
@Parameter(required=true, property="javananoTestOutputDirectory", defaultValue="${project.build.directory}/generated-test-sources/protobuf/javanano") private File outputDirectoryDeprecated.This is the directory into which the.javatest sources will be created. -
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
Deprecated.Description copied from class:AbstractProtocMojoAdds mojo-specific parameters to the protoc builder.- Overrides:
addProtocBuilderParametersin classAbstractProtocMojo- Parameters:
protocBuilder- the builder to be modified.
-
getOutputDirectory
Deprecated.Description copied from class:AbstractProtocMojoReturns the output directory for generated sources. Depends on build phase so must be defined in concrete implementation.- Specified by:
getOutputDirectoryin classAbstractProtocMojo- Returns:
- output directory for generated sources.
-