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