[
https://issues.apache.org/jira/browse/SOLR-14224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17026895#comment-17026895
]
Cassandra Targett commented on SOLR-14224:
------------------------------------------
This came up for me today for a totally different reason, but since I looked it
up, I'll share what I know: Recent versions of Lucene and Solr have this fixed
via LUCENE-8807 (released in 7.7.2) and LUCENE-8893 (released in 8.3).
I experimented with building 7.6 and branch_6x (before the HTTPS changes in the
above mentioned issues) to pinpoint the problem. What's failing is the {{ant
ivy-bootstrap}} step. There is a very easy workaround that is possible if
you're already building from source: simply change the Maven URLs in
{{common-build.xml}} to use HTTPS instead of HTTP, as in:
{code}
<property name="ivy_bootstrap_url1" value="https://repo1.maven.org/maven2"/>
<!-- you might need to tweak this from china so it works -->
<property name="ivy_bootstrap_url2" value="https://uk.maven.org/maven2"/>
{code}
Once this is changed, for me the {{ant ivy-bootstrap}} target was successful
and Solr built normally.
If Ivy needs to go get other dependencies, there is still a chance the build
will fail, because in older branches there are still places in
{{lucene/default-nested-ivy-settings.xml}} which won't yet use HTTPS. I saw
this occur in fact, but the build was able to get the dependencies from other
places, which allowed the build to pass, so it's possible that this will work
fine for all.
However, if it does not get the dependencies from other places, the same
workaround would work there as well - update the URLs in
{{lucene/default-nested-ivy-settings.xml}} to use HTTPS.
We're unlikely to do another 6.6.x release, and these are very simple
workarounds if you're already building from source. Please give this a try and
let us know how it goes.
> Not able to build solr 6.6.2 from source after January 15, 2020
> ---------------------------------------------------------------
>
> Key: SOLR-14224
> URL: https://issues.apache.org/jira/browse/SOLR-14224
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Affects Versions: 6.6.2
> Reporter: Guruprasad K K
> Priority: Major
>
> After Jan 15th maven is allowing only https connections to repo. But solr
> 6.6.2 version uses http connection. So builds are failing.
> But looks like latest version of solr has the fix to this in common_build.xml
> and other places where it uses https connection to maven.
>
> Error log:
> ivy-bootstrap1:
> [mkdir] Created dir: /root/.ant/lib
> [echo] installing ivy 2.3.0 to /root/.ant/lib
> [get] Getting:
> [http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar]
> [get] To: /root/.ant/lib/ivy-2.3.0.jar
> [get] Error opening connection
> [java.io|http://java.io/]
> .IOException: Server returned HTTP response code: 501 for URL:
> [http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar]
> [get] Error opening connection
> [java.io|http://java.io/]
> .IOException: Server returned HTTP response code: 501 for URL:
> [http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar]
> [get] Error opening connection
> [java.io|http://java.io/]
> .IOException: Server returned HTTP response code: 501 for URL:
> [http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar]
> [get] Can't get
> [http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar]
> to /root/.ant/lib/ivy-2.3.0.jar
>
>
>
>
> [NOTE]: It works on latest version of solr, where http is converted to https
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]