Working Api with maven project