import java.io.*; import org.codehaus.plexus.util.FileUtils; try { File file = new File( basedir, "pom.xml" ); String buf = FileUtils.fileRead( file, "UTF-8" ); if ( buf.indexOf( "1.1.2" ) < 0 ) { System.err.println( "Version of dummy-api not bumped to 1.1.2" ); return false; } } catch( Throwable t ) { t.printStackTrace(); return false; } return true;