Support for custom layout types to change loader classes
A layout can also optionally change the loader jar that is unpacked in the root of the repackaged archive by implementing a new method in Layout.
This commit is contained in:
@@ -227,6 +227,7 @@ public class RepackageMojo extends AbstractDependencyFilterMojo {
|
||||
repackager.setMainClass(this.mainClass);
|
||||
if (this.layout != null) {
|
||||
getLog().info("Layout: " + this.layout);
|
||||
repackager.setLayout(LayoutType.layout(this.layout));
|
||||
}
|
||||
return repackager;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user