summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/pom.xml
diff options
context:
space:
mode:
authorSimon Rettberg2021-08-12 10:20:05 +0200
committerSimon Rettberg2021-08-12 10:20:05 +0200
commitaad3e1bf5648a6deded1952b19db40906390455d (patch)
tree71135085dc9764152cddad86f64ce7022324e267 /dozentenmodul/pom.xml
parent[client] Print error message if no LookAndFeel can be loaded (diff)
downloadtutor-module-aad3e1bf5648a6deded1952b19db40906390455d.tar.gz
tutor-module-aad3e1bf5648a6deded1952b19db40906390455d.tar.xz
tutor-module-aad3e1bf5648a6deded1952b19db40906390455d.zip
[client] Fix FlatLaf on Windows JRE-8
Forcing the version of maven-assembly-plugin to 3.0 seems to mess up the build process of the fat jar. The Java 9+ specific classes from the META-INF/versions directory get copied to the root of the jar, replacing the JRE-8 specific classes. This leads to unloadable classes on Windows with JRE-8. Also we need to add the Multi-Release property to MANIFEST.MF to make sure the modern JRE-9+ classes get loaded on newer JREs, so all the additional features get used.
Diffstat (limited to 'dozentenmodul/pom.xml')
-rwxr-xr-xdozentenmodul/pom.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/dozentenmodul/pom.xml b/dozentenmodul/pom.xml
index 45b6384e..abcfca2a 100755
--- a/dozentenmodul/pom.xml
+++ b/dozentenmodul/pom.xml
@@ -93,7 +93,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
- <version>3.0.0</version>
<executions>
<execution>
<phase>package</phase>
@@ -113,6 +112,7 @@
<Build-Timestamp>${build.time}</Build-Timestamp>
<Revision-Branch>${revision.branch}</Revision-Branch>
<Revision-Version>${revision.version}</Revision-Version>
+ <Multi-Release>true</Multi-Release> <!-- required for FlatLaf for using modern classes on JRE9+ -->
</manifestEntries>
</archive>
<descriptorRefs>