美文网首页
maven-install: Failed to execute

maven-install: Failed to execute

作者: 菜鸟也无忧 | 来源:发表于2022-06-23 10:23 被阅读0次

工程结构:

在根项目上执行run  as >> maven install,结果报错:

[INFO] Scanning for projects...

[INFO]

[INFO] --------------------------< SelfWms:SelfWms >---------------------------

[INFO] Building SelfWms 0.0.1-SNAPSHOT

[INFO] --------------------------------[ ear ]---------------------------------

[WARNING] The POM for SelfWms:SelfWmsEJB:jar:0.0.1-SNAPSHOT is missing, no dependency information available

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 0.406 s

[INFO] Finished at: 2022-06-24T09:51:01+08:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal on project SelfWms: Could not resolve dependencies for project SelfWms:SelfWms:ear:0.0.1-SNAPSHOT: Could not find artifact SelfWms:SelfWmsEJB: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

搜到了 https://blog.csdn.net/ljj2312/article/details/81130551

根据网上的解决方案,cmd里查了下系统环境变量,java与javac 版本不一样,改了一下环境变量,再执行还是一样,又在myeclipse的Terminal中查了一下版本,结果没变过来。

关闭重启Myeclipse,Terminal中查了一下版本,版本一致了。

先对SelfWmsEJB 、SelfWmsWeb执行 run  as >> maven install,最后对SelfWms执行,结果成功了。

相关文章

网友评论

      本文标题:maven-install: Failed to execute

      本文链接:https://www.haomeiwen.com/subject/zpuvvrtx.html