在线安装maven插件问题,Maven仓库中导出jar

来源:互联网 发布:mysql需要多大内存 编辑:程序博客网 时间:2024/06/06 14:21

使用Eclipse在线安装的方式:Help-->Install  New Software

地址输入:http://m2eclipse.sonatype.org/sites/m2e/,列表中打勾勾上后点击Next

安装maven插件时遇到了如下的错误:

Cannot complete the install because one or more required items could not be found.
 

解决办法:
启动eclipse,点击window——>preferences——>install/update——>available software sites,点击Add

添加如下信息:
GEF  http://download.eclipse.org/tools/gef/updates/releases/


然后再重新安装maven插件

使用Eclipse在线安装的方式:Help-->Install  New Software


地址输入:http://m2eclipse.sonatype.org/sites/m2e/,列表中打勾勾上后点击Next
,一路Next,有License选择Accept,然后等待安装,并重启Eclipse。

 

 

从Maven仓库中导出jar包:

进入工程pom.xml 所在的目录下,输入以下命令:

 

mvn dependency:copy-dependencies -DoutputDirectory=lib

lib为导出的目标文件夹

 

0 1
原创粉丝点击