Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getActivePomProfilesByModel (0.09 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderResult.java

         *
         * @return A map of model IDs to their active profiles, never {@code null}.
         * @since 4.0.0
         */
        @Nonnull
        Map<String, List<Profile>> getActivePomProfilesByModel();
    
        /**
         * Gets the external profiles that were active during model building. External profiles are those that were
         * contributed by {@link ModelBuilderRequest#getProfiles()}.
         *
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 17:20:31 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. impl/maven-core/src/test/java/org/apache/maven/project/DefaultProjectBuilderTest.java

            @Override
            public List<Profile> getActivePomProfiles(String modelId) {
                return List.of();
            }
    
            @Override
            public java.util.Map<String, List<Profile>> getActivePomProfilesByModel() {
                return java.util.Map.of();
            }
    
            @Override
            public List<Profile> getActiveExternalProfiles() {
                return List.of();
            }
    
            @Override
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 17:20:31 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                // Track profile sources correctly by using the per-model profile tracking
                Map<String, List<org.apache.maven.api.model.Profile>> profilesByModel =
                        result.getActivePomProfilesByModel();
    
                if (profilesByModel.isEmpty()) {
                    // Fallback to old behavior if map is empty
                    // This happens when no profiles are active or there's an issue with profile tracking
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 17:20:31 UTC 2025
    - 51.8K bytes
    - Viewed (0)
Back to top