[英]How to build same source code twice with different dependency version, in both Maven and Eclipse?
[英]How to build this source code? - missing dependency
我需要幫助如何構建這個例子: http://blogs.oracle.com/arungupta/resource/totd154.zip從本教程http://blogs.oracle.com/arungupta/entry/totd_154_dynamic_osgi_services
我安裝了Netbeans 7.1。 當我單擊“清理並生成”時,會發生此錯誤:
Failed to execute goal on project helloworld-cdiclient: Could not resolve dependencies for project org.samples.osgi.helloworld:helloworld-cdiclient:war:1.0-SNAPSHOT: Could not find artifact org.glassfish:osgi-cdi-api:jar:3.1-SNAPSHOT -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
After correcting the problems, you can resume the build with the command
mvn <goals> -rf :helloworld-cdiclient
我想我需要向Maven配置中添加特定的glassfish存儲庫。 我需要哪個存儲庫?
引用我的評論(對不起,我會給其他人正確回答的機會,而不是在奔跑中):
要回答您的問題,download.java.net / maven / glassfish應該會有所幫助。 配置行是
<repositories>
<repository>
<id>glassfish-repo</id>
<name>The Glassfish repository</name>
<url>http://download.java.net/maven/glassfish/</url>
</repository>
<!-- all the rest... -->
</repositories>
玩得開心!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.