如果我已经安装了maven eclipse插件,可以安装maven吗? [英] Is it ok to Install maven if I already have installed maven eclipse plugin?

查看:107
本文介绍了如果我已经安装了maven eclipse插件,可以安装maven吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有maven eclipse插件,我想在我的项目中使用一个不支持maven的jar文件,所以我发现我必须这样做:

  mvn install:install-file -Dfile = c:\kaptcha-2.3.jar -DgroupId = com.google.code 
-DartifactId = kaptcha -Dversion = 2.3 - Dpackaging = jar

所以我必须安装maven才能发出该命令,但不会导致冗余maven插件?

解决方案

如果您同时安装了maven和eclipse maven插件,这是没有问题的。我只为其pom.xml文件编辑器使用eclipse maven插件。我通过命令行执行关于maven的所有其他操作。



此外,我使用的插件(m2eclipse)有时会给出奇怪的依赖性错误,尽管一切都很好。因为当我为该项目运行mvn install时,它已经成功构建了。所以,我认为使用maven本身更可靠。


I have maven eclipse plugin and I want to use a jar file in my project that is not supported in maven so I found out I have to do something like this :

mvn install:install-file -Dfile=c:\kaptcha-2.3.jar -DgroupId=com.google.code 
-DartifactId=kaptcha -Dversion=2.3 -Dpackaging=jar

So I have to install maven to issue that command but won't that cause redundancy with maven plugin ?

解决方案

It is no problem if you have both maven and eclipse maven plugin installed. I only use eclipse maven plugin for its pom.xml file editor. I do all other operations about maven through the command line.

Besides, the plugin (m2eclipse) I used, sometimes give strange dependency errors although everything is fine. Because when I run a "mvn install" for the project, it is built successfully. So, I think using maven itself is more reliable.

这篇关于如果我已经安装了maven eclipse插件,可以安装maven吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆