Adapted to Maven.