如何检查maven-install-plugin是否可用?

时间:2016-03-08 20:23:34

标签: java maven ubuntu-14.04

我尝试使用maven install:install-file安装ojdbc,命令为:

mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.3.0 -Dpackaging=jar -Dfile=ojdbc6-11.2.0.3.0.jar -DgeneratePom=true

从ubuntu ec2-server和cygwin命令提示符,这很好用。 从第三个运行maven 3.2.5和java 8的ubuntu 14.04终端,这个失败并出现错误

[ERROR] The goal you specified requires a project to execute, but there is no POM in this directory (/home/user). PLease verify you invoked Maven from the correct directory

从技术上讲,错误信息是正确的,我从包含jar文件的目录执行此操作,并且那里没有pom。但是安装:install-file并不需要在我测试过该命令的任何其他服务器上使用pom。

有没有办法检查maven-install-plugin是否可用?如果不是,如何纠正?

0 个答案:

没有答案