使用Netbeans安装机箱 [英] Installing Enclosure with Netbeans

查看:225
本文介绍了使用Netbeans安装机箱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法安装Enclosure并使其工作。我遵循此指南 http://www.enclojure.org/gettingstarted 并成功安装了Enclosure(I认为)。但是,当我尝试构建示例应用程序(labrepl)时,我得到了一堆错误和失败的构建。我没有使用Java在很长一段时间,我从来没有使用Netbeans,这个错误似乎不是非常有帮助,我有限的这个领域的知识。我使用最新的Netbeans和指南中的Enclosure URL。因为我在Windows上,我不能使用git克隆repo,所以我不知道从这里做什么。



无论如何,这里是错误

 警告:您正在运行嵌入式Maven构建,某些构建可能会由于与最新Maven版本不兼容而失败。 
要设置用于构建的Maven实例,请单击此处。
扫描项目...
[#process-resources]
[resources:resources]
使用默认编码来复制已过滤的资源。
[#compile]
[ERROR]作用域的传递依赖关系解析:您的项目的编译失败。
[错误]错误消息:缺少:
[错误] ----------
[错误] 1)org.clojure:clojure-contrib:jar:1.2。 0-master-SNAPSHOT
[错误]请尝试从项目网站手动下载文件。
[ERROR]然后,使用命令安装它:
[ERROR] mvn install:install-file -DgroupId = org.clojure -DartifactId = clojure-contrib -Dversion = 1.2.0-master-SNAPSHOT -Dpackaging = jar -Dfile = / path / to / file
[ERROR]或者,如果托管自己的存储库,您可以在那里部署文件:
[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]依赖的路径:
[ERROR] 1)labrepl:labrepl:jar:0.0.1
[ERROR] 2)org.clojure:clojure-contrib:jar:1.2.0-master-SNAPSHOT
[ERROR] ----------
[ERROR]缺少1个必需的工件。
[ERROR] for artifact:
[ERROR] labrepl:labrepl:jar:0.0.1
[ERROR]从指定的远程仓库:
[ //repo1.maven.org/maven2),
[ERROR] clojars(http://clojars.org/repo/),
[ERROR] incanter(http://repo.incanter.org ),
[错误] clojure-snapshots(http://build.clojure.org/snapshots),
[错误] clojure(http://build.clojure.org/releases),
[错误] clojure版本(http://build.clojure.org/releases)
[错误]组ID:labrepl
[错误]工件ID:labrepl
[ ERROR]版本:0.0.1
[错误]来自文件:C:\Users\chloey\Documents\NetBeansProjects\RelevanceLabRepl\pom.xml
------- -------------------------------------------------- ---------------
有关更多信息,请使用-e标志运行
----------------- -------------------------------------------------- -----
BUILD FAILED
----------------------------------- -------------------------------------
总时间:1秒
完成于:Wed Jun 09 21:53:04 CDT 2010
最后记忆:72M / 172M
----------------------- ------------------------------------------------- $感谢所有。

解决方案 / div>

我有同样的问题,所以我干净的安装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以内的额外功能不能确定从哪里下载。


I am having trouble installing Enclosure and getting it to work. I have followed this guide http://www.enclojure.org/gettingstarted and successfully installed Enclosure (I think). However, when I try to build the sample application (labrepl) I get a bunch of errors and a failed build. I haven't used Java in a long time and I've never used Netbeans, and the error doesn't seem very helpful with my limited knowledge of this domain. I'm using the latest Netbeans and the Enclosure URL from the guide. Since I am on Windows, I can't use git to clone the repo, so I'm not sure what to do from here.

Anyway, here are the error messages.

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
------------------------------------------------------------------------

Thanks all.

解决方案

I had the same problem so I did a clean install of Netbeans followed by and install of maven both to no avail.

When I went to download the missing artifact I noticed that clojure-contrib version 1.2.0 was not available for download. Changing the pom.xml to look for version 1.1.0 resulted in a successful build.

Open the pom.xml and change

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

to

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

By the looks of things some additional functionality within 1.2.0 is needed for labrepl not sure from where to download it.

这篇关于使用Netbeans安装机箱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆