Migration from json-lib 2.4 to Jackson

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

Migration from json-lib 2.4 to Jackson

Alexey Kuznetsov-2
Hi, All!

I started to work on IGNITE-3277 [1]: migration from very outdated lib
json-lib (last release was on 2010-12-14).

And I found reference to this lib in ignite-osgi-karaf module in file
"features.xml".

lines 206-207
        <bundle start="true"
dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ezmorph/${ezmorph.bundle.version}</bundle>
        <bundle start="true"
dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.json-lib/${jsonlib.bundle.version}</bundle>

Raul, as a maintainer of this module, could you tell me how I should fix
"features.xml"?

I'm going to use in ignite-rest-http two new dependencies:

        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
            <version>2.7.4</version>
        </dependency>

        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>2.7.4</version>
        </dependency>

And will drop two old deps:

        <dependency>
            <groupId>net.sf.json-lib</groupId>
            <artifactId>json-lib</artifactId>
            <version>${jsonlib.version}</version>
            <classifier>jdk15</classifier>
        </dependency>

        <dependency>
            <groupId>net.sf.ezmorph</groupId>
            <artifactId>ezmorph</artifactId>
            <version>${ezmorph.version}</version>
        </dependency>

Please, advice.


1. https://issues.apache.org/jira/browse/IGNITE-3277

--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com
Reply | Threaded
Open this post in threaded view
|

Re: Migration from json-lib 2.4 to Jackson

Alexey Kuznetsov-2
And one more question: ignite-zookeeper module has 2 dependencies to
Jackson 1.9.13.
It is possible to replace them to Jackson 2.x dependencies?

On Thu, Jun 9, 2016 at 4:06 PM, Alexey Kuznetsov <[hidden email]>
wrote:

> Hi, All!
>
> I started to work on IGNITE-3277 [1]: migration from very outdated lib
> json-lib (last release was on 2010-12-14).
>
> And I found reference to this lib in ignite-osgi-karaf module in file
> "features.xml".
>
> lines 206-207
>         <bundle start="true"
> dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ezmorph/${ezmorph.bundle.version}</bundle>
>         <bundle start="true"
> dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.json-lib/${jsonlib.bundle.version}</bundle>
>
> Raul, as a maintainer of this module, could you tell me how I should fix
> "features.xml"?
>
> I'm going to use in ignite-rest-http two new dependencies:
>
>         <dependency>
>             <groupId>com.fasterxml.jackson.core</groupId>
>             <artifactId>jackson-core</artifactId>
>             <version>2.7.4</version>
>         </dependency>
>
>         <dependency>
>             <groupId>com.fasterxml.jackson.core</groupId>
>             <artifactId>jackson-databind</artifactId>
>             <version>2.7.4</version>
>         </dependency>
>
> And will drop two old deps:
>
>         <dependency>
>             <groupId>net.sf.json-lib</groupId>
>             <artifactId>json-lib</artifactId>
>             <version>${jsonlib.version}</version>
>             <classifier>jdk15</classifier>
>         </dependency>
>
>         <dependency>
>             <groupId>net.sf.ezmorph</groupId>
>             <artifactId>ezmorph</artifactId>
>             <version>${ezmorph.version}</version>
>         </dependency>
>
> Please, advice.
>
>
> 1. https://issues.apache.org/jira/browse/IGNITE-3277
>
> --
> Alexey Kuznetsov
> GridGain Systems
> www.gridgain.com
>



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com
Reply | Threaded
Open this post in threaded view
|

Re: Migration from json-lib 2.4 to Jackson

Konstantin Boudnik-2
On Thu, Jun 09, 2016 at 04:37PM, Alexey Kuznetsov wrote:
> And one more question: ignite-zookeeper module has 2 dependencies to
> Jackson 1.9.13.
> It is possible to replace them to Jackson 2.x dependencies?

That's the huge problem the whole Hadoop ecosystem faces: every project is
using whatever they feel like, which causes multiple versions conflicts in the
downstream. You might be able to bump the version and get rid of the
transitive dependency in the benign case of a json lib. In extreme cases it
might not work though

Cos

> On Thu, Jun 9, 2016 at 4:06 PM, Alexey Kuznetsov <[hidden email]>
> wrote:
>
> > Hi, All!
> >
> > I started to work on IGNITE-3277 [1]: migration from very outdated lib
> > json-lib (last release was on 2010-12-14).
> >
> > And I found reference to this lib in ignite-osgi-karaf module in file
> > "features.xml".
> >
> > lines 206-207
> >         <bundle start="true"
> > dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ezmorph/${ezmorph.bundle.version}</bundle>
> >         <bundle start="true"
> > dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.json-lib/${jsonlib.bundle.version}</bundle>
> >
> > Raul, as a maintainer of this module, could you tell me how I should fix
> > "features.xml"?
> >
> > I'm going to use in ignite-rest-http two new dependencies:
> >
> >         <dependency>
> >             <groupId>com.fasterxml.jackson.core</groupId>
> >             <artifactId>jackson-core</artifactId>
> >             <version>2.7.4</version>
> >         </dependency>
> >
> >         <dependency>
> >             <groupId>com.fasterxml.jackson.core</groupId>
> >             <artifactId>jackson-databind</artifactId>
> >             <version>2.7.4</version>
> >         </dependency>
> >
> > And will drop two old deps:
> >
> >         <dependency>
> >             <groupId>net.sf.json-lib</groupId>
> >             <artifactId>json-lib</artifactId>
> >             <version>${jsonlib.version}</version>
> >             <classifier>jdk15</classifier>
> >         </dependency>
> >
> >         <dependency>
> >             <groupId>net.sf.ezmorph</groupId>
> >             <artifactId>ezmorph</artifactId>
> >             <version>${ezmorph.version}</version>
> >         </dependency>
> >
> > Please, advice.
> >
> >
> > 1. https://issues.apache.org/jira/browse/IGNITE-3277
> >
> > --
> > Alexey Kuznetsov
> > GridGain Systems
> > www.gridgain.com
> >
>
>
>
> --
> Alexey Kuznetsov
> GridGain Systems
> www.gridgain.com

signature.asc (237 bytes) Download Attachment