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