miaojjblog

      如果有必要,点击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,然后导入项目,就正常了

分类:

技术点:

相关文章:

  • 2021-09-07
  • 2021-11-01
  • 2021-12-19
  • 2021-11-01
  • 2021-11-29
  • 2021-12-12
  • 2021-11-30
猜你喜欢
  • 2021-08-21
  • 2022-01-01
  • 2021-08-27
  • 2021-04-22
  • 2021-10-22
相关资源
相似解决方案