IntelliJ создает «Ошибка доступа к серверу: нераспознанное сообщение SSL, текстовое соединение» при создании нового проекта Play Framework - PullRequest
0 голосов
/ 24 августа 2018

Моя операционная система - Fedora 28, работающая на VMware. Я работаю в корпоративной среде, поэтому мне нужно использовать px-proxy для подключения Fedora и других технологий, работающих в ней, к Интернету (Docker, DNF и т. Д.). Я уже настроил параметры прокси в Intellij.

Итак, я продолжил и создал новый проект Play в IntelliJ. Но при сборке выдает следующую ошибку?

Error while importing sbt project:

Getting org.scala-sbt sbt 0.13.17  (this may take some time)...

:: problems summary ::
:::: WARNINGS
module not found: org.scala-sbt#sbt;0.13.17

==== local: tried

/home/clover/.ivy2/local/org.scala-sbt/sbt/0.13.17/ivys/ivy.xml

-- artifact org.scala-sbt#sbt;0.13.17!sbt.jar:

/home/clover/.ivy2/local/org.scala-sbt/sbt/0.13.17/jars/sbt.jar

==== local-preloaded-ivy: tried

file:////home/clover/.sbt/preloaded/org.scala-sbt/sbt/0.13.17/ivys/ivy.xml

==== local-preloaded: tried

file:////home/clover/.sbt/preloaded/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.pom

-- artifact org.scala-sbt#sbt;0.13.17!sbt.jar:

file:////home/clover/.sbt/preloaded/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.jar

==== Maven Central: tried

https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.pom
unresolved dependency: org.scala-sbt#sbt;0.13.17: not found
(see /home/clover/.sbt/boot/update.log for complete log)
Error: Could not retrieve sbt 0.13.17

-- artifact org.scala-sbt#sbt;0.13.17!sbt.jar:

https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.jar

==== sbt-maven-releases: tried

https://repo.scala-sbt.org/scalasbt/maven-releases/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.pom

-- artifact org.scala-sbt#sbt;0.13.17!sbt.jar:

https://repo.scala-sbt.org/scalasbt/maven-releases/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.jar

==== sbt-maven-snapshots: tried

https://repo.scala-sbt.org/scalasbt/maven-snapshots/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.pom

-- artifact org.scala-sbt#sbt;0.13.17!sbt.jar:

https://repo.scala-sbt.org/scalasbt/maven-snapshots/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.jar

==== typesafe-ivy-releases: tried

https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.17/ivys/ivy.xml

==== sbt-ivy-snapshots: tried

https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/sbt/0.13.17/ivys/ivy.xml

::::::::::::::::::::::::::::::::::::::::::::::

::          UNRESOLVED DEPENDENCIES         ::

::::::::::::::::::::::::::::::::::::::::::::::

:: org.scala-sbt#sbt;0.13.17: not found

::::::::::::::::::::::::::::::::::::::::::::::


:::: ERRORS
Server access Error: Unrecognized SSL message, plaintext connection? url=https://repo.scala-sbt.org/scalasbt/maven-releases/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.pom

Server access Error: Unrecognized SSL message, plaintext connection? url=https://repo.scala-sbt.org/scalasbt/maven-releases/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.jar

Server access Error: Unrecognized SSL message, plaintext connection? url=https://repo.scala-sbt.org/scalasbt/maven-snapshots/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.pom

Server access Error: Unrecognized SSL message, plaintext connection? url=https://repo.scala-sbt.org/scalasbt/maven-snapshots/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.jar

Server access Error: Unrecognized SSL message, plaintext connection? url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.17/ivys/ivy.xml

Server access Error: Unrecognized SSL message, plaintext connection? url=https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/sbt/0.13.17/ivys/ivy.xml


:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
Error during sbt execution: Error retrieving required libraries

То, что я пробовал перед открытием IntelliJ:

Я установил JAVA_HOME в .bash_profile:

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

export JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk"

PATH=$JAVA_HOME/bin:$PATH:$HOME/.local/bin:$HOME/bin

export PATH

Я экспортировал переменные окружения для прокси Java:

export JAVA_OPTS="-Dhttp.proxyHost=myprxhost -Dhttp.proxyPort=3128 -Dhttps.proxyHost=myprxhost  -Dhttps.proxyPort=3128 -Dhttp.nonProxyHosts=localhost|127.0.0.1"

echo $JAVA_OPTS производит -Dhttp.proxyHost=myprxhost -Dhttp.proxyPort=3128 -Dhttps.proxyHost=myprxhost -Dhttps.proxyPort=3128 -Dhttp.nonProxyHosts=localhost|127.0.0.1

Я скачал файл сертификата облачных сервисов, который выдает мой работодатель. Затем я ввел следующую команду:

sudo keytool -import -alias CloudServices -keystore /usr/lib/jvm/java-1.8.0-openjdk/jre/lib/security/cacerts -file cloud_services.cer

Как мне решить эту проблему?

...