Class ByteBuddyMojo.ForLifecycleTypes

    • Field Detail

      • context

        @MaybeNull
        @Component
        public org.sonatype.plexus.build.incremental.BuildContext context
        The build context to support incremental builds.
      • incremental

        @Parameter(defaultValue="false",
                   required=true)
        public boolean incremental
        Determines if plugins are attempted to be built incrementally.
    • Constructor Detail

      • ForLifecycleTypes

        public ForLifecycleTypes()
    • Method Detail

      • getOutputDirectory

        protected abstract java.lang.String getOutputDirectory()
        Returns the output directory to search for class files.
        Returns:
        The output directory to search for class files.
      • getSourceDirectory

        @MaybeNull
        protected abstract java.lang.String getSourceDirectory()
        Returns the source directory that determines the class files to process.
        Returns:
        The source directory that serves as an input for the transformation.
      • apply

        protected void apply​(java.util.List<ByteBuddyMojo.Transformer> transformers,
                             java.util.List<java.lang.String> elements,
                             java.util.Map<ByteBuddyMojo.Coordinate,​java.lang.String> coordinates)
                      throws org.apache.maven.plugin.MojoExecutionException,
                             java.io.IOException
        Description copied from class: ByteBuddyMojo
        Applies this mojo for the given setup.
        Specified by:
        apply in class ByteBuddyMojo
        Parameters:
        transformers - The transformers to apply.
        elements - The class path elements to consider.
        coordinates - Versions for managed dependencies.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - If the plugin fails due to a user error.
        java.io.IOException - If an I/O exception occurs.