cancel
Showing results for 
Search instead for 
Did you mean: 

DBdriver jar getting deleted

0 Kudos

Hi All,

I am trying to run fresh hybris package. After setting setantenv.bat while running the ant clean getting missing jars for sql.

I added sql jars in DBdriver inside bin\platform\lib\dbdriver but gets deleted when I run the ant clean again and throws error.

ver:jar:5.0.0.0-SNAPSHOT: The following artifacts could not be resolved: com.microsoft:sqljdbc:jar:4.0.2206.100, com.sap.db:ngdbc:jar:0.95.0: Failure to find com.microsof jar:4.0.2206.100 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has e updates are forced -> [Help 1]

================

Former Member
0 Kudos

A simple solution is to rename \hybris\bin\platform\lib\dbdriver\external-dependencies.xml to some other name say, external-dependencies.xml.bak and then execute ant. Please try and let me know.

Note: Please make sure to copy the database drivers (jars) from hybris download (zip) and restore to \hybris\bin\platform\lib folder before you run ant again

Accepted Solutions (0)

Answers (2)

Answers (2)

Hi!

Set the property (local.properties) maven.update.dbdrivers=false. Then, ensure that the required driver exists in hybris/bin/platform/lib/dbdriver. If necessary, copy the jar manually to that location.

See also this question:

https://answers.sap.com/questions/12759708/disable-maven-during-ant.html

Regards, Thomas

0 Kudos

Thanks for your response. ....

I could resolve the problem by extracting hybris package using WINRAR. when I was opening without WinRAR it was giving error.

I'll try to replicate the problem and will try to solve with your solution .

Thanks!