Class JvmPluginResolver
java.lang.Object
io.github.ascopes.protobufmavenplugin.plugins.JvmPluginResolver
Wraps a JVM-based plugin invocation using an OS-native script that calls Java.
This script can be marked as executable and passed to the protoc
invocation
as a path to ensure the script gets called correctly. By doing this, we avoid the need to build
OS-native executables during the protobuf compilation process.
- Author:
- Ashley Scopes
-
Constructor Summary
ConstructorDescriptionJvmPluginResolver
(HostSystem hostSystem, AetherMavenArtifactPathResolver artifactPathResolver, TemporarySpace temporarySpace) -
Method Summary
Modifier and TypeMethodDescriptionresolveMavenPlugins
(Collection<? extends MavenProtocPlugin> plugins)
-
Constructor Details
-
JvmPluginResolver
@Inject public JvmPluginResolver(HostSystem hostSystem, AetherMavenArtifactPathResolver artifactPathResolver, TemporarySpace temporarySpace)
-
-
Method Details
-
resolveMavenPlugins
public Collection<ResolvedProtocPlugin> resolveMavenPlugins(Collection<? extends MavenProtocPlugin> plugins) throws IOException, ResolutionException - Throws:
IOException
ResolutionException
-