AWS neptune documentation change
Summary
Modified Maven installation instructions, prioritizing Amazon Linux 2023 (dnf) and providing updated manual steps for Amazon Linux 2.
Security assessment
Procedural update for tool installation prerequisites. No security implications or feature additions detected.
Diff
diff --git a/neptune/latest/userguide/iam-auth-connect-prerq.md b/neptune/latest/userguide/iam-auth-connect-prerq.md index fafb2253f..138ab5a52 100644 --- a//neptune/latest/userguide/iam-auth-connect-prerq.md +++ b//neptune/latest/userguide/iam-auth-connect-prerq.md @@ -13 +13 @@ The following are instructions for installing Apache Maven and Java 8 on an Amaz - 2. Install Apache Maven on your EC2 instance. First, enter the following to add a repository with a Maven package. + 2. Install Apache Maven on your EC2 instance. If using Amazon Linux 2023 (preferred), use: @@ -15 +15,2 @@ The following are instructions for installing Apache Maven and Java 8 on an Amaz - 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 @@ The following are instructions for installing Apache Maven and Java 8 on an Amaz -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