You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by onkar shedge <sh...@gmail.com> on 2016/06/07 05:13:25 UTC
adding ipfs-jar as dependency
The java-ipfs-api is not present in the central maven repository. And I
want to add it as a dependency in zeppelin-zengine. So how should i add it ?
1] https://github.com/ipfs/java-ipfs-api
Regards,
Onkar Shedge.
Re: adding ipfs-jar as dependency
Posted by onkar shedge <sh...@gmail.com>.
The ipfs jar is built using jdk 1.8 here is the pom.xml file [1]
So I changed it to contain source and target as 1.7 The jar is created
successfully but when using in zeppelin I get errors. Should I compile the
zeppelin using jdk 1.8 ?
I also asked on ipfs github page. [2]
1] https://github.com/ipfs/java-ipfs-api/blob/master/pom.xml
2] https://github.com/ipfs/java-ipfs-api/issues/9
On Tue, Jun 7, 2016 at 1:03 PM, Alexander Bezzubov <bz...@apache.org> wrote:
> Hi Onkar,
>
> glad to see that your exams are over and you are focusing on the GSoC
> project!
>
> Your plan sounds good as short-term solution.
> Do you know IFPS have any plans to publish it? It might be worth asking for
> it [1] and expressing the interest.
>
> Implementation-wise - it might be better to use ipfs jar, manually
> installed in your existing local maven repository (~/.m2). It will
> just require users to install it first, and then project can be built as
> usually.
>
> Do not forget to document this at least in some README file that will be
> part of your PR, as well as precise instructions (mvn install:install-file
> ...) for users on how to install this third-party library to their locally
> repository. Here is a good starting point on learning how to do that [2].
>
> On the side-note - I think now may be a good time to start a long living
> branch with your work and submit a PR to Zeppelin with "[WIP] ...." in
> title, so your work would become more visible.
>
>
> 1. https://github.com/ipfs/java-ipfs-api/issues/1
> 2. https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
>
> On Tue, Jun 7, 2016 at 9:14 AM, onkar shedge <sh...@gmail.com>
> wrote:
>
> > This worked for me, don't know if it is a good practice. I created a
> > directory 'local-repo' in base project and this in zeppelin-zengine
> pom.xml
> >
> > <repositories>
> > <repository>
> > <id>local-repo</id>
> > <url>file://${project.parent.basedir}/local-repo</url>
> > </repository>
> > </repositories>
> >
> > and also the dependency part
> > <dependency>
> > <groupId>org.ipfs</groupId>
> > <artifactId>api</artifactId>
> > <version>0.0.1-SNAPSHOT</version>
> > </dependency>
> >
> >
> > On Tue, Jun 7, 2016 at 10:43 AM, onkar shedge <sh...@gmail.com>
> > wrote:
> >
> > > The java-ipfs-api is not present in the central maven repository. And I
> > > want to add it as a dependency in zeppelin-zengine. So how should i add
> > it ?
> > >
> > > 1] https://github.com/ipfs/java-ipfs-api
> > >
> > > Regards,
> > > Onkar Shedge.
> > >
> >
>
Re: adding ipfs-jar as dependency
Posted by Alexander Bezzubov <bz...@apache.org>.
Hi Onkar,
glad to see that your exams are over and you are focusing on the GSoC
project!
Your plan sounds good as short-term solution.
Do you know IFPS have any plans to publish it? It might be worth asking for
it [1] and expressing the interest.
Implementation-wise - it might be better to use ipfs jar, manually
installed in your existing local maven repository (~/.m2). It will
just require users to install it first, and then project can be built as
usually.
Do not forget to document this at least in some README file that will be
part of your PR, as well as precise instructions (mvn install:install-file
...) for users on how to install this third-party library to their locally
repository. Here is a good starting point on learning how to do that [2].
On the side-note - I think now may be a good time to start a long living
branch with your work and submit a PR to Zeppelin with "[WIP] ...." in
title, so your work would become more visible.
1. https://github.com/ipfs/java-ipfs-api/issues/1
2. https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
On Tue, Jun 7, 2016 at 9:14 AM, onkar shedge <sh...@gmail.com>
wrote:
> This worked for me, don't know if it is a good practice. I created a
> directory 'local-repo' in base project and this in zeppelin-zengine pom.xml
>
> <repositories>
> <repository>
> <id>local-repo</id>
> <url>file://${project.parent.basedir}/local-repo</url>
> </repository>
> </repositories>
>
> and also the dependency part
> <dependency>
> <groupId>org.ipfs</groupId>
> <artifactId>api</artifactId>
> <version>0.0.1-SNAPSHOT</version>
> </dependency>
>
>
> On Tue, Jun 7, 2016 at 10:43 AM, onkar shedge <sh...@gmail.com>
> wrote:
>
> > The java-ipfs-api is not present in the central maven repository. And I
> > want to add it as a dependency in zeppelin-zengine. So how should i add
> it ?
> >
> > 1] https://github.com/ipfs/java-ipfs-api
> >
> > Regards,
> > Onkar Shedge.
> >
>
Re: adding ipfs-jar as dependency
Posted by onkar shedge <sh...@gmail.com>.
This worked for me, don't know if it is a good practice. I created a
directory 'local-repo' in base project and this in zeppelin-zengine pom.xml
<repositories>
<repository>
<id>local-repo</id>
<url>file://${project.parent.basedir}/local-repo</url>
</repository>
</repositories>
and also the dependency part
<dependency>
<groupId>org.ipfs</groupId>
<artifactId>api</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
On Tue, Jun 7, 2016 at 10:43 AM, onkar shedge <sh...@gmail.com>
wrote:
> The java-ipfs-api is not present in the central maven repository. And I
> want to add it as a dependency in zeppelin-zengine. So how should i add it ?
>
> 1] https://github.com/ipfs/java-ipfs-api
>
> Regards,
> Onkar Shedge.
>