return jar.getEntry(POM_FILE) != null;
}
private Object createPomReader() {
try {
return new PomReader(jar.getInputStream(jar.getEntry(POM_FILE)));
} catch (NoClassDefFoundError e) {
throw new RuntimeException("Jar " + jar.getName()
+ " contains a pom.xml file, while the necessary dependency management classes are not found in the jar");
} catch (IOException e) {
throw new RuntimeException("Failed reading pom", e);