@Mojo(name="transform-location-empty", defaultPhase=PROCESS_CLASSES, threadSafe=true) public static class ByteBuddyMojo.ForExplicitLocations extends ByteBuddyMojo
| Modifier and Type | Class and Description |
|---|---|
static class |
ByteBuddyMojo.ForExplicitLocations.ForTestTypes
Transforms specified classes from files in a folder or a jar file to a folder or jar file.
|
static class |
ByteBuddyMojo.ForExplicitLocations.WithExtendedDependencies
Transforms specified classes from files in a folder or a jar file to a folder or jar file.
|
static class |
ByteBuddyMojo.ForExplicitLocations.WithoutRuntimeDependencies
Transforms specified classes from files in a folder or a jar file to a folder or jar file.
|
static class |
ByteBuddyMojo.ForExplicitLocations.WithRuntimeDependencies
Transforms specified classes from files in a folder or a jar file to a folder or jar file.
|
ByteBuddyMojo.Coordinate, ByteBuddyMojo.ForDependencyFolder, ByteBuddyMojo.ForExplicitLocations, ByteBuddyMojo.ForLifecycleTypes, ByteBuddyMojo.MavenBuildLogger, ByteBuddyMojo.StalenessFilter, ByteBuddyMojo.TransformationLogger, ByteBuddyMojo.Transformer| Modifier and Type | Field and Description |
|---|---|
List<CoordinateConfiguration> |
dependencies
A list of dependencies to be included when resolving class files, additionally to the source jar.
|
String |
source
The source folder or jar file that should be transformed.
|
String |
target
The target folder or jar file to where the transformed sources should be written to.
|
classPathDiscovery, discovery, execution, extendedParsing, failFast, failOnLiveInitializer, initialization, multiReleaseVersion, project, repositorySystem, repositorySystemSession, skip, staleMilliseconds, suffix, threads, transformations, warnOnEmptyTypeSet, warnOnMissingOutputDirectory| Constructor and Description |
|---|
ForExplicitLocations() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
apply(List<ByteBuddyMojo.Transformer> transformers,
List<String> elements,
Map<ByteBuddyMojo.Coordinate,String> coordinates)
Applies this mojo for the given setup.
|
protected List<String> |
resolveClassPathElements(Map<ByteBuddyMojo.Coordinate,String> coordinates)
Resolves the class path elements of the relevant output directory.
|
protected List<String> |
resolveImplicitClassPathElements()
Resolves any implicit dependencies that should be added to the class path.
|
execute, transformgetLog, getPluginContext, setLog, setPluginContext@UnknownNull @Parameter(required=true) public String source
@UnknownNull @Parameter(required=true) public String target
@MaybeNull @Parameter public List<CoordinateConfiguration> dependencies
protected List<String> resolveClassPathElements(Map<ByteBuddyMojo.Coordinate,String> coordinates) throws MojoExecutionException, MojoFailureException
ByteBuddyMojoresolveClassPathElements in class ByteBuddyMojocoordinates - Versions for managed dependencies.MojoExecutionException - If the user configuration results in an error.MojoFailureException - If the plugin application raises an error.protected List<String> resolveImplicitClassPathElements() throws MojoFailureException
MojoFailureException - If the class loader resolution yields a failure.protected void apply(List<ByteBuddyMojo.Transformer> transformers, List<String> elements, Map<ByteBuddyMojo.Coordinate,String> coordinates) throws MojoExecutionException, MojoFailureException, IOException
ByteBuddyMojoapply in class ByteBuddyMojotransformers - The transformers to apply.elements - The class path elements to consider.coordinates - Versions for managed dependencies.MojoExecutionException - If the plugin fails due to a user error.MojoFailureException - If the plugin fails due to an application error.IOException - If an I/O exception occurs.Copyright © 2014–2025. All rights reserved.