Jahia 8 modules can be compiled to Java 11. To enable this, you will need to update your pom.xml as indicated below.
First, specify the desired compilation target by adding the following entry:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <release>11</release> </configuration> </plugin>
Then, upgrade the maven-jahia-plugin to use the latest version:
<properties> <jahia.plugin.version>6.0</jahia.plugin.version> </properties>
And finally, upgrade the versions of both the maven-bundle-plugin and bndlib that are inherited from the jahia-module pom, to use ones that do support Java 11. This can be accomplished by adding the following entry:
<plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>5.1.2</version> <extensions>true</extensions> <dependencies> <dependency> <groupId>biz.aQute.bnd</groupId> <artifactId>biz.aQute.bndlib</artifactId> <version>6.1.0</version> </dependency> </dependencies> <configuration> <instructions> <_noimportjava>true</_noimportjava> </instructions> </configuration> </plugin>
Did you find what you're looking for?
Copyrights © 2002-2022 All Rights Reserved by Jahia Solutions Group SA
Privacy Policy / Terms of Use / Legal / Login