Class ProtoCompatibilityMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.infinispan.plugins.proto.compatibility.ProtoCompatibilityMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="proto-schema-compatibility-check",
defaultPhase=VERIFY,
requiresDependencyResolution=COMPILE,
threadSafe=true)
public class ProtoCompatibilityMojo
extends org.apache.maven.plugin.AbstractMojo
Protocol Buffers compatibility checks using ProtoStream
- Since:
- 10.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate Stringprivate Stringprivate Stringprivate org.apache.maven.execution.MavenSessionprivate booleanFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckRemoteCompatibility(ProtoLock currentState) voidexecute()Execute the plugin.private ProtoLockprotoLockFromDir(Path protoRoot) private booleanMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
commitProtoLock
@Parameter(defaultValue="false") private boolean commitProtoLock -
protoLockRoot
-
protoSourceRoot
@Parameter(defaultValue="${project.build.directory}/classes/proto", readonly=true) private String protoSourceRoot -
remoteLockFiles
-
session
@Parameter(defaultValue="${session}") private org.apache.maven.execution.MavenSession session -
skip
@Parameter(defaultValue="false") private boolean skip
-
-
Constructor Details
-
ProtoCompatibilityMojo
public ProtoCompatibilityMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionExceptionExecute the plugin.- Throws:
org.apache.maven.plugin.MojoExecutionException- thrown when execution of protolock fails.
-
protoLockFromDir
- Throws:
IOException
-
checkRemoteCompatibility
- Throws:
IOException
-
remoteCheck
private boolean remoteCheck()
-