Examples of MavenXpp3ReaderEx


Examples of org.apache.maven.model.io.xpp3.MavenXpp3ReaderEx

    {
        try
        {
            if ( source != null )
            {
                return new MavenXpp3ReaderEx().read( reader, strict, source );
            }
            else
            {
                return new MavenXpp3Reader().read( reader, strict );
            }
View Full Code Here

Examples of org.apache.maven.model.io.xpp3.MavenXpp3ReaderEx

        return mavenProject;
    }

    private static Model getMavenModelFromXML(String pomXML) throws IOException, XmlPullParserException {
        ByteArrayInputStream arrayInputStream = new ByteArrayInputStream(pomXML.getBytes());
        return new MavenXpp3ReaderEx().read(arrayInputStream, true, new InputSource());
    }
View Full Code Here

Examples of org.apache.maven.model.io.xpp3.MavenXpp3ReaderEx

    }

    private static Model getMavenModelFromPom(String filename) throws IOException, XmlPullParserException {
        InputSource inputSource = new InputSource();
        inputSource.setLocation(filename);
        final Model model = new MavenXpp3ReaderEx().read(new FileInputStream(filename), true, inputSource);
        model.setPomFile(new File(filename));
        return model;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.