[ 
https://issues.apache.org/jira/browse/FELIX-6538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18013888#comment-18013888
 ] 

Robert Varga commented on FELIX-6538:
-------------------------------------

Yes, the JRE version is not correct, but not in the usual way of 'JAVA_HOME 
pointing to an old one'. When running karaf-maven-plugin verify, it is critical 
to set javase, in this case to 14+, otherwise it defaults to '8'!.

> maven-bundle-plugin imports java.lang.runtime
> ---------------------------------------------
>
>                 Key: FELIX-6538
>                 URL: https://issues.apache.org/jira/browse/FELIX-6538
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-5.1.6
>         Environment: Java 17, Apache Karaf 4.4, Maven 3.8.5
>            Reporter: Jakub Herkel
>            Priority: Major
>
> I tried to upgrade a maven-bundle pluging from version 5.1.4 to 5.1.6. But 
> with version 5.1.6 our build finished with error :
> {code:java}
> Failed to execute goal 
> org.apache.karaf.tooling:karaf-maven-plugin:4.4.0:verify (default-verify) on 
> project chronos.features.base: Verification failures: Verification failures:
> missing requirement [tech.pantheon.chronos.utilities/0.0.1.SNAPSHOT] 
> osgi.wiring.package; filter:="(osgi.wiring.package=java.lang.runtime)"{code}
> I compared MANIFEST.MF between version 5.1.4 and 5.1.6 and I can see that 
> 5.1.6 imports packages:
> java.lang.invoke,java.lang.reflect,java.lang.runtime but version 5.1.4 not.
> Is there any reason why 5.1.6 imports these packages?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to