repared pom.xml of factory pattern