首页 > 其他 > 详细

maven 解决 中央仓库没有的依赖的问题

时间:2019-03-18 14:12:35      阅读:318      评论:0      收藏:0      [点我收藏+]

比如 百度的富文本编辑器ueditor,中央仓库就没有.

可以使用eclipse导入,也可以使用maven命令导入.

1.eclipse 导入: 右键项目,选择import ,

选择Maven 里面的install or deploy an artifact to a Maven repositor ,

artifact file 是需要导入的jar包的路径,

pom file 是pom.xml文件的路径,  不用勾选 Generate POM ,

group Id  和 Artifact id 就是pom.xml 文件中的依赖.

2.maven命令导入 :

复制jar包全路径,

maven安装bin 路径下打开命令行,

执行命令 : mvn install:install-file -Dfile=jar包的全路径 -DgroupId=pom文件中依赖的groupId -DartifactId=pom文件中的artifactId -Dversion=pom文件中的version -Dpackaging=jar

maven 解决 中央仓库没有的依赖的问题

原文:https://www.cnblogs.com/rempop/p/10551642.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!