[maven] fix maven wrapper usage condition