public static void store ( MavenProject project ) throws IOException { final File output = new File ( project . getBasedir ( ) , Constants . DEPENDENCIES_FILE ) ; output . getParentFile ( ) . mkdirs ( ) ; ProjectDependencies dependencies = new ProjectDependencies ( project ) ; mapper . writer ( ) . withDefaultPrettyPrinter ( ) . writeValue ( output , dependencies ) ; }
Stores the dependencies from the given project into the dependencies . json file .