#!/usr/bin/env bash # Starts the stub upstream on a fixed port so you can poke it with curl: # ./scripts/run-stub.sh 18601 & then curl -i http://127.0.0.1:18601/posts/99 set -euo pipefail cd "$(dirname "$0")/.." mvn -B -q -DskipTests compile mvn -B -q dependency:build-classpath -Dmdep.outputFile=target/cp.txt exec java -cp "target/classes:$(cat target/cp.txt)" com.ankurm.hsc.stub.StubServer "${1:-18601}"