idea 报错maven [ERROR] Maven execution terminated abnormally (exit code 1)

今天想自己搭建一个maven项目,嗯,本以为很简单,还是遇到了一些问题,如题。

因为就是想搭建一个简单的 maven java项目所以选的apache 的这个quickstart骨架

《idea 报错maven [ERROR] Maven execution terminated abnormally (exit code 1)》

选好骨架以后然后,然后一路next,美滋滋,本以为大功告成了,然鹅。。。

[ERROR] Maven execution terminated abnormally (exit code 1)

因为报错了,就没有生成src

在网上百度了各种方法,大致分为以下几类吧

1.maven 和 jdk版本冲突(我自己没有去看这个,因为我的其他项目也用了相同的maven和jdk就没事啊)

2.还有就是要修改一些maven的配置,就像这个博客里说的,有的人解决了,可是好难过,我的没有。。https://blog.csdn.net/yanghaibobo110/article/details/73835469

3.settting文件有问题。然后我就去看了idea中配置的setting文件的路径,我发现我的那个路径下没有setting.xml文件,于是乎,我就百度了一下,然后重新创建了一下项目,真的解决了!!

《idea 报错maven [ERROR] Maven execution terminated abnormally (exit code 1)》

如果有需要可以看一下这个setting.xml,我也大功告成了!美滋滋

《idea 报错maven [ERROR] Maven execution terminated abnormally (exit code 1)》

    原文作者:俗世里的俗人
    原文地址: https://www.jianshu.com/p/241c4a724d84
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞