Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Need POM.xml for mssql jdbc driver wrapper

adobecq-venkat
Level 3
Level 3

Hi,

I am using AEM 6.1 and need to connect MSSQL Database. I downloaded driver from Microsoft site and uploaded in OSGI console and setup data source and it works fine.

But I wanted to move this JDBC driver as part of my code build so all the users will get it in their build automatically.

I tried to use embed tag in pom.xml and used "*" , some how it doesn't work.

 

Does any one has working POM.xml for MSSQL JDBC driver?

 

Thanks for your help.

Venkat

 

1 Accepted Solution
shelly-goel
Correct answer by
Community Advisor
Community Advisor

@adobecq-venkat  You would also have to export that dependency under <export-package> section of the pom.xml

A similar issue with a different 3rd party jar/ bundle inclusion is mentioned here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-maven-build-cannot-res...

 

View solution in original post

3 Replies
Arun_Patidar
Community Advisor
Community Advisor

you need to update apps POM.XML to copy sql bundle in apps/yourapp/install folder same as your project bundle.

shelly-goel
Correct answer by
Community Advisor
Community Advisor

@adobecq-venkat  You would also have to export that dependency under <export-package> section of the pom.xml

A similar issue with a different 3rd party jar/ bundle inclusion is mentioned here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-maven-build-cannot-res...

 

View solution in original post