为eclipse添加依赖
Adding dependencies to eclipse
我想在我的 eclipse 项目中使用 Choco 3.3.1。我将所需的 jar 文件添加到 java 构建路径。但是在自述文件中它说我还需要添加所需的依赖项。它们看起来像这样:
org.javabits.jgrapht:jgrapht-core:jar:0.9.3
dk.brics.automaton:automaton:jar:1.11-8
args4j:args4j:jar:2.32
net.sf.trove4j:trove4j:jar:3.0.3
org.slf4j:slf4j-api:jar:1.7.13
没有maven,gradle等,我在哪里可以添加?
(该项目是一个scala项目,但我认为这不是问题)
最简单的方法可能是从 Maven Central repository. You can search by artifact and/or group ID and locate the exact version(s) you're looking for. For example, here's the search for the jgrapht
JAR 中找到并下载它们。
话虽如此,为什么不用Gradle呢,它有Scala support? Or sbt, the Scala build tool呢?你至少应该考虑一下这些。
我想在我的 eclipse 项目中使用 Choco 3.3.1。我将所需的 jar 文件添加到 java 构建路径。但是在自述文件中它说我还需要添加所需的依赖项。它们看起来像这样:
org.javabits.jgrapht:jgrapht-core:jar:0.9.3
dk.brics.automaton:automaton:jar:1.11-8
args4j:args4j:jar:2.32
net.sf.trove4j:trove4j:jar:3.0.3
org.slf4j:slf4j-api:jar:1.7.13
没有maven,gradle等,我在哪里可以添加? (该项目是一个scala项目,但我认为这不是问题)
最简单的方法可能是从 Maven Central repository. You can search by artifact and/or group ID and locate the exact version(s) you're looking for. For example, here's the search for the jgrapht
JAR 中找到并下载它们。
话虽如此,为什么不用Gradle呢,它有Scala support? Or sbt, the Scala build tool呢?你至少应该考虑一下这些。