-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuilding.html
44 lines (44 loc) · 10 KB
/
building.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Chapter 40. Building JanusGraph</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="JanusGraph Documentation"><link rel="up" href="internals.html" title="Part VI. JanusGraph Internals"><link rel="prev" href="data-model.html" title="Chapter 39. JanusGraph Data Model"><link rel="next" href="development-process.html" title="Part VII. JanusGraph Development Process"><script xmlns:d="http://docbook.org/ns/docbook" type="text/javascript" src="js/jquery/jquery-1.11.0.js"></script><script xmlns:d="http://docbook.org/ns/docbook" type="text/javascript" src="js/jquery/jquery-migrate-1.2.1.min.js"></script><link xmlns:d="http://docbook.org/ns/docbook" rel="stylesheet" id="inline-blob-janusgraph-docs-specific" href="css/docs.css" type="text/css" media="all"><link xmlns:d="http://docbook.org/ns/docbook" rel="apple-touch-icon" type="image/png" href="images/janusgraph-logomark.png"><script xmlns:d="http://docbook.org/ns/docbook" type="text/javascript">
WebFontConfig = {
google: {
families: [
"Lato:400,400italic,700,700italic:latin,greek-ext,cyrillic,latin-ext,greek,cyrillic-ext,vietnamese",
"Open+Sans:400,400italic,700,700italic:latin,greek-ext,cyrillic,latin-ext,greek,cyrillic-ext,vietnamese",
"Antic+Slab:400,400italic,700,700italic:latin,greek-ext,cyrillic,latin-ext,greek,cyrillic-ext,vietnamese"
]
}
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})();
</script></head><body xmlns:d="http://docbook.org/ns/docbook" bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div id="wrapper"><div class="header-wrapper"><header id="header"><ul class="header-list"><li class="header-item"><a href="http://janusgraph.org"><img src="images/janusgraph-logo.png" alt="JanusGraph" class="normal_logo"></a></li><li class="header-item-right"><a href="https://github.com/JanusGraph/janusgraph/releases">Download JanusGraph</a></li><li class="header-item-right dropdown"><a href="https://docs.janusgraph.org/latest/doc-versions.html">Other Doc Versions</a><div class="dropdown-content"><a href="https://docs.janusgraph.org/latest/index.html">Latest</a><a href="https://docs.janusgraph.org/0.3.0/index.html">Version 0.3.0</a><a href="https://docs.janusgraph.org/0.2.2/index.html">Version 0.2.2</a><a href="https://docs.janusgraph.org/0.2.1/index.html">Version 0.2.1</a><a href="https://docs.janusgraph.org/0.2.0/index.html">Version 0.2.0</a><a href="https://docs.janusgraph.org/0.1.1/index.html">Version 0.1.1</a><a href="https://docs.janusgraph.org/0.1.0/index.html">Version 0.1.0</a></div></li><li class="header-item-right"><a href="index.html">Documentation (0.2.2)</a></li></ul></header></div><div id="main" class="clearfix width-100"><div class="breadcrumbs"><span class="breadcrumb-link"><a href="index.html">JanusGraph Documentation</a></span> > <span class="breadcrumb-link"><a href="internals.html">JanusGraph Internals</a></span> > <span class="breadcrumb-node">Building JanusGraph</span></div><div class="chapter"><div class="titlepage"><div><div><h2 class="title"><a name="building"></a>Chapter 40. Building JanusGraph</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl class="toc"><dt><span class="section"><a href="building.html#_depending_on_janusgraph_snapshots">40.1. Depending on JanusGraph Snapshots</a></span></dt><dt><span class="section"><a href="building.html#_faqs">40.2. FAQs</a></span></dt></dl></div><p>To build JanusGraph you need <a class="link" href="http://git-scm.com/" target="_top">git</a> and <a class="link" href="http://maven.apache.org/" target="_top">Maven</a>.</p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">Clone the <a class="link" href="https://github.com/JanusGraph/janusgraph" target="_top">JanusGraph repository from GitHub</a> to a local directory.</li><li class="listitem">In that directory, execute <code class="literal">mvn clean install</code>. This will build JanusGraph and run the internal test suite. The internal test suite has no external dependencies. Note, that running all test cases requires a significant amount of time. To skip the tests when building JanusGraph, execute <code class="literal">mvn clean install -DskipTests</code></li><li class="listitem">For comprehensive test coverage, execute <code class="literal">mvn clean test -P comprehensive</code>. This will run additional test covering communication to external storage backends, performance tests and concurrency tests. The comprehensive test suite uses Cassandra and HBase as external databases and requires that Cassandra and HBase are installed. Note, that running the comprehensive test suite requires a significant amount of of time (> 1 hour).</li></ol></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="_depending_on_janusgraph_snapshots"></a>40.1. Depending on JanusGraph Snapshots</h2></div></div></div><p>For developing against the most current version of JanusGraph, depend on JanusGraph snapshot releases. Note, that these releases are development releases and therefore unstable and likely to change. Unless one is interested in the most recent development status of JanusGraph, we recommend to use the stable JanusGraph release instead.</p><pre class="programlisting"><strong class="hl-tag" style="color: #000096"><dependency></strong>
<strong class="hl-tag" style="color: #000096"><groupId></strong>org.janusgraph<strong class="hl-tag" style="color: #000096"></groupId></strong>
<strong class="hl-tag" style="color: #000096"><artifactId></strong>janusgraph-core<strong class="hl-tag" style="color: #000096"></artifactId></strong>
<strong class="hl-tag" style="color: #000096"><version></strong>X.Y.Z-SNAPSHOT<strong class="hl-tag" style="color: #000096"></version></strong>
<strong class="hl-tag" style="color: #000096"></dependency></strong></pre><p>Check the <a class="link" href="https://github.com/JanusGraph/janusgraph/tree/master" target="_top">master branch</a> for the most current release version.
SNAPSHOTs will be available through the <a class="link" href="https://oss.sonatype.org/content/repositories/snapshots/org/janusgraph/" target="_top">Sonatype repository</a>.</p><p>When adding this dependency, be sure to add the following repository to the <code class="literal">pom.xml</code>:</p><pre class="programlisting"><strong class="hl-tag" style="color: #000096"><repository></strong>
<strong class="hl-tag" style="color: #000096"><id></strong>sonatype-nexus-snapshots<strong class="hl-tag" style="color: #000096"></id></strong>
<strong class="hl-tag" style="color: #000096"><name></strong>Sonatype Nexus Snapshots<strong class="hl-tag" style="color: #000096"></name></strong>
<strong class="hl-tag" style="color: #000096"><url></strong>https://oss.sonatype.org/content/repositories/snapshots<strong class="hl-tag" style="color: #000096"></url></strong>
<strong class="hl-tag" style="color: #000096"><releases></strong>
<strong class="hl-tag" style="color: #000096"><enabled></strong>false<strong class="hl-tag" style="color: #000096"></enabled></strong>
<strong class="hl-tag" style="color: #000096"></releases></strong>
<strong class="hl-tag" style="color: #000096"><snapshots></strong>
<strong class="hl-tag" style="color: #000096"><enabled></strong>true<strong class="hl-tag" style="color: #000096"></enabled></strong>
<strong class="hl-tag" style="color: #000096"></snapshots></strong>
<strong class="hl-tag" style="color: #000096"></repository></strong></pre></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="_faqs"></a>40.2. FAQs</h2></div></div></div><p><span class="strong"><strong>Maven build causes dozens of "[WARNING] We have a duplicate…" errors</strong></span></p><p>Make sure to use the maven-assembly-plugin when building or depending on JanusGraph.</p></div></div></div><div class="clearer"></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="data-model.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="internals.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="development-process.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 39. JanusGraph Data Model </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Part VII. JanusGraph Development Process</td></tr></table></div><div class="footer-wrapper"><footer id="footer"><div class="copyright">
Copyright © 2017 JanusGraph Authors. All rights reserved.<br>
The Linux Foundation has registered trademarks and uses trademarks. For a list of<br>
trademarks of The Linux Foundation, please see our <a href="https://www.linuxfoundation.org/trademark-usage">Trademark Usage</a> page.<br>
Cassandra, Groovy, HBase, Hadoop, Lucene, Solr, and TinkerPop are trademarks of the Apache Software Foundation.<br>
Berkeley DB and Berkeley DB Java Edition are trademarks of Oracle.<br>
Documentation generated with <a href="http://www.methods.co.nz/asciidoc/">AsciiDoc</a>, <a href="http://asciidoctor.org/">AsciiDoctor</a>, <a href="http://docbook.sourceforge.net/">DocBook</a>, and <a href="http://saxon.sourceforge.net/">Saxon</a>.
</div></footer></div></div></body></html>