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>
===BaseX Main Package===
<syntaxhighlight pre lang="xml"><dependency>
<groupId>org.basex</groupId>
<artifactId>basex</artifactId>
<p>...including APIs and the [[REST]], [[RESTXQ]] and [[WebDAV]] services:</p>
<syntaxhighlight pre lang="xml"><dependency>
<groupId>org.basex</groupId>
<artifactId>basex-api</artifactId>
<p>The XQJ API is hosted at http://xqj.net:</p>
<syntaxhighlight pre lang="xml">
<repository>
<id>xqj</id>