Driver version
12.4.1
SQL Server version
Microsoft SQL Server 2019 (RTM-GDR) (KB5014356) - 15.0.2095.3 (X64) Apr 29 2022 18:00:13 Copyright (C) 2019 Microsoft Corporation Developer Edition (64-bit) on Windows 10 Pro 10.0 (Build 22000: ) (Hypervisor)
(but unrelated to issue)
Client Operating System
Win 11 (but unrelated)
JAVA/JVM version
17.0.4 (but unrelated)
Problem description
This change here: https://github.com/microsoft/mssql-jdbc/pull/2198/commits
added an explicit dependency to com.ibm.lang.management in META-INF/MANIFEST.MF.
As a result, the driver will not deploy anymore in an OSGi environment without that dependency:
The class is loaded via reflection, but the maven-bundle-plugin is too 'intelligent', recognizes it and constructs a mandatory import for it.
You need to explicitly declare the dependency as optional in pom.xml. See pull request #2208.
See #1892 for a very similar issue.
Expected behavior
Dependency declared optional and deploying without successfully.
Driver version
12.4.1
SQL Server version
Microsoft SQL Server 2019 (RTM-GDR) (KB5014356) - 15.0.2095.3 (X64) Apr 29 2022 18:00:13 Copyright (C) 2019 Microsoft Corporation Developer Edition (64-bit) on Windows 10 Pro 10.0 (Build 22000: ) (Hypervisor)
(but unrelated to issue)
Client Operating System
Win 11 (but unrelated)
JAVA/JVM version
17.0.4 (but unrelated)
Problem description
This change here: https://github.com/microsoft/mssql-jdbc/pull/2198/commits
added an explicit dependency to com.ibm.lang.management in META-INF/MANIFEST.MF.
As a result, the driver will not deploy anymore in an OSGi environment without that dependency:
The class is loaded via reflection, but the maven-bundle-plugin is too 'intelligent', recognizes it and constructs a mandatory import for it.
You need to explicitly declare the dependency as optional in pom.xml. See pull request #2208.
See #1892 for a very similar issue.
Expected behavior
Dependency declared optional and deploying without successfully.