You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stanbol.apache.org by Rupert Westenthaler <ru...@gmail.com> on 2013/04/11 13:19:47 UTC
How to deal with a Solr 4.2.+ dependency not available on maven central
Hi all,
While working on STANBOL-1026 I discovered that solr-core (starting
with 4.2.0) has a dependency that is not on maven central. AFAIK this
is not allowed by the rules as Maven Central whats to be self
consistent or is it OK to use additional maven repositories?
Here are some details:
First the maven dependency:tree for solr-core:4.2.1
org.apache.solr:solr-core:jar:4.2.1:compile
+- org.apache.lucene:lucene-analyzers-kuromoji:jar:4.2.1:compile
+- org.apache.lucene:lucene-analyzers-morfologik:jar:4.2.1:compile
| \- org.carrot2:morfologik-polish:jar:1.5.5:compile
| \- org.carrot2:morfologik-stemming:jar:1.5.5:compile
| \- org.carrot2:morfologik-fsa:jar:1.5.5:compile
+- org.restlet.jee:org.restlet:jar:2.1.1:compile
\- org.restlet.jee:org.restlet.ext.servlet:jar:2.1.1:compile
Note that "org.restlet.jee:org.restlet" and
"org.restlet.jee:org.restlet.ext.servlet" seam not to be on maven
central
http://search.maven.org/#search|ga|1|org.restlet.jee
put managed on an own maven server (see http://restlet.org/download/maven)
This dependency was introduced by SOLR-4503. The issue with the
availability on Maven Central is explicitly mentioned in
https://issues.apache.org/jira/browse/SOLR-4503?focusedCommentId=13586264&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13586264
So if it is OK to add "http://maven.restlet.org" as additional maven
repository I will just do that for the "commons/solr/core" pom.xml
file and finish my work on STANBOL-1026. Otherwise we will need to
delay the upgrade and file an issue for Solr.
WDYT
Rupert
--
| Rupert Westenthaler rupert.westenthaler@gmail.com
| Bodenlehenstraße 11 ++43-699-11108907
| A-5500 Bischofshofen
Re: How to deal with a Solr 4.2.+ dependency not available on maven central
Posted by Rupert Westenthaler <ru...@gmail.com>.
Hi
On Thu, Apr 11, 2013 at 1:34 PM, Bertrand Delacretaz
<bd...@apache.org> wrote:
> Hi,
>
> On Thu, Apr 11, 2013 at 1:19 PM, Rupert Westenthaler
> <ru...@gmail.com> wrote:
>> ...if it is OK to add "http://maven.restlet.org" as additional maven
>> repository I will just do that for the "commons/solr/core" pom.xml
>> file and finish my work on STANBOL-1026...
>
> that's fine IMO, and best would be to open an issue with restlet
> directly, asking them to put their artifacts in Central.
>
Sorry I forgot to link to the according issue of Restlet
https://github.com/restlet/restlet-framework-java/issues/481
best
Rupert
> -Bertrand
--
| Rupert Westenthaler rupert.westenthaler@gmail.com
| Bodenlehenstraße 11 ++43-699-11108907
| A-5500 Bischofshofen
Re: How to deal with a Solr 4.2.+ dependency not available on maven central
Posted by Rupert Westenthaler <ru...@gmail.com>.
On Fri, Apr 12, 2013 at 12:07 PM, Bertrand Delacretaz
<bd...@apache.org> wrote:
> On Fri, Apr 12, 2013 at 11:51 AM, Rupert Westenthaler
> <ru...@gmail.com> wrote:
>> ...what are the alternatives? For Apache Stanbol it is
>> not possible to avoid Solr and also staying with outdated Lucene/Solr
>> version seams also not to be a great Idea....
>
> Can we exclude those problematic restlet transitive dependencies, or
> do we really need them?
Based on the SOLR-4503 patch [1] that got merged into the trunk we can
not exclude restlet as it is used by solr-core for the implementation
of its RESTful services.
best
Rupert
[1] https://issues.apache.org/jira/secure/attachment/12572125/SOLR-4503.patch
--
| Rupert Westenthaler rupert.westenthaler@gmail.com
| Bodenlehenstraße 11 ++43-699-11108907
| A-5500 Bischofshofen
Re: How to deal with a Solr 4.2.+ dependency not available on maven central
Posted by Bertrand Delacretaz <bd...@apache.org>.
On Fri, Apr 12, 2013 at 11:51 AM, Rupert Westenthaler
<ru...@gmail.com> wrote:
> ...what are the alternatives? For Apache Stanbol it is
> not possible to avoid Solr and also staying with outdated Lucene/Solr
> version seams also not to be a great Idea....
Can we exclude those problematic restlet transitive dependencies, or
do we really need them?
-Bertrand
Re: How to deal with a Solr 4.2.+ dependency not available on maven central
Posted by Rupert Westenthaler <ru...@gmail.com>.
On Fri, Apr 12, 2013 at 11:07 AM, Fabian Christ
<ch...@googlemail.com> wrote:
> The fact that Solr did a release with these deps does not imply that
> it is okay in principle.
>
> I am +0 here. It may be reasonable to allow it temporarily but only if
> there are clear signs that the situation will change in the near
> future. Otherwise such deps should IMO be avoided.
>
I fully agree, but what are the alternatives? For Apache Stanbol it is
not possible to avoid Solr and also staying with outdated Lucene/Solr
version seams also not to be a great Idea.
I will definitely keep an eye on this. Maybe Tommaso (as Solr/Lucene
committer) can also further investigate / track this.
best
Rupert
> Best,
> - Fabian
>
> --
> Fabian
> http://twitter.com/fctwitt
--
| Rupert Westenthaler rupert.westenthaler@gmail.com
| Bodenlehenstraße 11 ++43-699-11108907
| A-5500 Bischofshofen
Re: How to deal with a Solr 4.2.+ dependency not available on maven central
Posted by Bertrand Delacretaz <bd...@apache.org>.
On Fri, Apr 12, 2013 at 11:07 AM, Fabian Christ
<ch...@googlemail.com> wrote:
> ...this is only a temporarily solution, right? I just want to
> understand why it is okay in this case. The repo is under control of
> Restlet Inc. So it is a private repo of a company. We had the same
> situation in the past (during incubation) with other dependencies and
> had to remove all third party repos....
I don't remember the details of those past discussions - IMO there are
two things:
1) Are the dependencies ok in terms of license
2) Are we ok with depending on a private repo for our builds
IIRC the problem with dependencies we removed was 1) more than 2), and
IIUC 1) is ok for the restlet stuff.
About 2) I agree that in theory owners of private repos could inject
bad stuff in the binaries that one gets from there...but we don't have
any guarantee that that won't happen with a central repository either
;-)
I agree that this should be a temporary solution however, backed by a
jira issue so we don't forget to fix it.
-Bertrand
Re: How to deal with a Solr 4.2.+ dependency not available on maven central
Posted by Fabian Christ <ch...@googlemail.com>.
2013/4/11 Bertrand Delacretaz <bd...@apache.org>:
> On Thu, Apr 11, 2013 at 1:19 PM, Rupert Westenthaler
> <ru...@gmail.com> wrote:
>> ...if it is OK to add "http://maven.restlet.org" as additional maven
>> repository I will just do that for the "commons/solr/core" pom.xml
>> file and finish my work on STANBOL-1026...
>
> that's fine IMO, and best would be to open an issue with restlet
> directly, asking them to put their artifacts in Central.
But this is only a temporarily solution, right? I just want to
understand why it is okay in this case. The repo is under control of
Restlet Inc. So it is a private repo of a company. We had the same
situation in the past (during incubation) with other dependencies and
had to remove all third party repos.
The fact that Solr did a release with these deps does not imply that
it is okay in principle.
I am +0 here. It may be reasonable to allow it temporarily but only if
there are clear signs that the situation will change in the near
future. Otherwise such deps should IMO be avoided.
Best,
- Fabian
--
Fabian
http://twitter.com/fctwitt
Re: How to deal with a Solr 4.2.+ dependency not available on maven central
Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi,
On Thu, Apr 11, 2013 at 1:19 PM, Rupert Westenthaler
<ru...@gmail.com> wrote:
> ...if it is OK to add "http://maven.restlet.org" as additional maven
> repository I will just do that for the "commons/solr/core" pom.xml
> file and finish my work on STANBOL-1026...
that's fine IMO, and best would be to open an issue with restlet
directly, asking them to put their artifacts in Central.
-Bertrand