You can easily embed BaseX into your own Maven projects by adding the following XML snippets to your {{Code|pom.xml}} file:
<syntaxhighlight lang="xml"><<repositories>> <<repository>> <<id>>basex<</id>> <<name>>BaseX Maven Repository<</name>> <<url>>http://files.basex.org/maven<</url>> <</repository>><</repositories>></syntaxhighlight>
===BaseX Main Package===
<syntaxhighlight lang="xml"><<dependency>> <<groupId>>org.basex<</groupId>> <<artifactId>>basex<</artifactId>> <<version>>7.6<</version>><</dependency>></syntaxhighlight>
===APIs and Services===
<p>...including APIs and the [[REST]], [[RESTXQ]] and [[WebDAV]] services:</p>
<syntaxhighlight lang="xml"><<dependency>> <<groupId>>org.basex<</groupId>> <<artifactId>>basex-api<</artifactId>> <<version>>7.6<</version>><</dependency>></syntaxhighlight>
===XQJ API===