Skip to content

Commit

Permalink
Fix mvn-spring-boot-run
Browse files Browse the repository at this point in the history
  • Loading branch information
dparo committed Aug 23, 2024
1 parent 6c51f20 commit 19c3ca8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/xdg/files/bin/mvn-spring-boot-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ done


mkdir -p logs
out_log_file=logs/"$(date --iso-8601=seconds).log"

goals+=("spring-boot:run")
set -x
mvn -DcheckStyle.skip -DskipTests -Dmaven.test.skip \
"${goals[@]}" \
-Dspring-boot.run.arguments='--debug -Dspring.profiles.active=local' \
-Dspring-boot.run.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=$suspend,address=$port" \
"${OTHER_ARGS[@]}" | tee logs/"$(date --iso-8601=seconds).log"
"${OTHER_ARGS[@]}" | tee >(sed -e $'s/\x1b\[[0-9;]*[mGKHF]//g' > "$out_log_file")

0 comments on commit 19c3ca8

Please sign in to comment.