sofh7777 发表于 2017-2-27 06:02:50

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

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

Listening for transport dt_socket at address: 8000
Scanning for projects...
                                                                        
------------------------------------------------------------------------
Building BSP APP Web Module 0.0.1-SNAPSHOT
------------------------------------------------------------------------

>>> jetty-maven-plugin:7.0.1.v20091125:run (default-cli) @ bsp-app-web >>>
The POM for com.cc:bsp-app-domain:jar:0.0.1-SNAPSHOT is missing, no dependency information available
The POM for com.cc:bsp-app-service:jar:0.0.1-SNAPSHOT is missing, no dependency information available
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 1.456s
Finished at: Fri Sep 14 14:36:21 CST 2012
Final Memory: 2M/15M
------------------------------------------------------------------------
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 ->

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:
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
  该错误信息是集成eclipse报错,错误信息有限,使用原生态maven运行mvn jetty:run可以定位此问题。
  该问题主要是因为依赖插件没有down下来,而eclipse集成maven检查不了插件包存在或者不存在。
  本次错误是jetty-maven-plugin没有下载下来,我更换一个新的,然后在命令行里执行mvn jetty:run便可以了。
页: [1]
查看完整版本: eclipse集成maven+jetty关于使用jetty:run 出现本地依赖包找不到问题。