如果我已经安装了maven eclipse插件,可以安装maven吗? [英] Is it ok to Install maven if I already have installed maven eclipse plugin?
问题描述
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屋!