When we detect invalid umbrella dependencies do not let them impact the search for the highest version used.
@@ -460,9 +460,6 @@ public class GenerateFeaturesMojo extends ServerFeatureSupport {
log.debug("Java and/or Jakarta EE umbrella dependency found in project: " + mavenProject.getName());
if (ver != null) {
eeVersionsDetected.add(ver);
- } else {
- // EE version out of range, add max possible version
- eeVersionsDetected.add(BINARY_SCANNER_UMBRELLA_DEP_MAXV);
}
} catch (NoUmbrellaDependencyException e) {
// umbrella dependency does not exist, do nothing
@@ -478,11 +475,6 @@ public class GenerateFeaturesMojo extends ServerFeatureSupport {
eeVersion = ver;
}
}
- if (eeVersion.equals(BINARY_SCANNER_UMBRELLA_DEP_MAXV)) {
- // max version indicates that an umbrella dependency was found, but version was
- // out of range. Return null
- eeVersion = null;
- }
}
if (eeVersionsDetected.size() > 1) {
log.debug(
@@ -537,9 +529,6 @@ public class GenerateFeaturesMojo extends ServerFeatureSupport {
log.debug("MicroProfile umbrella dependency found in project: " + mavenProject.getName());
if (ver != null) {
mpVersionsDetected.add(ver);
- } else {
- // MP version out of range, add max possible verison
- mpVersionsDetected.add(BINARY_SCANNER_UMBRELLA_DEP_MAXV);
}
} catch (NoUmbrellaDependencyException e) {
// umbrella dependency does not exist, do nothing
@@ -554,11 +543,6 @@ public class GenerateFeaturesMojo extends ServerFeatureSupport {
mpVersion = ver;
}
}
- if (mpVersion.equals(BINARY_SCANNER_UMBRELLA_DEP_MAXV)) {
- // max version indicates that an umbrella dependency was found, but version was
- // out of range. Return null
- mpVersion = null;
- }
}
if (mpVersionsDetected.size() > 1) {
log.debug(
