Hi All,
I want to add the dependency for sql
jdbc driver. Following is the snippet which I have added in pom.xml
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>sqljdbc4</artifactId>
<version>4.0</version>
</dependency>
I then rt. click on my pom.xml and run
maven:install
as expected the build fails and it gives the following error:
"Failed to execute goal on project queryutility: Could not resolve dependencies for project : Failure to find com.microsoft.sqlserver:sqljdbc4:jar:4.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]"
I even downloaded the sqljdbc4.jar and then manually pasted at the location: \.m2\repository\com\microsoft\sqlserver\sqljdbc4\4.0\
even now the build fails giving the above error.
Please do help me in resolving this error.
Thanks and Regards,
Sid.