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:
Dave Syer
2016-10-28 17:33:03 +01:00
parent 500a3df6e9
commit 537e0c12c2
12 changed files with 154 additions and 15 deletions

View File

@@ -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;
}