#!/usr/bin/env bash # Starts the API with NO application.properties, to capture the warning Spring Boot prints when # spring.jpa.open-in-view is left at its default. Our real config sets it to false explicitly. set -euo pipefail cd "$(dirname "$0")/.." mvn -B -q -DskipTests package mkdir -p /tmp/empty-config timeout 25 java -jar target/library-management-1.0.0.jar --spring.config.location=file:/tmp/empty-config/ --server.port=0 2>&1 \ | grep -E 'open-in-view|Started LibraryApplication' | sed -E 's/^[0-9T:.+-]+ +//' || true