Claus Ibsen created ISPN-3746:
---------------------------------
Summary: infinispan-client-hotrod - OSGi MANIFEST.MF should have optional
resolution for Apache Avro
Key: ISPN-3746
URL:
https://issues.jboss.org/browse/ISPN-3746
Project: Infinispan
Issue Type: Task
Components: Build process
Affects Versions: 6.0.0.Final
Reporter: Claus Ibsen
Assignee: Mircea Markus
The MANIFEST.MF of the infinispan-client-hotrod has mandatory imports of Apache Avro.
But that should be optional, as end users can decide not to use Avro but the JBoss
Marshalling etc.
This import
{code}
Import-Package: javax.net.ssl,net.jcip.annotations;resolution:=optional,
org.apache.avro,org.apache.avro.generic,org.apache.avro.io,org.apache.a
vro.util,org.apache.commons.pool;version="[1.6,2)",org.apache.commons.p
ool.impl;version="[1.6,2)",org.infinispan.commons;version="[6.0,7)",org
.infinispan.commons.api;version="[6.0,7)",org.infinispan.commons.config
uration;version="[6.0,7)",org.infinispan.commons.executors;version="[6.
0,7)",org.infinispan.commons.hash;version="[6.0,7)",org.infinispan.comm
ons.io;version="[6.0,7)",org.infinispan.commons.logging;version="[6.0,7
)",org.infinispan.commons.marshall;version="[6.0,7)",org.infinispan.com
mons.marshall.jboss;version="[6.0,7)",org.infinispan.commons.util;versi
on="[6.0,7)",org.infinispan.commons.util.concurrent;version="[6.0,7)",o
rg.infinispan.protostream;resolution:=optional,org.infinispan.query.dsl
;resolution:=optional,org.infinispan.query.dsl.impl;resolution:=optiona
l,org.infinispan.query.remote.client;resolution:=optional,org.jboss.log
ging;version="[3.1,4)"
{code}
Should have ;resolution:=optional for the org.apache.avro packages, so it would be:
{code}
Import-Package: javax.net.ssl,net.jcip.annotations;resolution:=optional,
org.apache.avro,org.apache.avro.generic,org.apache.avro.io,org.apache.a
vro.util;resolution:=optional,org.apache.commons.pool;version="[1.6,2)",org.apache.commons.p
ool.impl;version="[1.6,2)",org.infinispan.commons;version="[6.0,7)",org
.infinispan.commons.api;version="[6.0,7)",org.infinispan.commons.config
uration;version="[6.0,7)",org.infinispan.commons.executors;version="[6.
0,7)",org.infinispan.commons.hash;version="[6.0,7)",org.infinispan.comm
ons.io;version="[6.0,7)",org.infinispan.commons.logging;version="[6.0,7
)",org.infinispan.commons.marshall;version="[6.0,7)",org.infinispan.com
mons.marshall.jboss;version="[6.0,7)",org.infinispan.commons.util;versi
on="[6.0,7)",org.infinispan.commons.util.concurrent;version="[6.0,7)",o
rg.infinispan.protostream;resolution:=optional,org.infinispan.query.dsl
;resolution:=optional,org.infinispan.query.dsl.impl;resolution:=optiona
l,org.infinispan.query.remote.client;resolution:=optional,org.jboss.log
ging;version="[3.1,4)"
{code}
From the IRC room
[14:35:21] <davsclaus> i have an osgi
problem with the 6.0 client-hotrod
[14:35:32] <davsclaus> it has mandatory osgi imports of apache avro
[14:35:35] <davsclaus> and i dont want to use that
[14:35:40] <davsclaus> i wanna keep using jboss marshalling
[14:35:52] <davsclaus> but with osgi you are fucked as its mandatory import so i
cannot ignore that
[14:36:28] <davsclaus> would it be possible to log a ticket and get the client
fixes so its manifest.mf file has
[14:36:28] <davsclaus>
org.apache.avro,org.apache.avro.generic,org.apache.avro.io,org.apache.a
[14:36:28] <davsclaus> vro.util
[14:36:44] <davsclaus>
org.apache.avro,org.apache.avro.generic,org.apache.avro.io,org.apache.a
[14:36:44] <davsclaus> vro.util;resolution:=optional
[14:37:02] <davsclaus> eg i get this osgi validation errors
[14:37:02] <davsclaus> [WARNING] No export found to match org.apache.avro.generic
(imported by mvn:org.infinispan/infinispan-client-hotrod/6.0.0.Final)
[14:37:02] <davsclaus> [WARNING] No export found to match org.apache.avro (imported
by mvn:org.infinispan/infinispan-client-hotrod/6.0.0.Final)
[14:37:02] <davsclaus> [WARNING] No export found to match org.apache.avro.util
(imported by mvn:org.infinispan/infinispan-client-hotrod/6.0.0.Final)
[14:37:02] <davsclaus> [WARNING] No export found to match org.apache.avro.io
(imported by mvn:org.infinispan/infinispan-client-hotrod/6.0.0.Final)
[14:37:11] <davsclaus> yeah unfortunaltey some ppl are stuck on osgi :(
[14:43:59] rbenevides is now known as rbenevides|lunch
[14:44:20] matt_test__ (~matt(a)twdp-174-109-175-151.nc.res.rr.com) joined the channel.
[14:51:20] tenfourty_afk is now known as tenfourty
[14:57:03] rachmatowicz (~nrla(a)modemcable117.232-202-24.mc.videotron.ca) joined the
channel.
[14:59:10] <+galderz> davsclaus, sure, fill one in
issues.jboss.org/browse/ISPN
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira