一、打开Maven仓库视图:
Window ------- Show View ------ other ----- maven


右击选择 ----- Rebuild Index (重建索引)-------
------添加依赖------



二、添加插件(tomcat为例)
pom.xml ---- 右击 -----maven ----- Add Plugin



输入tomcat:run 运行(如果选择tomcat 7 ,需要输入tomcat7:run 运行)
结果显示:

Window ------- Show View ------ other ----- maven


右击选择 ----- Rebuild Index (重建索引)-------



pom.xml ---- 右击 -----maven ----- Add Plugin




4421
1384
4224

被折叠的 条评论
为什么被折叠?
:从本地下载jar包到Maven项目中 (添加依赖,重建索引)+ 添加插件&spm=1001.2101.3001.5002&articleId=100557924&d=1&t=3&u=becda38172494d35acd3f17deafd1b33)