missing requirement osgi.ee and JDK 11

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

missing requirement osgi.ee and JDK 11

Michal Hlaváč
Hi,

I tried to migrate my application based on karaf 4.2.1 to JDK 11. Last
problem is that feature verification using maven-karaf-plugin fails
with:
missing requirement
[camp.xit.legand.search.analytics-user-clicks/1.1.1.SNAPSHOT] osgi.ee;
filter:="(&(osgi.ee=JavaSE)(version=11))"


I found workaround which disable osgi.ee requirement:
<plugin>
    <groupId>org.apache.felix</groupId>
    <artifactId>maven-bundle-plugin</artifactId>
    <version>4.1.0</version>
    <configuration>
        <instructions>
            <_noee>true</_noee>
        </instructions>
    </configuration>
</plugin>

But I am not sure it this is correct way to handle this problem. I
also tried karaf 4.2.2-SNAPSHOT but problem still persists.

thank you, Miso
Reply | Threaded
Open this post in threaded view
|

Re: missing requirement osgi.ee and JDK 11

jbonofre
Hi Michal,

did you set the java.ee property in the plugin configuration (for the
verify mojo) ?

Regards
JB

On 18/12/2018 13:22, Michal Hlaváč wrote:

> Hi,
>
> I tried to migrate my application based on karaf 4.2.1 to JDK 11. Last
> problem is that feature verification using maven-karaf-plugin fails
> with:
> missing requirement
> [camp.xit.legand.search.analytics-user-clicks/1.1.1.SNAPSHOT] osgi.ee
> <http://osgi.ee>;
> filter:="(&(osgi.ee <http://osgi.ee>=JavaSE)(version=11))"
>
> I found workaround which disable osgi.ee <http://osgi.ee> requirement:
> <plugin>
>     <groupId>org.apache.felix</groupId>
>     <artifactId>maven-bundle-plugin</artifactId>
>     <version>4.1.0</version>
>     <configuration>
>         <instructions>
>             <_noee>true</_noee>
>         </instructions>
>     </configuration>
> </plugin>
>
> But I am not sure it this is correct way to handle this problem. I
> also tried karaf 4.2.2-SNAPSHOT but problem still persists.
>
> thank you, Miso

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|

Re: missing requirement osgi.ee and JDK 11

Michal Hlaváč
Hi JB,

thanks for hint, I think you meant <javase>11</javase>, anyway now it works as expected.

m.
Reply | Threaded
Open this post in threaded view
|

Re: missing requirement osgi.ee and JDK 11

jbonofre
Yes, that's it.

Good it works ;)

Regards
JB

On 18/12/2018 13:53, Michal Hlaváč wrote:
> Hi JB,
>
> thanks for hint, I think you meant <javase>11</javase>, anyway now it
> works as expected.
>
> m.

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|

Re: missing requirement osgi.ee and JDK 11

cvdenzen
Hello Jean-Baptiste,

I encountered the same problem but I don't understand how to implement the
proposed solution(s).
1. The solution with a plugin
2. The solution with <javase>11</javase>

Which one is the right one?
And where (in what file, in what xml-element/xpath) do I have to add this?

Thank you!
Carl van Denzen



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html