Configured maven deploy
Removed try with resources