cstamas commented on issue #13084:
URL: https://github.com/apache/maven/issues/13084#issuecomment-5617224757

   Removal of property activation kills it. By doing locally this:
   
   ```diff
   diff --git 
a/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java
 
b/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java
   index 642caef728..f0fc9d246f 100644
   --- 
a/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java
   +++ 
b/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java
   @@ -525,7 +525,7 @@ private static List<Profile> 
withoutFileAndPropertyActivation(List<Profile> prof
            List<Profile> eligible = new ArrayList<>(profiles.size());
            for (Profile profile : profiles) {
                Activation activation = profile.getActivation();
   -            if (activation == null || (activation.getFile() == null && 
activation.getProperty() == null)) {
   +            if (activation == null || activation.getFile() == null) {
                    eligible.add(profile);
                }
            }
   ```
   
   It makes 3.10.x work same as 3.9.16:
   
   ```
   [cstamas@angeleyes simple-project]$ mvn -V compile
   Apache Maven 3.10.0-SNAPSHOT (fce34976de81bb1be7a5880a937384e556ca477f)
   Maven home: /home/cstamas/.sdkman/candidates/maven/latest-3
   Java version: 21.0.12.1, vendor: Eclipse Adoptium, runtime: 
/home/cstamas/.sdkman/candidates/java/21.0.12+1.1-tem
   Default locale: en_US, platform encoding: UTF-8, time zone: Europe/Copenhagen
   OS name: "linux", version: "7.2.4-200.fc44.x86_64", arch: "amd64", family: 
"unix"
   [INFO] Scanning for projects...
   [INFO]
   [INFO] --------------------------< unknown:unknown 
>---------------------------
   [INFO] Building unknown 1.0-SNAPSHOT
   [INFO]   from pom.xml
   [INFO] --------------------------------[ jar 
]---------------------------------
   [INFO] Loaded 23729 auto-discovered prefixes for remote repository central 
(prefixes-central.txt)
   [INFO]
   [INFO] --- resources:3.5.0:resources (default-resources) @ unknown ---
   [INFO] skip non existing resourceDirectory 
/home/cstamas/tmp/simple-project/src/main/resources
   [INFO]
   [INFO] --- compiler:3.15.0:compile (default-compile) @ unknown ---
   [INFO] Loaded 74 auto-discovered prefixes for remote repository 
apache.snapshots (prefixes-apache.snapshots.txt)
   [WARNING] Using credentials of server 'sonatype-nexus-snapshots' for 
repository https://oss.sonatype.org/content/repositories/snapshots, although no 
repository or mirror with this id is declared in settings or on the command 
line. Set maven.repository.credentialScope=strict to refuse such credential use.
   [INFO] No sources to compile
   [INFO] 
------------------------------------------------------------------------
   [INFO] BUILD SUCCESS
   [INFO] 
------------------------------------------------------------------------
   [INFO] Total time:  0.597 s
   [INFO] Finished at: 2026-09-10T12:31:52+02:00
   [INFO] 
------------------------------------------------------------------------
   [cstamas@angeleyes simple-project]$
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to