This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-17. For the latest, interactive version please visit https://mariadb.com/kb/.

Dependencies required to build Java connector

I am trying to build Mariadb Java connector 1.7.0 using maven. There are lot of dependencies that are downloaded into the local repository. Since I need to build it in offline mode eventually, is there a way to build it with fewer features to reduce the list of dependencies?

For example, there are about 70 dependencies downloaded for aws-java-sdk alone. Since I do not need AWS support, can I somehow compile the code without aws-java-sdk?

Thanks!

Answer Answered by Diego Dupin in this comment.

All dependencies are optional at runtime, but to build, dependencies like jna, slf4j, waffle are needed ...

Jar can be downloaded (https://downloads.mariadb.com/Connectors/java/) , but there is no way to build without having those dependencies.

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.