当前位置: 移动技术网 > IT编程>开发语言>Java > 使用Eclipse创建Maven项目

使用Eclipse创建Maven项目

2018年09月17日  | 移动技术网IT编程  | 我要评论

      如果有必要,点击eclipse菜单栏help->eclipse marketplace搜索到插件maven integration for eclipse 并点击安装最新的eclipse内置了maven,具体可以查看如图所示。(file->new->other,在弹出的对话框中会看到如下图所示:


如果有了上图,就不用安装m2eclipse插件了。

安装完成之后,我们在eclipse菜单栏中点击file->new->other,在弹出的对话框中会看到如上图所示,点击maven  project创建maven项目,点击next,得到下图:

如图示操作,选择maven-archetype-quickstart,点击next

 按图示填写好groupid, artfactid,version等信息,点击finish就完成了。

在创建java项目时遇到个错误:could not get the value for parameter encoding for plugin execution default-resources

解决办法:

先关闭ide工具,把用户目录下的.m2目录下的全部删掉,例如:c:\documents and settings\username\.m2\repository文件夹下面的全部删掉。
(可能有一些删不掉,要把spring tool suite关掉才能全部删掉)删掉后,重新打开ide,然后导入项目,就正常了

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网