Code example for FileReader

0
        MavenXpp3Reader pomReader = new MavenXpp3Reader(); 
        Model model; 
 
        try 
        { 
            model = 
                pomReader.read( new FileReader( new File( getBasedir() 
                    + "/src/test/resources/unit/default-configuration/default-configuration-plugin-config.xml" ) ) ); 
            setModel( model ); 
        } 
        catch ( Exception e ) 
        { 
            throw new RuntimeException( e ); 
        } 
 
        setGroupId( model.getGroupId() ); 
        setArtifactId( model.getArtifactId() ); 
        setVersion( model.getVersion() ); 
        setName( model.getName() ); 
        setUrl( model.getUrl() ); 
        setPackaging( model.getPackaging() );