Need POM.xml for mssql jdbc driver wrapper

Avatar

Avatar

adobecq-venkat

Avatar

adobecq-venkat

adobecq-venkat

19-11-2020

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

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

shelly-goel

Avatar

shelly-goel

shelly-goel

22-11-2020

@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...

 

Answers (2)

Answers (2)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

22-11-2020

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