MAVEN: This project has been banned from the build due to previous failures

maven

I am trying to add Oracle JDBC driver in Maven local repository using following command

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

But getting . This project has been banned from the build due to previous failures.

Best Answer

Remove space from your "Meharaj Fareedy" directory Or pass path in quotes like -

without space

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

With quotes

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

Then it would work

Related Topic