Solved. When the CodeBuild step was created, from the AWS Template for Maven, it defaults to a CodeBuild Buildspec.yml file, rather than the one in the codebase - rather annoyingly - and it doesn't tell you it's doing that.
When I moved the buildspc.yml file contents into the AWS Console Buildspec section within CodeBuild then things started to work again.