Fixed build errors by adding build variables in pom.xml.