Package Details: neo4j-community 2026.06.0-1

Git Clone URL: https://aur.archlinux.org/neo4j-community.git (read-only, click to copy)
Package Base: neo4j-community
Description: A fully transactional graph database implemented in Java
Upstream URL: https://github.com/neo4j/neo4j
Licenses: GPL-3.0-only
Conflicts: neo4j-enterprise
Submitter: tucho
Maintainer: noureddinex
Last Packager: noureddinex
Votes: 67
Popularity: 0.54
First Submitted: 2015-12-30 05:23 (UTC)
Last Updated: 2026-07-08 13:12 (UTC)

Dependencies (3)

Sources (5)

Latest Comments

1 2 3 4 5 6 .. 12 Next › Last »

rubin55 commented on 2026-05-29 06:57 (UTC) (edited on 2026-06-02 19:26 (UTC) by rubin55)

I got this while trying to build this morning:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.9.0:go-offline (default-cli) on project neo4j-genai-plugin: The following artifacts could not be resolved: com.neo4j:enterprise-it-test-support:jar:2026.05.0 (absent): Could not find artifact com.neo4j:enterprise-it-test-support:jar:2026.05.0 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :neo4j-genai-plugin
==> ERROR: A failure occurred in prepare().

This seems to be an upstream mistake; community/genai-plugin/src/test/java/org/neo4j/genai/ai/file/embed/FileVectorEmbeddingRBACTest.java:31-32 is an enterprise-only test. in community/genai-plugin/pom.xml it is pulling com.neo4j:enterprise-it-test-support into every default community build. The patch (name it fix-genai-plugin.patch):

--- a/community/genai-plugin/pom.xml
+++ b/community/genai-plugin/pom.xml
@@ -151,12 +151,6 @@
       <scope>provided</scope>
     </dependency>
     <dependency>
-      <groupId>com.neo4j</groupId>
-      <artifactId>enterprise-it-test-support</artifactId>
-      <version>${project.version}</version>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
       <groupId>org.assertj</groupId>
       <artifactId>assertj-core</artifactId>
       <scope>test</scope>
@@ -218,6 +212,15 @@
   <build>
     <plugins>
       <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <!-- Keep the enterprise-only RBAC test out of the default community build. -->
+          <testExcludes>
+            <exclude>**/FileVectorEmbeddingRBACTest.java</exclude>
+          </testExcludes>
+        </configuration>
+      </plugin>
+      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-shade-plugin</artifactId>
         <executions>
@@ -239,4 +242,31 @@
       </plugin>
     </plugins>
   </build>
+
+  <profiles>
+    <profile>
+      <id>test-enterprise</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <dependencies>
+        <dependency>
+          <groupId>com.neo4j</groupId>
+          <artifactId>enterprise-it-test-support</artifactId>
+          <version>${project.version}</version>
+          <scope>test</scope>
+        </dependency>
+      </dependencies>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-compiler-plugin</artifactId>
+            <configuration>
+              <testExcludes combine.self="override" />
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

In PKGBUILD:

  1. Add "fix-genai-plugin.patch" as a last entry to the sources= array
  2. Add "SKIP" as a last entry to the sha256sums= array
  3. In the prepare() function, right under cd $_pkgname-$pkgver add:
  4. patch -p1 < "$srcdir/fix-genai-plugin.patch"

After that, makepkg and you should have a fresh neo4j-community package.

I filed a bug upstream.

rubin55 commented on 2026-04-03 15:56 (UTC) (edited on 2026-04-03 18:31 (UTC) by rubin55)

  • $bin_archive seems to have changed from neo4j-community-$pkgver to neo4j-$pkgver/neo4j-community-$pkgver
  • LICENSES.txt does not seem to exist anymore
  • NOTICE.txt does not seem to exist anymore
  • conf/* files are not found

I had to change $bin_archive to "$srcdir/neo4j-$pkgver/neo4j-community-$pkgver" (note: relative path didn't work, not sure why), and I had to remove the "$bin_archive/LICENSES.txt" and "$bin_archive/NOTICE.txt" from the install line (all in the package() function).

noureddinex commented on 2026-02-11 17:47 (UTC)

@rubin55 I will look into this change soon, thanks for your kind words

rubin55 commented on 2026-02-10 21:47 (UTC)

I just discovered this package is being kept up-to-date again, much happiness. Fwiw, I would like to suggest a few changes:

diff --git a/PKGBUILD b/PKGBUILD
index ed175c4..91de91f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,12 +13,13 @@ arch=(any)
 url="https://github.com/neo4j/neo4j"
 license=(GPL-3.0-only)
 _java_version=21
-depends=("java-runtime=$_java_version")
+depends=("java-runtime>=$_java_version")
 makedepends=(
-  "java-environment=$_java_version"
+  "java-environment>=$_java_version"
   "maven"
 )
-conflicts=(neo4j-enterprise)
+conflicts=(neo4j-enterprise neo4j-community-bin cypher-shell)
+provides=(neo4j neo4j-community cypher-shell)
 backup=(
   etc/neo4j/neo4j-admin.conf
   etc/neo4j/neo4j.conf
@@ -41,8 +42,6 @@ sha256sums=('07f75525c36eb0c4781c5d74fd45531a5092b2533dfacbc9818eade97bf656bf'
 prepare() {
   cd $_pkgname-$pkgver

-  export JAVA_HOME="/usr/lib/jvm/java-$_java_version-openjdk"
-  export PATH="$JAVA_HOME/bin:$PATH"
   mvn versions:set -DnewVersion="$pkgver"

   # Download dependencies
@@ -71,8 +70,6 @@ prepare() {
 build() {
   cd $_pkgname-$pkgver

-  export JAVA_HOME="/usr/lib/jvm/java-$_java_version-openjdk"
-  export PATH="$JAVA_HOME/bin:$PATH"
   mvn \
     -Dmaven.repo.local="$srcdir/repo" \
     package -DskipTests
@@ -81,8 +78,6 @@ build() {
 check() {
   cd $_pkgname-$pkgver

-  export JAVA_HOME="/usr/lib/jvm/java-$_java_version-openjdk"
-  export PATH="$JAVA_HOME/bin:$PATH"
   # Running all integration tests takes ~1 hour
   mvn \
     -Dmaven.repo.local="$srcdir/repo" \

The above diff does the following things:

  • I succesfully compiled and ran all unit- and integration tests with GraalVM Java 25; hence java version can be >=21 instead of =21;
  • I suggest letting the user choose however they want to java, using archlinux-java set, and don't override JAVA_HOME and PATH;
  • This package (correctly!) provides cypher-shell, hence should conflict with cypher-shell AUR package, also with neo4j-community-bin;
  • I suggest having a provides line that explicitly provides neo4j, neo4j-community, and cypher-shell

Thanks for the great packaging job, I'm very happy to run a from-source Neo4j.

noureddinex commented on 2026-02-04 19:33 (UTC)

@r4um I will look into it, thanks for reporting

r4um commented on 2026-01-30 03:42 (UTC) (edited on 2026-01-30 03:43 (UTC) by r4um)

2025.12.1-1 Build fails for me

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.166 s
[INFO] Finished at: 2026-01-29T09:46:15+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.14.1:compile (default-compile) on project annotations: Fatal error compiling: error: release version 21 not supported -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :annotations
==> ERROR: A failure occurred in build().
    Aborting...

Using openjdk 21

›› java -version
openjdk version "21.0.10" 2026-01-20
OpenJDK Runtime Environment (build 21.0.10+7)
OpenJDK 64-Bit Server VM (build 21.0.10+7, mixed mode, sharing)

bader commented on 2024-12-02 06:33 (UTC) (edited on 2024-12-02 06:34 (UTC) by bader)

For anyone that needs neo4j-browser plugin I created a hook with a script to updated it and install it when the package neo4j-community updates.

The hook located at /etc/pacman.d/hooks/neo4j-browser.hook

[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = neo4j-community

[Action]
Description = Update Neo4j Browser JAR for neo4j-community
When = PostTransaction
Exec = /usr/local/bin/update-neo4j-browser

The script located at /usr/local/bin/update-neo4j-browser

#!/bin/sh

set -e # Exit immediately on error

# Get the Neo4j version, trimming unnecessary spaces or newlines
NEO4J_VERSION=$(neo4j --version 2>/dev/null) || {
    echo "[!] Failed to determine Neo4j version. Ensure Neo4j is installed and accessible."
    exit 1
}

# Construct the download URL
DOWNLOAD_URL="https://repo.maven.apache.org/maven2/org/neo4j/client/neo4j-browser/${NEO4J_VERSION}/neo4j-browser-${NEO4J_VERSION}.jar"

# Set the plugins directory and destination file
PLUGIN_DIR="/var/lib/neo4j/plugins"
DEST_FILE="${PLUGIN_DIR}/neo4j-browser-${NEO4J_VERSION}.jar"

# Create the plugins directory if it doesn't exist
if [ ! -d "$PLUGIN_DIR" ]; then
    echo "[*] Creating plugins directory at $PLUGIN_DIR"
    mkdir -p "$PLUGIN_DIR"
    chown -R neo4j:neo4j "$PLUGIN_DIR"
    chmod -R 755 "$PLUGIN_DIR"
fi

# Download the Neo4j Browser JAR file
echo "[*] Downloading Neo4j Browser version ${NEO4J_VERSION} from ${DOWNLOAD_URL}..."
if ! curl -fsSL -o "$DEST_FILE" "$DOWNLOAD_URL"; then
    echo "Failed to download Neo4j Browser JAR from ${DOWNLOAD_URL}."
    exit 1
fi

# Set the correct permissions for the JAR file
echo "[*] Setting permissions for $DEST_FILE..."
chown neo4j:neo4j "$DEST_FILE"
chmod 755 "$DEST_FILE"

echo "[*] Neo4j Browser ${NEO4J_VERSION} installed successfully."

Remember that the script needs sudo if you run it manually else the download will fail. This is not an issue when triggered by Pacman/yay.

After starting/restarting the service sudo systemctl restart neo4j.service navigate to http://localhost:7474

bader commented on 2024-12-02 06:04 (UTC)

for anyone who needs to download neo4j-browser you can get it from the maven repo:

https://repo.maven.apache.org/maven2/org/neo4j/client/neo4j-browser/5.24.0/

bader commented on 2024-12-01 11:35 (UTC)

Please add neo4j-browser to this package. It doesn't make sense to install it manually.

tjcim commented on 2024-05-02 12:52 (UTC)

Can we get neo4j-browser added to this? It seems that with the newer versions the browser is in a separate repo. No idea how hard that would be.