How can I get the scan url from a maven build?

Currently, the output is something like

[INFO] 334 goals, 324 executed, 10 from cache, saving at least 21s
[INFO] Publishing build scan...

This is not very computer friendly because it makes it very hard to parse. Is there any way to read this value other than parsing the build logs?

Hi @yeikel

You can programmatically access the published build scan of a Maven build via