700701702703704705706707708709710
MavenProject p = null; try { maven.setAlignWithUserInstallation(true); maven.start(); p = maven.readProjectWithDependencies(pom); maven.stop(); } catch (Exception e) { e.printStackTrace(); }