首页 > 学院 > 开发设计 > 正文

Maven学习记录

2019-11-08 02:09:12
字体:
来源:转载
供稿:网友

1、maven简单项目创建

最简单的demo开始,eclipse中,file-->new-->maven PRoject,创建simple project

创建之后报错,问题为:Could not calculate build plan: Failure to transfer org.apache.maven.plugins:maven-surefire-plugin。。。

问题解决方法:

C:/Users/Administrator/.m2/repository/org/apache/maven/plugins/maven-deploy-plugin路径(个人的可能有所不同,但可以搜索maven-deploy-plugin这个文件夹进行定位),将这个目录下的文件夹删除,

然后右击项目Maven->Update Project->Update Dependencies(如果更新无效,选择强制更新如下图)


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表