protected ModelReader newModelReader() { return new DefaultModelReader(); }
public static ETLTestVM getEtlTestVM() throws IOException { File basedir = new File("."); Model model = new DefaultModelReader().read(new File(basedir, "pom.xml"), null); MavenProject mavenProject = new MavenProject(model); final Configuration con = ETLUnitMojo.loadConfiguration(basedir, mavenProject.getName(), mavenProject.getVersion(), EtlunitSpringShell.class.getClassLoader()); ServiceLocatorFeatureLocator loc = new ServiceLocatorFeatureLocator(); ETLUnitMojo.getTempDirectoryRoot(basedir); return new ETLTestVM(loc, con); } }
@Override public Model read( File input, Map<String, ?> options ) throws IOException { Objects.requireNonNull( input, "input cannot be null" ); Model model = read( new FileInputStream( input ), options ); model.setPomFile( input ); return model; }
public static ETLTestVM getEtlTestVM() throws IOException { File basedir = new File("."); Model model = new DefaultModelReader().read(new File(basedir, "pom.xml"), null); MavenProject mavenProject = new MavenProject(model); final Configuration con = ETLUnitMojo.loadConfiguration(basedir, mavenProject.getName(), mavenProject.getVersion(), CliMain.class.getClassLoader()); ServiceLocatorFeatureLocator loc = new ServiceLocatorFeatureLocator(); ETLUnitMojo.getTempDirectoryRoot(basedir); return new ETLTestVM(loc, con); }
@Override public Model read( File input, Map<String, ?> options ) throws IOException { Objects.requireNonNull( input, "input cannot be null" ); Model model = read( new FileInputStream( input ), options ); model.setPomFile( input ); return model; }
protected ModelReader newModelReader() { return new DefaultModelReader(); }
private static Model readModel() { DefaultModelProcessor modelProcessor = new DefaultModelProcessor(); modelProcessor.setModelLocator(new DefaultModelLocator()); modelProcessor.setModelReader(new DefaultModelReader()); try { return modelProcessor.read(SpringBootDependenciesDependencyManagement.class .getResourceAsStream("effective-pom.xml"), null); } catch (IOException ex) { throw new IllegalStateException("Failed to build model from effective pom", ex); } }