首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用Netbeans安装存储模块

使用Netbeans安装存储模块
EN

Stack Overflow用户
提问于 2010-06-10 11:14:23
回答 2查看 855关注 0票数 2

我在安装盘柜和让它正常工作时遇到了问题。我已经按照这个指南安装了http://www.enclojure.org/gettingstarted,并且成功地安装了附件(我想)。然而,当我尝试构建示例应用程序(labrepl)时,我得到了一堆错误和一个失败的构建。我已经很长时间没有使用Java了,也从来没有使用过Netbeans,这个错误似乎对我有限的这个领域的知识没有多大帮助。我使用的是最新的Netbeans和指南中的附件URL。因为我在Windows上,我不能使用git来克隆存储库,所以我不确定从这里做什么。

无论如何,以下是错误消息。

代码语言:javascript
复制
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
------------------------------------------------------------------------

谢谢大家。

EN

回答 2

Stack Overflow用户

发布于 2010-06-11 16:06:40

缺失的工件就是工件本身。您使用什么命令来构建它?如果其他方法都失败了,请尝试在命令行上使用mvn clean install

票数 0
EN

Stack Overflow用户

发布于 2010-06-11 23:03:15

我也遇到了同样的问题,所以我干净利落地安装了Netbeans,然后安装了maven,但都没有用。

当我去下载缺失的工件时,我注意到clojure-contrib版本1.2.0不可下载。更改pom.xml以查找版本1.1.0会导致构建成功。

打开pom.xml并更改

代码语言:javascript
复制
<dependency>
  <groupId>org.clojure</groupId>
  <artifactId>clojure-contrib</artifactId>
  <version>1.2.0-master-SNAPSHOT</version>
</dependency>

代码语言:javascript
复制
<dependency>
  <groupId>org.clojure</groupId>
  <artifactId>clojure-contrib</artifactId>
  <version>1.1.0-master-SNAPSHOT</version>
</dependency>

从外观上看,labrepl需要1.2.0中的一些额外功能,但不确定从哪里下载它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3011401

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档