Ubuntu/Java 11: java.awt.HeadlessException

I’m doing a cross-platform set of builds and found that when using Java 11 I am getting a java.awt.HeadlessException only on the Ubuntu environment. This is coming up when running unit tests from maven. Workflow file is below:

https://github.com/kunstmusik/blue/blob/feature/maven/.github/workflows/blue_ci_build.yml

and I’m using:

- uses: actions/setup-java@v1
        with:
          java-version: '11'

One all three platforms. Is there a way to get Ubuntu to install the non-headless JDK?