write java using maven