论坛首页 Java企业应用论坛

eclipse集成maven+jetty关于使用jetty:run 出现本地依赖包找不到问题。

浏览 3499 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2012-09-14  

eclipse集成maven+jetty关于使用jetty:run 出现本地依赖包找不到问题。

 

错误如下:

Listening for transport dt_socket at address: 8000
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building BSP APP Web Module 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> jetty-maven-plugin:7.0.1.v20091125:run (default-cli) @ bsp-app-web >>>
[WARNING] The POM for com.cc:bsp-app-domain:jar:0.0.1-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for com.cc:bsp-app-service:jar:0.0.1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.456s
[INFO] Finished at: Fri Sep 14 14:36:21 CST 2012
[INFO] Final Memory: 2M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project bsp-app-web: Could not resolve dependencies for project com.cc:bsp-app-web:war:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.cc:bsp-app-domain:jar:0.0.1-SNAPSHOT, com.cc:bsp-app-service:jar:0.0.1-SNAPSHOT: Could not find artifact com.cc:bsp-app-domain:jar:0.0.1-SNAPSHOT -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

 

 

 

该错误信息是集成eclipse报错,错误信息有限,使用原生态maven运行mvn jetty:run可以定位此问题。

 

该问题主要是因为依赖插件没有down下来,而eclipse集成maven检查不了插件包存在或者不存在。

 

 

本次错误是jetty-maven-plugin没有下载下来,我更换一个新的,然后在命令行里执行mvn jetty:run便可以了。

 

 

 

 

 

论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics