A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mariadb.com/docs/connectors/mariadb-connector-j/installing-mariadb-connectorj below:

Installing MariaDB Connector/J | MariaDB Documentation

Installing MariaDB Connector/J | MariaDB Documentation
  1. Connector/J
Installing MariaDB Connector/J

Download MariaDB Connector/J

Installing MariaDB Connector/J with a Package Manager

The recommended way to install MariaDB Connector/J is to use a package manager like Maven or Gradle .

Installing MariaDB Connector/J with Maven

To install MariaDB Connector/J with Maven , add the following dependency to your pom.xml configuration file:

<dependency> 
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<version>$VERSION</version>
</dependency>

Ensure to replace the $VERSION with a valid MariaDB Connector/J version number. See About MariaDB Connector/J: Java Compatibility to determine which MariaDB Connector/J release series supports your Java version.

Installing MariaDB Connector/J with Gradle

To install MariaDB Connector/J with Gradle , add the following dependency to your build.gradle configuration file:

implementation 'org.mariadb.jdbc:mariadb-java-client:$VERSION'

Ensure to replace the $VERSION with a valid MariaDB Connector/J version number. See About MariaDB Connector/J: Java Compatibility to determine which MariaDB Connector/J release series supports your Java version.

Gradle configuration.

Installing MariaDB Connector/J Manually with the JAR File

It is not generally the recommended method, but MariaDB Connector/J can also be installed by manually installing the .jar file to a directory in your CLASSPATH . MariaDB Connector/J .jar files can be downloaded from the following URL:

Installing MariaDB Connector/J from Source

This section deals with building the connector from the source and testing it. If you have downloaded a ready-built connector in the package as a jar file, then this section may be skipped.

The source code is available at the mariadb-connector-j repository on GitHub. You can clone it by executing the following:

git clone https://github.com/MariaDB/mariadb-connector-j.git

If you would prefer a packaged source tarball release, then MariaDB Connector/J .jar source code tarballs can be downloaded from the following URL:

MariaDB Connector/J has the following build requirements:

If you would like to run the unit tests, then you'll need a MariaDB or MySQL server. It has to meet the following requirements:

If you would like to build MariaDB Connector/J and run the unit tests, then execute the following:

If you would like to build MariaDB Connector/J without running the unit tests, then execute the following:

mvn -Dmaven.test.skip=true package

Once the build is complete, you should have a .jar file with a name like the one mariadb-java-client-x.y.z.jar in the target subdirectory.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4