[maven] Do not force activate os-specific maven profiles

#IJPL-171448 Fixed
#IDEA-362994 Fixed

GitOrigin-RevId: fd879a9255358203b7c485c90fb7a576293b1eb3
This commit is contained in:
Louis Vignier
2024-11-13 21:37:20 +01:00
committed by intellij-monorepo-bot
parent b230950d73
commit f561dd578e

View File

@@ -778,7 +778,7 @@ public final class ArtifactRepositoryManager {
}
// Force certain activation kinds to be always active in order to include such dependencies in dependency resolution process
// Currently OS and JDK activations are always enabled for the purpose of transitive artifact discovery
// Currently JDK activations are always enabled for the purpose of transitive artifact discovery
private static class ProfileActivatorProxy implements ProfileActivator {
private final ProfileActivator[] myDelegates;
@@ -789,7 +789,7 @@ public final class ArtifactRepositoryManager {
private static boolean isForceActivation(Profile profile) {
Activation activation = profile.getActivation();
return activation != null && (activation.getJdk() != null || activation.getOs() != null);
return activation != null && activation.getJdk() != null;
}
@Override