дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-06 01:57:13 +02:00
Profiles Maven turns on by a <property>, a file that exists or is missing, -P in .mvn/maven.config or <activeProfiles> in settings.xml were left out of the IDE's Maven model: their modules were missing from the Maven tool window, Build Module on them failed with "no linked Maven project found for module", and a root mvn test never brought their test reports to the Run window. The previous <os> matcher also compared Rust's OS names (macos, x86_64) instead of Java's, and ignored an unmet <jdk> next to a matching <os>. Profiles are now chosen by one evaluator (maven/activation.rs) that follows Maven 3.9 for the model, the reactor scans and POM navigation: every condition of an <activation> must hold, <os> is compared with what Java reports (Mac OS X, aarch64, amd64 on Linux), a -P entry that turns a profile off wins whatever the order, activeByDefault profiles step aside for any other profile of their POM that is on, and a parent's file condition is checked in the folder of the module being built. Such profiles show as on by default and untick with -P !id. The reactor scan for test reports also gets the JDK for <jdk> profiles. Refs #8171 Co-authored-by: ntbang0901 <[email protected]>