You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by Robert Varga <ni...@hq.sk> on 2020/11/02 17:24:36 UTC
wrap: protocol for static assembly?
Hello,
attempting to add 'wrap' or anything that pulls it into a static
distribution results in:
> [ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.3.0:assembly (process-resources) on project test-static: Unable to build assembly: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=wrap; type=karaf.feature; version=0; filter:="(&(osgi.identity=wrap)(type=karaf.feature)(version>=0.0.0))" [caused by: Unable to resolve wrap/2.6.2: missing requirement [wrap/2.6.2] osgi.identity; osgi.identity=org.ops4j.pax.url.wrap; type=osgi.bundle; version="[2.6.2,2.6.2]"; resolution:=mandatory [caused by: Unable to resolve org.ops4j.pax.url.wrap/2.6.2: missing requirement [org.ops4j.pax.url.wrap/2.6.2] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.slf4j)(version>=1.6.0)(!(version>=2.0.0)))"]] -> [Help 1]
which is weird, as that requirement should be satisfied by
static-framework's pax-logging-api (exports it at version=1.7.30).
The configuration is:
> <configuration>
> <startupFeatures>
> <startupFeature>static-framework</startupFeature>
> <startupFeature>scr</startupFeature>
> <startupFeature>http-whiteboard</startupFeature>
> <startupFeature>shell</startupFeature>
>
> <startupFeature>odl-jung-2.1</startupFeature>
> </startupFeatures>
> <javase>11</javase>
> <framework>static</framework>
> <useReferenceUrls>true</useReferenceUrls>
> <environment>static</environment>
> </configuration>
odl-jung-2.1 has a dependency on wrap and uses wrap: protocol.
Am I missing something?
Thanks,
Robert
Re: wrap: protocol for static assembly?
Posted by Robert Varga <ni...@hq.sk>.
On 03/11/2020 14:25, Jean-Baptiste Onofre wrote:
> Do you have a chance to be on slack ? I would love to have your help (at least for the tests) about that (and your use case).
No Slack here, but I'll look at setting up -- but it is low prio.
Meanwhile I am IRC (but mostly not paying attention).
I can test-drive patches asynchronously, no problem :)
Regards,
Robert
Re: wrap: protocol for static assembly?
Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Do you have a chance to be on slack ? I would love to have your help (at least for the tests) about that (and your use case).
Thanks !
Regards
JB
> Le 3 nov. 2020 à 14:01, Robert Varga <ni...@hq.sk> a écrit :
>
> On 03/11/2020 13:42, Jean-Baptiste Onofre wrote:
>> Hi Robert,
>
> Hey JB,
>
>> Yes, the problem is about prerequisite and static.
>>
>> I described the problem
>> here: https://issues.apache.org/jira/browse/KARAF-6573
>> <https://issues.apache.org/jira/browse/KARAF-6573>
>>
>> I will work on a improvement/fix.
>
> Thanks for confirming, I'll park my efforts until that fix then.
>
> Regards,
> Robert
Re: wrap: protocol for static assembly?
Posted by Robert Varga <ni...@hq.sk>.
On 03/11/2020 13:42, Jean-Baptiste Onofre wrote:
> Hi Robert,
Hey JB,
> Yes, the problem is about prerequisite and static.
>
> I described the problem
> here: https://issues.apache.org/jira/browse/KARAF-6573
> <https://issues.apache.org/jira/browse/KARAF-6573>
>
> I will work on a improvement/fix.
Thanks for confirming, I'll park my efforts until that fix then.
Regards,
Robert
Re: wrap: protocol for static assembly?
Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi Robert,
Yes, the problem is about prerequisite and static.
I described the problem here: https://issues.apache.org/jira/browse/KARAF-6573 <https://issues.apache.org/jira/browse/KARAF-6573>
I will work on a improvement/fix.
Regards
JB
> Le 3 nov. 2020 à 12:50, Robert Varga <ni...@hq.sk> a écrit :
>
> On 03/11/2020 07:30, Jean-Baptiste Onofre wrote:
>> Hi,
>>
>> Do you have static-framework feature in your pom dependencies ? With which scope ?
>
> This is pretty much a copy of karaf-docker-example-static-dist, hence I
> have:
>
> https://git.opendaylight.org/gerrit/c/odlparent/+/93414/10/karaf/test-static/pom.xml
>
> The thing is: 'wrap' itself passes okay, the trouble is if a feature
> requires it -- i.e. the above works, it is enough to add this line
> https://git.opendaylight.org/gerrit/c/odlparent/+/93414/10..11/karaf/test-static/pom.xml
> to break it.
>
> odl-jung-2.1 is a simple feature:
> https://repo1.maven.org/maven2/org/opendaylight/odlparent/odl-jung-2.1/8.0.0/odl-jung-2.1-8.0.0-features.xml
>
> It looks as though 'prerequisite' might be a problem?
>
> Regards,
> Robert
Re: wrap: protocol for static assembly?
Posted by Robert Varga <ni...@hq.sk>.
On 03/11/2020 07:30, Jean-Baptiste Onofre wrote:
> Hi,
>
> Do you have static-framework feature in your pom dependencies ? With which scope ?
This is pretty much a copy of karaf-docker-example-static-dist, hence I
have:
https://git.opendaylight.org/gerrit/c/odlparent/+/93414/10/karaf/test-static/pom.xml
The thing is: 'wrap' itself passes okay, the trouble is if a feature
requires it -- i.e. the above works, it is enough to add this line
https://git.opendaylight.org/gerrit/c/odlparent/+/93414/10..11/karaf/test-static/pom.xml
to break it.
odl-jung-2.1 is a simple feature:
https://repo1.maven.org/maven2/org/opendaylight/odlparent/odl-jung-2.1/8.0.0/odl-jung-2.1-8.0.0-features.xml
It looks as though 'prerequisite' might be a problem?
Regards,
Robert
Re: wrap: protocol for static assembly?
Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi,
Do you have static-framework feature in your pom dependencies ? With which scope ?
Regards
JB
> Le 2 nov. 2020 à 18:24, Robert Varga <ni...@hq.sk> a écrit :
>
> Hello,
>
> attempting to add 'wrap' or anything that pulls it into a static
> distribution results in:
>
>> [ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.3.0:assembly (process-resources) on project test-static: Unable to build assembly: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=wrap; type=karaf.feature; version=0; filter:="(&(osgi.identity=wrap)(type=karaf.feature)(version>=0.0.0))" [caused by: Unable to resolve wrap/2.6.2: missing requirement [wrap/2.6.2] osgi.identity; osgi.identity=org.ops4j.pax.url.wrap; type=osgi.bundle; version="[2.6.2,2.6.2]"; resolution:=mandatory [caused by: Unable to resolve org.ops4j.pax.url.wrap/2.6.2: missing requirement [org.ops4j.pax.url.wrap/2.6.2] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.slf4j)(version>=1.6.0)(!(version>=2.0.0)))"]] -> [Help 1]
>
> which is weird, as that requirement should be satisfied by
> static-framework's pax-logging-api (exports it at version=1.7.30).
>
> The configuration is:
>
>> <configuration>
>> <startupFeatures>
>> <startupFeature>static-framework</startupFeature>
>> <startupFeature>scr</startupFeature>
>> <startupFeature>http-whiteboard</startupFeature>
>> <startupFeature>shell</startupFeature>
>>
>> <startupFeature>odl-jung-2.1</startupFeature>
>> </startupFeatures>
>> <javase>11</javase>
>> <framework>static</framework>
>> <useReferenceUrls>true</useReferenceUrls>
>> <environment>static</environment>
>> </configuration>
>
> odl-jung-2.1 has a dependency on wrap and uses wrap: protocol.
>
> Am I missing something?
>
> Thanks,
> Robert