cschneider / Karaf-Tutorial

http://cschneider.github.io/Karaf-Tutorial/
Apache License 2.0
271 stars 305 forks source link

Build fails on Java 9 #40

Closed mhazelwood closed 6 years ago

mhazelwood commented 6 years ago

If using Java 9, "mvn install" fails with the following error:

A required class was missing while executing org.apache.aries.blueprint:blueprint-maven-plugin:1.5.0:blueprint-generate: javax/annotation/PostConstruct

I got around this by setting JAVA_HOME to point to JDK 1.8.

cschneider commented 6 years ago

Java 9 is not yet supported. I wait a bit until the OSGi community has a common approach to java 9.