Full name:
org.xolstice.maven.plugins:protobuf-maven-plugin:0.6.1:test-compile-cpp
Description:
Attributes:
Name | Type | Since | Description |
---|---|---|---|
<attachDescriptorSet> | boolean | 0.4.1 | If set to true, the generated descriptor set will be
attached to the build. Default value is: false. |
<attachProtoSources> | boolean | 0.4.1 | If set to true, then the specified protobuf source
files from this project will be attached as resources to the build,
for subsequent inclusion into the final artifact. This is the
default behaviour, as it allows downstream projects to import
protobuf definitions from the upstream projects, and those imports
are automatically resolved at build time.
If distribution of .proto source files is undesirable for security reasons or because of other considerations, then this parameter should be set to false. Default value is: true. |
<descriptorSetFileName> | String | 0.3.0 | The descriptor set file name. Only used if
writeDescriptorSet is set to true. Default value is: ${project.build.finalName}.protobin. |
<descriptorSetOutputDirectory> | File | 0.3.0 | This is the directory into which the (optional) descriptor set file
will be created. Default value is: ${project.build.directory}/generated-test-resources/protobuf/descriptor-sets. |
<hashDependentPaths> | boolean | 0.3.3 | Set this to false to disable hashing of dependent jar
paths. This plugin expands jars on the classpath looking for
embedded .proto files. Normally these paths are hashed
(MD5) to avoid issues with long file names on windows. However if
this property is set to false longer paths will be
used. Default value is: true. |
<outputDirectory> | File | 0.3.3 | This is the directory into which the .cpp test sources
will be created. Default value is: ${project.build.directory}/generated-test-sources/protobuf/cpp. User property is: cppTestOutputDirectory. |
<protoTestSourceRoot> | File | 0.3.3 | The source directories containing the test .proto
definitions to be compiled. Default value is: ${basedir}/src/test/proto. |
<temporaryProtoFileDirectory> | File | 0.3.3 | Since protoc cannot access jars, proto files in
dependencies are extracted to this location and deleted on exit.
This directory is always cleaned during execution. Default value is: ${project.build.directory}/protoc-dependencies. |
<writeDescriptorSet> | boolean | 0.3.0 | If set to true, the compiler will generate a binary
descriptor set file for the specified .proto files. Default value is: false. |
Name | Type | Since | Description |
---|---|---|---|
<additionalProtoPathElements> | File[] | 0.3.3 | Additional source paths for .proto definitions. |
<checkStaleness> | boolean | 0.3.3 | Normally protoc is invoked on every execution of the
plugin. Setting this parameter to true will enable
checking timestamps of source protobuf definitions vs. generated
sources. Default value is: false. |
<clearOutputDirectory> | boolean | 0.4.0 | When true, the output directory will be cleared out
prior to code generation. With the latest versions of protoc (2.5.0
or later) this is generally not required, although some earlier
versions reportedly had issues with running two code generations in
a row without clearing out the output directory in between. Default value is: true. |
<descriptorSetClassifier> | String | 0.4.1 | If generated descriptor set is to be attached to the build,
specifies an optional classifier. Default value is: test. |
<excludes> | String[] | 0.3.3 | A list of <exclude> elements specifying the protobuf
definition files (by pattern) that should be excluded from
compilation. When not specified, the default excludes will be
empty: <excludes> </excludes> |
<forceMojoExecution> | boolean | 0.2.0 | Usually most of protobuf mojos will not get executed on parent poms
(i.e. projects with packaging type 'pom'). Setting this parameter
to true will force the execution of this mojo, even if
it would usually get skipped in this case. Default value is: false. User property is: protoc.force. |
<includeDependenciesInDescriptorSet> | boolean | 0.3.0 | If true and writeDescriptorSet has been
set, the compiler will include all dependencies in the descriptor
set making it "self-contained". Default value is: false. |
<includeSourceInfoInDescriptorSet> | boolean | 0.4.4 | If true and writeDescriptorSet has been
set, do not strip SourceCodeInfo from the FileDescriptorProto. This
results in vastly larger descriptors that include information about
the original location of each decl in the source file as well as
surrounding comments. Default value is: false. |
<includes> | String[] | 0.3.3 | A list of <include> elements specifying the protobuf
definition files (by pattern) that should be included in
compilation. When not specified, the default includes will be:
<includes> <include>**/*.proto</include> </includes> |
<protocArtifact> | String | 0.4.1 | Protobuf compiler artifact specification, in
groupId:artifactId:version[:type[:classifier]] format.
When this parameter is set, the plugin attempts to resolve the
specified artifact as protoc executable. User property is: protocArtifact. |
<protocExecutable> | String | 0.3.3 | This is the path to the protoc executable. When this
parameter is not set, the plugin attempts to load a
protobuf toolchain and use it locate
protoc executable. If no protobuf
toolchain is defined in the project, the protoc
executable in the PATH is used. User property is: protocExecutable. |
<protocPluginDirectory> | File | 0.3.0 | A directory where native launchers for java protoc plugins will be
generated. Default value is: ${project.build.directory}/protoc-plugins. |
<protocPlugins> | List | 0.3.3 | Specifies one of more custom protoc plugins, written in Java and
available as Maven artifacts. An executable plugin will be created
at execution time. On UNIX the executable is a shell script and on
Windows it is a WinRun4J .exe and .ini. |
<skip> | boolean | 0.2.0 | When true, skip the execution. Default value is: false. User property is: protoc.skip. |
<staleMillis> | long | 0.3.3 | Sets the granularity in milliseconds of the last modification date
for testing whether source protobuf definitions need recompilation.
This parameter is only used when checkStaleness parameter is set to true. If the project is built on NFS it's recommended to set this parameter to 10000. Default value is: 0. |
<useArgumentFile> | boolean | 0.6.0 | If set to true, all command line arguments to protoc
will be written to a file, and only a path to that file will be
passed to protoc on the command line. This helps prevent Command
line is too long errors when the number of .proto
files is large.
NOTE: This is only supported for protoc 3.5.0 and higher. Default value is: false. |
If distribution of .proto source files is undesirable for security reasons or because of other considerations, then this parameter should be set to false.
This parameter is only used when checkStaleness parameter is set to true.
If the project is built on NFS it's recommended to set this parameter to 10000.
NOTE: This is only supported for protoc 3.5.0 and higher.