Maven install jar包到本地时报no pom错误

来源:互联网 发布:linux启动盘软碟通制作 编辑:程序博客网 时间:2024/05/16 14:13

执行Maven打包到本地命令时:

 mvn install:install-file -Dfile=D:/ojdbc6.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.1.0 -Dpackaging=jar

报错,报错内容如下:

[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (D:\). Please verify you invoked Maven from the correct directory.

其实把带点的值都加上引号就可以了如下:

mvn install:install-file -Dfile=D:/ojdbc6.jar -DgroupId='com.oracle' -DartifactId=ojdbc6 -Dversion='11.2.0.1.0' -Dpackaging=jar

希望大家都能避开这些小坑,早点回家吃饭难过





阅读全文
0 0
原创粉丝点击