Class OutputDescriptorAttachmentRegistrar

java.lang.Object
io.github.ascopes.protobufmavenplugin.generation.OutputDescriptorAttachmentRegistrar

public final class OutputDescriptorAttachmentRegistrar extends Object
Strategy for registration of additional artifacts to attach to the Maven project.
Since:
2.11.0
  • Field Details

    • log

      private static final org.slf4j.Logger log
    • mavenProjectHelper

      private final org.apache.maven.project.MavenProjectHelper mavenProjectHelper
    • defaultArtifactType

      private final String defaultArtifactType
    • defaultArtifactClassifier

      private final @Nullable String defaultArtifactClassifier
  • Constructor Details

    • OutputDescriptorAttachmentRegistrar

      public OutputDescriptorAttachmentRegistrar(org.apache.maven.project.MavenProjectHelper mavenProjectHelper, String defaultArtifactType, @Nullable String defaultArtifactClassifier)
  • Method Details

    • registerAttachedArtifact

      public void registerAttachedArtifact(org.apache.maven.execution.MavenSession session, Path artifactPath, @Nullable String artifactType, @Nullable String artifactClassifier)