Warm tip: This article is reproduced from stackoverflow.com, please click
playframework

How to sync with Mavan with Play 1.2.5

发布于 2020-04-23 15:18:05

I have a Play 1.2.5 application, and it has been deployed for a few years. However, I needed to update my server to the newest Ubuntu version and reinstalled.

Now however, when I do play deps --sync I get the following warning.

SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/maven-metadata.xml

How can I specify that it should use HTTPS?

Questioner
Luuk D. Jansen
Viewed
18
Luuk D. Jansen 2020-02-11 04:15

Thanks to @cbley I got on the right track. Play! uses Ivy, so after a bit of digging I found that it is possible to edit/create the file:

~/.ivy2/ivysettings.xml

Here you can set a resolver, so I put in:

<ivysettings>
  <settings defaultResolver="chain" />
  <resolvers>
    <chain name="chain">
      <ibiblio name="securedcentral" m2compatible="true" root="https://repo1.maven.org/maven2" />
    </chain>
  </resolvers>
</ivysettings>