Changes

Jump to navigation Jump to search
97 bytes removed ,  10:52, 29 July 2020
This page is part of the [[Developer Section]]. It demonstrates how [httphttps://maven.apache.org Maven] is used to compile and run BaseX, and embed it into other projects.
==Using Maven==
There are several alternatives for starting BaseX:
* type in {{Code|java -cp target/classes org.basex.BaseX}} in the {{Code|basex-core}} repository directory to start BaseX on the command-line mode,* type in {{Code|mvn jetty:run}} in the {{Code|basex-api}} repository directory to start BaseX with Jetty and the HTTP servers,
* run one of the [[Start Scripts]] contained in the {{Code|etc}} directory
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">&lt;<repositories&gt;> &lt;<repository&gt;> &lt;<id&gt;>basex&lt;</id&gt;> &lt;<name&gt;>BaseX Maven Repository&lt;</name&gt;> &lt;<url&gt;>http://files.basex.org/maven&lt;</url&gt;> &lt;</repository&gt;>&lt;</repositories&gt;></presyntaxhighlight>
===BaseX Main Package===
 <pre classsyntaxhighlight lang="brush:xml">&lt;<dependency&gt;> &lt;<groupId&gt;>org.basex&lt;</groupId&gt;> &lt;<artifactId&gt;>basex&lt;</artifactId&gt;> &lt;<version&gt;>7.6&lt;</version&gt;>&lt;</dependency&gt;></presyntaxhighlight>
===APIs and Services===
 
<p>...including APIs and the [[REST]], [[RESTXQ]] and [[WebDAV]] services:</p>
<pre classsyntaxhighlight lang="brush:xml">&lt;<dependency&gt;> &lt;<groupId&gt;>org.basex&lt;</groupId&gt;> &lt;<artifactId&gt;>basex-api&lt;</artifactId&gt;> &lt;<version&gt;>7.6&lt;</version&gt;>&lt;</dependency&gt;></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>  [[Category:Developer]]
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu