finish code re-construction for maven and ansj