Not throwing exception when pom is missing'
This commit is contained in:
@@ -38,6 +38,9 @@ class PomReader {
|
||||
if (file.isDirectory()) {
|
||||
pom = new File(file,"pom.xml");
|
||||
}
|
||||
if (!pom.exists()) {
|
||||
return null;
|
||||
}
|
||||
String fileText = "";
|
||||
try(Reader reader = new FileReader(pom)) {
|
||||
if (file.isFile()) {
|
||||
|
||||
@@ -68,6 +68,10 @@ class PomUpdater {
|
||||
return false;
|
||||
}
|
||||
Model model = this.pomReader.readPom(rootPom);
|
||||
if (model == null) {
|
||||
log.info("Failed to read the model");
|
||||
return false;
|
||||
}
|
||||
String artifactId = artifactId(model);
|
||||
if (!versions.shouldBeUpdated(artifactId)) {
|
||||
log.info("Skipping project [{}] since it's not on the list of projects to update", model.getArtifactId());
|
||||
|
||||
Reference in New Issue
Block a user