add missing dependency in p2 generator.