> missingBasePlatforms;
/**
*
@@ -501,6 +505,7 @@ void initResolve() {
missingRequirements = new ArrayList<>();
resolverRepository = null;
featureConflicts = new HashMap<>();
+ missingBasePlatforms = new HashMap<>();
resolvedPlatforms = new HashSet<>();
missingPlatforms = new HashSet<>();
includesVersionless = false;
@@ -572,6 +577,7 @@ void resolveFeaturesAsSet() {
includesVersionless = true;
resolvedPlatforms = result.getResolvedPlatforms();
missingPlatforms = result.getMissingPlatforms();
+ missingBasePlatforms = result.getNoPlatformVersionless();
}
for (String name : result.getResolvedFeatures()) {
@@ -999,25 +1005,6 @@ private void reportErrors() throws RepositoryResolutionException {
return;
}
- List missingBasePlatforms = new ArrayList();
-
- // Versionless features can't be resolved if a corresponding platform is not derived, making the choice ambiguous, and the feature won't be included in the resolved list. - will gather the associated platform unable to target.
- if (includesVersionless) {
- for (String name : missingTopLevelRequirements) {
- ProvisioningFeatureDefinition feature = resolverRepository.getFeature(name);
- if (feature != null && feature.isVersionless()) {
- List featureChildren = resolverRepository.findAllPossibleVersions(feature);
- if (!featureChildren.isEmpty()) {
- ProvisioningFeatureDefinition firstChild = featureChildren.get(0);
- String plat = firstChild.getPlatformName();
- if (plat != null) {//This will add just the platform name without version
- missingBasePlatforms.add(resolverRepository.getFeatureBaseName(plat));
- }
- }
- }
- }
- }
-
Set missingProductInformation = new HashSet<>();
for (ApplicableToProduct esa : resourcesWrongProduct) {