in dist script run mvn build and check exit status