2010-06-10 67 views
2

我在安裝機櫃並使其工作時遇到問題。我遵循本指南http://www.enclojure.org/gettingstarted併成功安裝了機箱(我認爲)。但是,當我嘗試構建示例應用程序(labrepl)時,出現一堆錯誤和構建失敗。我很久沒有使用Java了,而且我從未使用過Netbeans,而且這個錯誤似乎對我對這個領域有限的瞭解並不是很有幫助。我正在使用指南中的最新Netbeans和機箱URL。由於我在Windows上,因此我無法使用git克隆回購,因此我不確定要從這裏執行什麼操作。使用Netbeans安裝機櫃

無論如何,這裏是錯誤信息。

WARNING: You are running embedded Maven builds, some build may fail due to incompatibilities with latest Maven release. 
     To set Maven instance to use for building, click here. 
Scanning for projects... 
[#process-resources] 
[resources:resources] 
Using default encoding to copy filtered resources. 
[#compile] 
[ERROR]Transitive dependency resolution for scope: compile has failed for your project. 
[ERROR]Error message: Missing: 
[ERROR]---------- 
[ERROR]1) org.clojure:clojure-contrib:jar:1.2.0-master-SNAPSHOT 
[ERROR] Try downloading the file manually from the project website. 
[ERROR] Then, install it using the command: 
[ERROR]  mvn install:install-file -DgroupId=org.clojure -DartifactId=clojure-contrib -Dversion=1.2.0-master-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file 
[ERROR] Alternatively, if you host your own repository you can deploy the file there: 
[ERROR]  mvn deploy:deploy-file -DgroupId=org.clojure -DartifactId=clojure-contrib -Dversion=1.2.0-master-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] 
[ERROR] Path to dependency: 
[ERROR]   1) labrepl:labrepl:jar:0.0.1 
[ERROR]   2) org.clojure:clojure-contrib:jar:1.2.0-master-SNAPSHOT 
[ERROR]---------- 
[ERROR]1 required artifact is missing. 
[ERROR]for artifact: 
[ERROR] labrepl:labrepl:jar:0.0.1 
[ERROR]from the specified remote repositories: 
[ERROR] central (http://repo1.maven.org/maven2), 
[ERROR] clojars (http://clojars.org/repo/), 
[ERROR] incanter (http://repo.incanter.org), 
[ERROR] clojure-snapshots (http://build.clojure.org/snapshots), 
[ERROR] clojure (http://build.clojure.org/releases), 
[ERROR] clojure-releases (http://build.clojure.org/releases) 
[ERROR]Group-Id: labrepl 
[ERROR]Artifact-Id: labrepl 
[ERROR]Version: 0.0.1 
[ERROR]From file: C:\Users\chloey\Documents\NetBeansProjects\RelevanceLabRepl\pom.xml 
------------------------------------------------------------------------ 
For more information, run with the -e flag 
------------------------------------------------------------------------ 
BUILD FAILED 
------------------------------------------------------------------------ 
Total time: 1 second 
Finished at: Wed Jun 09 21:53:04 CDT 2010 
Final Memory: 72M/172M 
------------------------------------------------------------------------ 

謝謝大家。

+0

正確的拼寫是「Enclojure」,而不是「Enclosure」。我無權自行編輯此內容。 – Sergey 2010-06-10 22:30:23

回答

0

失落的神器是神器本身。你用什麼命令來構建它?如果一切都失敗,請在命令行上嘗試mvn clean install

0

我有同樣的問題,所以我做了一個乾淨安裝的Netbeans,然後安裝Maven都無濟於事。

當我去下載缺失的神器時,我發現clojure-contrib版本1.2.0不能下載。更改pom.xml以查找版本1.1.0導致構建成功。

打開pom.xml的

<dependency> 
    <groupId>org.clojure</groupId> 
    <artifactId>clojure-contrib</artifactId> 
    <version>1.2.0-master-SNAPSHOT</version> 
</dependency> 

<dependency> 
    <groupId>org.clojure</groupId> 
    <artifactId>clojure-contrib</artifactId> 
    <version>1.1.0-master-SNAPSHOT</version> 
</dependency> 

到的東西是需要labrepl從哪裏下載它不知道內1.2.0一些附加功能的外觀。