- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 12 for getEffectiveModel (0.64 seconds)
-
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuildingResult.java
rawModels = new HashMap<>(); activePomProfiles = new HashMap<>(); activeExternalProfiles = new ArrayList<>(); problems = new ArrayList<>(); } @Override public Model getEffectiveModel() { return effectiveModel; } public DefaultModelBuildingResult setEffectiveModel(Model model) { this.effectiveModel = model; return this; } @Override
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 4.2K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderResult.java
/** * Gets the assembled model with inheritance, interpolation and profile injection. * * @return The assembled model, never {@code null}. */ @Nonnull Model getEffectiveModel(); /** * Gets the profiles that were active during model building. * * @return The active profiles of the model or an empty list if the model has no active profiles. */ @NonnullCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 17:20:31 GMT 2025 - 4.2K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingResult.java
*/ List<String> getModelIds(); /** * Gets the assembled model. * * @return The assembled model, never {@code null}. */ Model getEffectiveModel(); /** * Gets the raw model as it was read from the input model source. Apart from basic validation, the raw model has notCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 4.2K bytes - Click Count (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderFactoryTest.java
ModelBuildingResult result = builder.build(request); assertNotNull(result); assertNotNull(result.getEffectiveModel()); assertEquals("activated", result.getEffectiveModel().getProperties().get("profile.file")); Xpp3Dom conf = (Xpp3Dom) result.getEffectiveModel().getBuild().getPlugins().get(0).getConfiguration(); assertNotNull(conf);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jan 10 07:09:12 GMT 2025 - 3.7K bytes - Click Count (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/building/ComplexActivationTest.java
ModelBuildingResult result = builder.build(request); assertNotNull(result); assertNotNull(result.getEffectiveModel()); assertEquals("activated-1", result.getEffectiveModel().getProperties().get("profile.file")); assertNull(result.getEffectiveModel().getProperties().get("profile.miss")); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jan 10 07:09:12 GMT 2025 - 2.1K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingException.java
*/ public Model getModel() { if (result == null) { return null; } if (result.getEffectiveModel() != null) { return result.getEffectiveModel(); } return result.getRawModel(); } /**Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 5.4K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderException.java
*/ public String getModelId() { if (result == null) { return ""; } else if (result.getEffectiveModel() != null) { return result.getEffectiveModel().getId(); } else if (result.getRawModel() != null) { return result.getRawModel().getId(); } else if (result.getFileModel() != null) {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Sep 25 21:57:56 GMT 2025 - 2.9K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java
throws ModelBuilderException { ModelBuilderResult result = buildModel(session, src); Model model = result.getEffectiveModel(); return transformBom(model, project); } protected Model buildNonPom(RepositorySystemSession session, MavenProject project, ModelSource src) throws ModelBuilderException {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Mar 04 19:49:40 GMT 2026 - 22.3K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategy.java
.recursive(false) // We only want this POM, not its modules .build(); ModelBuilderResult result = modelBuilder.newSession().build(request); Model effectiveModel = result.getEffectiveModel(); // Analyze plugins from effective model return analyzePluginsFromEffectiveModel(context, effectiveModel, pluginUpgrades); } /**
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 37K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProblemCollector.java
ModelBuildingResult result = this.result; if (result.getModelIds().isEmpty()) { DefaultModelBuildingResult tmp = new DefaultModelBuildingResult(); tmp.setEffectiveModel(result.getEffectiveModel()); tmp.setProblems(getProblems()); tmp.setActiveExternalProfiles(result.getActiveExternalProfiles()); String id = getRootModelId(); tmp.addModelId(id);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 5.5K bytes - Click Count (0)