Package net.bytebuddy.build.maven
Class ByteBuddyMojo.ForDependencyFolder
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- net.bytebuddy.build.maven.ByteBuddyMojo
-
- net.bytebuddy.build.maven.ByteBuddyMojo.ForDependencyFolder
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Enclosing class:
- ByteBuddyMojo
@Mojo(name="transform-dependencies", defaultPhase=PROCESS_CLASSES, threadSafe=true, requiresDependencyResolution=COMPILE) public static class ByteBuddyMojo.ForDependencyFolder extends ByteBuddyMojoTransforms all jars for a folder containing jar files, typically project dependencies.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.bytebuddy.build.maven.ByteBuddyMojo
ByteBuddyMojo.Coordinate, ByteBuddyMojo.ForDependencyFolder, ByteBuddyMojo.ForExplicitLocations, ByteBuddyMojo.ForLifecycleTypes, ByteBuddyMojo.MavenBuildLogger, ByteBuddyMojo.StalenessFilter, ByteBuddyMojo.TransformationLogger, ByteBuddyMojo.Transformer
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringsourceThe source folder that contains the project's dependencies.java.lang.StringtargetThe target folder that contains the project's dependencies ornullif thesourcefolder should be used.-
Fields inherited from class net.bytebuddy.build.maven.ByteBuddyMojo
classPathDiscovery, discovery, execution, extendedParsing, failFast, failOnLiveInitializer, initialization, multiReleaseVersion, project, repositorySystem, repositorySystemSession, skip, staleMilliseconds, suffix, threads, transformations, warnOnEmptyTypeSet, warnOnMissingOutputDirectory
-
-
Constructor Summary
Constructors Constructor Description ForDependencyFolder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapply(java.util.List<ByteBuddyMojo.Transformer> transformers, java.util.List<java.lang.String> elements, java.util.Map<ByteBuddyMojo.Coordinate,java.lang.String> coordinates)Applies this mojo for the given setup.protected java.util.List<java.lang.String>resolveClassPathElements(java.util.Map<ByteBuddyMojo.Coordinate,java.lang.String> coordinates)Resolves the class path elements of the relevant output directory.-
Methods inherited from class net.bytebuddy.build.maven.ByteBuddyMojo
execute, transform
-
-
-
-
Field Detail
-
source
@UnknownNull @Parameter(required=true) public java.lang.String source
The source folder that contains the project's dependencies.
-
target
@MaybeNull @Parameter(required=false) public java.lang.String target
The target folder that contains the project's dependencies ornullif thesourcefolder should be used.
-
-
Method Detail
-
resolveClassPathElements
protected java.util.List<java.lang.String> resolveClassPathElements(java.util.Map<ByteBuddyMojo.Coordinate,java.lang.String> coordinates)
Description copied from class:ByteBuddyMojoResolves the class path elements of the relevant output directory.- Specified by:
resolveClassPathElementsin classByteBuddyMojo- Parameters:
coordinates- Versions for managed dependencies.- Returns:
- The class path elements of the relevant output directory.
-
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:ByteBuddyMojoApplies this mojo for the given setup.- Specified by:
applyin classByteBuddyMojo- 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.
-
-