@Mojo(name="compile-custom", defaultPhase=GENERATE_SOURCES, requiresDependencyResolution=COMPILE, threadSafe=true) public final class ProtocCompileCustomMojo extends AbstractProtocCompileMojo
protoc compiler with the specified plugin
executable to generate main 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.descriptorSetClassifierattachDescriptorSet, attachProtoSources, buildContext, descriptorSetFileName, includeDependenciesInDescriptorSet, includeSourceInfoInDescriptorSet, project, projectHelper, session, toolchainManager, useArgumentFile, writeDescriptorSet| Constructor and Description |
|---|
ProtocCompileCustomMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addProtocBuilderParameters(Protoc.Builder protocBuilder)
Adds mojo-specific parameters to the protoc builder.
|
protected File |
getOutputDirectory()
Returns the output directory for generated sources.
|
doAttachGeneratedFiles, doAttachProtoSources, getDependencyArtifacts, getDescriptorSetOutputDirectory, getProtoSourceRootcheckFilesUpToDate, checkParameters, createDependencyArtifact, createDependencyArtifact, createProtocPlugins, detectJavaHome, doAttachFiles, execute, findGeneratedFilesInDirectory, findProtoFilesInDirectories, findProtoFilesInDirectory, getDependencyArtifactFiles, getExcludes, getIncludes, hasDelta, lastModified, makeProtoPathFromJars, resolveBinaryArtifact, skipMojo, toHexString, truncatePathgetLog, getPluginContext, setLog, setPluginContextprotected void addProtocBuilderParameters(Protoc.Builder protocBuilder)
AbstractProtocMojoaddProtocBuilderParameters in class AbstractProtocMojoprotocBuilder - the builder to be modified.protected File getOutputDirectory()
AbstractProtocMojogetOutputDirectory in class AbstractProtocMojoCopyright © 2016–2018 Maven Protocol Buffers Plugin Authors. All rights reserved.