AWS Security ChangesHomeSearch

AWS neptune documentation change

Service: neptune · 2025-10-16 · Documentation low

File: neptune/latest/userguide/access-graph-sparql-java.md

Summary

Revised Apache Maven installation steps, distinguishing between Amazon Linux 2023 (dnf) and Amazon Linux 2 (manual download), removing repository configuration steps.

Security assessment

Routine documentation update for dependency management. No security-related content or vulnerability mitigation identified.

Diff

diff --git a/neptune/latest/userguide/access-graph-sparql-java.md b/neptune/latest/userguide/access-graph-sparql-java.md
index 30bfc5c7d..328772028 100644
--- a//neptune/latest/userguide/access-graph-sparql-java.md
+++ b//neptune/latest/userguide/access-graph-sparql-java.md
@@ -13 +13 @@ Follow these instructions from an Amazon EC2 instance in the same virtual privat
-  1. Install Apache Maven on your EC2 instance. First, enter the following to add a repository with a Maven package:
+  1. Install Apache Maven on your EC2 instance. If using Amazon Linux 2023 (preferred), use:
@@ -15 +15,2 @@ Follow these instructions from an Amazon EC2 instance in the same virtual privat
-        sudo wget https://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
+        sudo dnf update -y
+    sudo dnf install maven -y
@@ -17 +18 @@ Follow these instructions from an Amazon EC2 instance in the same virtual privat
-Enter the following to set the version number for the packages:
+If using Amazon Linux 2, download the latest binary from [ https://maven.apache.org/download.cgi: ](https://maven.apache.org/download.cgi:)
@@ -19,5 +20,7 @@ Enter the following to set the version number for the packages:
-        sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo
-
-Then you can use **yum** to install Maven:
-    
-        sudo yum install -y apache-maven
+        sudo yum remove maven -y
+    wget https://dlcdn.apache.org/maven/maven-3/ <version>/binaries/apache-maven-<version>-bin.tar.gz
+    sudo tar -xzf apache-maven-<version>-bin.tar.gz -C /opt/
+    sudo ln -sf /opt/apache-maven-<version> /opt/maven
+    echo 'export MAVEN_HOME=/opt/maven' >> ~/.bashrc
+    echo 'export PATH=$MAVEN_HOME/bin:$PATH' >> ~/.bashrc
+    source ~/.bashrc