Class ByteBuddyMojo.ForExplicitLocations

    • Field Detail

      • source

        @UnknownNull
        @Parameter(required=true)
        public java.lang.String source
        The source folder or jar file that should be transformed.
      • target

        @UnknownNull
        @Parameter(required=true)
        public java.lang.String target
        The target folder or jar file to where the transformed sources should be written to.
      • dependencies

        @MaybeNull
        @Parameter
        public java.util.List<CoordinateConfiguration> dependencies
        A list of dependencies to be included when resolving class files, additionally to the source jar.
    • Constructor Detail

      • ForExplicitLocations

        public ForExplicitLocations()
    • Method Detail

      • resolveClassPathElements

        protected java.util.List<java.lang.String> resolveClassPathElements​(java.util.Map<ByteBuddyMojo.Coordinate,​java.lang.String> coordinates)
                                                                     throws org.apache.maven.plugin.MojoExecutionException,
                                                                            org.apache.maven.plugin.MojoFailureException
        Description copied from class: ByteBuddyMojo
        Resolves the class path elements of the relevant output directory.
        Specified by:
        resolveClassPathElements in class ByteBuddyMojo
        Parameters:
        coordinates - Versions for managed dependencies.
        Returns:
        The class path elements of the relevant output directory.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - If the user configuration results in an error.
        org.apache.maven.plugin.MojoFailureException - If the plugin application raises an error.
      • resolveImplicitClassPathElements

        protected java.util.List<java.lang.String> resolveImplicitClassPathElements()
                                                                             throws org.apache.maven.plugin.MojoFailureException
        Resolves any implicit dependencies that should be added to the class path.
        Returns:
        The class path elements of the relevant output directory.
        Throws:
        org.apache.maven.plugin.MojoFailureException - If the class loader resolution yields a failure.
      • 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,
                             org.apache.maven.plugin.MojoFailureException,
                             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.
        org.apache.maven.plugin.MojoFailureException - If the plugin fails due to an application error.
        java.io.IOException - If an I/O exception occurs.