Required:
- Java 17 (currently the only supported Java release)
- Maven 3.6.3+
The launch scripts enforce Java 17 as the minimum runtime. This check does not qualify later Java releases; build HugeGraph with Java 17 unless another release is explicitly listed as supported.
The published hugegraph-common and hugegraph-rpc libraries use Java 11
bytecode for downstream compatibility. Their build and tests still run on
Java 17; this library bytecode target does not lower HugeGraph's runtime
requirement.
See the Server runtime guide for the upgraded runtime, client configuration and compatibility checks.
To build without executing tests: mvn clean package -Dmaven.test.skip=true
The standard distribution does not include org.apdplat:word:1.3. It is a
provided dependency used to compile and test the optional word analyzer.
The default analyzer remains ikanalyzer; the shipped graph configurations
use jieba, and neither requires the word library.
Obtain the GPLv3-licensed external component from Maven Central.
To use word, supply word-1.3.jar separately in the Server's lib/ directory
and restart the Server. Select it in the graph configuration with a supported
mode, for example:
search.text_analyzer=word
search.text_analyzer_mode=PureEnglishSelecting word without its external library fails with a configuration error
identifying the missing optional dependency. Other analyzers remain available.
Applications using Struct directly must add the same dependency to their
runtime classpath when selecting word.
To build without executing tests:
- Click on "File" -> "Open", choose your project location.
- Open maven view by click "View" -> "Tool Windows" -> "Maven Projects".
- Choose root module "hugegraph: Distributed Graph Database", unfold the menu of "Lifecycle".
- Click the "Toggle 'Skip Tests' Mode" button which is located on the top navibar of "Maven Projects" window to skip tests.
- Double click "package" or "install" to build a project.
Could also refer Dev-In-IDEA for more details.
Note: this has only been tested on Eclipse Neon.2 Release (4.6.2) with m2e (1.7.0.20160603-1933) and m2e-wtp (1.3.1.20160831-1005) plugin.
To build without executing tests:
- Right-click on your project -> "Run As..." -> "Run Configurations..."
- On "Goals", populate with
install - Select the options
Update SnapshotsandSkip Tests - Before clicking "Run", make sure that Eclipse knows where
JAVA_HOMEis. In the same window, go to "Environment" tab and click "New". - Under "Name:", add
JAVA_HOME - Under "Value:", add the path where
javais located - Click "OK"
- Then click "Run"
To find the Java binary in your environment, run the appropriate command for your operating system:
- Linux/macOS:
which java - Windows:
for %i in (java.exe) do @echo. %~$PATH:i