1
votes

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.

3
Please add exception in text to understandAfgan

3 Answers

1
votes

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

0
votes

Use a quotes for the filename

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

Please fix the previous failures means project is depends on the other module or other something which has errors.

You may get the idea by running command one by one don't mix two or more together to execute.

You will get your solution.