madu
madu

Reputation: 354

installing microsoft sqljdbc driver with maven

I have a maven project and i need to add dependency to Microsoft sqljdbc driver.

I have followed the steps shown in this article here

but when i try to do the fist step i get the following error

[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\soft\sqljdbc_4.1\
enu). Please verify you invoked Maven from the correct directory. ->   [Help 1]

Upvotes: 1

Views: 4310

Answers (1)

madu
madu

Reputation: 354

I found the solution for the issue. We need to give all the arguments wrapped in double quotas "" like this

mvn install:install-file "-DgroupId=com.microsoft.sqlserver" "-DartifactId=sqljdbc41"  "-Dversion=4.1"  "-Dpackaging=jar" "-Dfile=sqljdbc41.jar" 

Then only maven will install the file without a pom file

Answer in this question helped me

Upvotes: 2

Related Questions