在linux上面执行以下命令没问题:
mvn install:install-file -Dfile=./ojdbc6-11.2.0.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar -DgeneratePom=true
但是在windows上面却失败了,报no POM in this directory:
The goal you specified requires a project to execute but there is no POM in this directory (xxxxx). Please verify you invoked Maven from the correct directory.
解决的办法很简单,所有的运行参数都加上引号就行:
mvn install:install-file "-Dfile=./ojdbc6-11.2.0.jar" "-DgroupId=com.oracle" "-DartifactId=ojdbc6" "-Dversion=11.2.0" "-Dpackaging=jar" "-DgeneratePom=true"