MAVEN:由于以前的失败,该项目已被禁止

时间:2018-02-14 12:58:38

标签: maven

我正在尝试使用以下命令在Maven本地存储库中添加Oracle JDBC驱动程序

  

mvn install:install-file -Dfile = C:\ Users \ Meharaj Fareedy \ Downloads \ ojdbc6.jar -DgroupId = com.oracle -DartifactId = ojdbc6 -Dversion = 11.2.0 -Dpackaging = jar

但是得到了。 This project has been banned from the build due to previous failures.

3 个答案:

答案 0 :(得分:0)

从“Meharaj Fareedy”目录中删除空格或在引号中传递路径 喜欢 -

没有空间

mvn install:install-file -Dfile=C:\Users\MeharajFareedy\Downloads\ojdbc6.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar

带引号

mvn install:install-file -Dfile="C:\Users\MeharajFareedy\Downloads\ojdbc6.jar" -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar

然后它会起作用

答案 1 :(得分:0)

使用文件名

的引号
mvn install:install-file -Dfile="C:\Users\Meharaj Fareedy\Downloads\ojdbc6.jar" -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar

答案 2 :(得分:0)

请修复先前的故障,这意味着项目取决于其他模块或其他有错误的东西。

您可以通过一个命令一个命令地运行而不将两个或多个命令混合在一起来执行。

您将获得解决方案。

相关问题