【发布时间】:2020-05-03 13:44:30
【问题描述】:
我的 Leiningin 项目在 Maven 中找不到 JavaFX。我做错了什么?
这是命令行输出(以及一些工具版本信息):
> java --version
openjdk 13.0.2 2020-01-14
OpenJDK Runtime Environment (build 13.0.2+8)
OpenJDK 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)
> lein --version
Leiningen 2.9.1 on Java 13.0.2 OpenJDK 64-Bit Server VM
> lein clean
> lein run
Could not find artifact org.openjfx:javafx:jar:13.0.2 in central (https://repo1.maven.org/maven2/)
Could not find artifact org.openjfx:javafx:jar:13.0.2 in clojars (https://repo.clojars.org/)
This could be due to a typo in :dependencies, file system permissions, or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
这是我的项目文件:
(defproject pdb-java-client "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[clj-http "2.2.0"]
[cheshire "5.6.3"]
[local/tsp-dev "6.2.0"]
[org.clojure/core.match "0.3.0-alpha4"]
[org.reflections/reflections "0.9.10"]
[org.openjfx/javafx "13.0.2"]]
:main ^:skip-aot pdb-java-client.core
:source-paths ["src/clojure"]
:java-source-paths ["src/java"]
:target-path "target/%s"
:profiles {:uberjar {:aot :all}})
尽管这是一个 Leiningen 项目,但大概 Maven 项目也会有同样的问题,因为 Maven 是在后台使用来获取依赖项的。我尝试了其他几个org.openjfx 工件,但都失败了。
【问题讨论】:
标签: maven javafx clojure leiningen