Skip to content

Instantly share code, notes, and snippets.

@7yl4r
Created July 8, 2024 16:48
Show Gist options
  • Save 7yl4r/4987cc3b55b32d09a43de8056b1aa341 to your computer and use it in GitHub Desktop.
Save 7yl4r/4987cc3b55b32d09a43de8056b1aa341 to your computer and use it in GitHub Desktop.
# === install java
sudo apt install openjdk-21-jdk -y
# check with `java --version`
# === install mvn
wget https://dlcdn.apache.org/maven/maven-3/3.9.8/binaries/apache-maven-3.9.8-bin.tar.gz
tar -xvzf apache-maven-3.9.8-bin.tar.gz
sudo mv apache-maven-3.9.8 /opt/apache-maven
sudo sh -c 'echo "export M2_HOME=/opt/apache-maven" > /etc/profile.d/maven.sh'
sudo sh -c 'echo "export MAVEN_HOME=/opt/apache-maven" >> /etc/profile.d/maven.sh'
sudo sh -c 'echo "export PATH=\${M2_HOME}/bin:\${PATH}" >> /etc/profile.d/maven.sh'
sudo chmod +x /etc/profile.d/maven.sh
# check with `mvn --version`
# === get erddap source
git clone
cd erddap
# === set up & build erddap project
mvn validate
mvn compile
mvn war:exploded
MAVEN_OPTS="-Xms4096m -Xmx4096m" mvn jetty:run -DerddapContentDirectory=development/jetty/config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment