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.pull/6613/head
parent
500a3df6e9
commit
537e0c12c2
@ -0,0 +1,57 @@
|
|||||||
|
-----
|
||||||
|
Use a custom layout
|
||||||
|
-----
|
||||||
|
Dave Syer
|
||||||
|
-----
|
||||||
|
2016-10-30
|
||||||
|
-----
|
||||||
|
|
||||||
|
Spring Boot repackages the jar file for this project using a custom
|
||||||
|
layout defined in the additional jar file, provided as a dependency
|
||||||
|
to the build plugin:
|
||||||
|
|
||||||
|
---
|
||||||
|
<project>
|
||||||
|
...
|
||||||
|
<build>
|
||||||
|
...
|
||||||
|
<plugins>
|
||||||
|
...
|
||||||
|
<plugin>
|
||||||
|
<groupId>${project.groupId}</groupId>
|
||||||
|
<artifactId>${project.artifactId}</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>repackage</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<layout>CUSTOM</layout>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.example</groupid>
|
||||||
|
<artifactId>custom-layout</artifactId>
|
||||||
|
<version>0.0.1.BUILD-SNAPSHOT</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
...
|
||||||
|
</plugin>
|
||||||
|
...
|
||||||
|
</plugins>
|
||||||
|
...
|
||||||
|
</build>
|
||||||
|
...
|
||||||
|
</project>
|
||||||
|
---
|
||||||
|
|
||||||
|
The layout is provided as an implementation of <<LayoutFactory>>
|
||||||
|
(from spring-boot-loader-tools) listed in
|
||||||
|
<<META-INF/spring-factories>> inside the <<custom-layout>> jar.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue