Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for getRawModel (0.07 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuildingResult.java

            modelIds.add(modelId);
    
            return this;
        }
    
        @Override
        public Model getRawModel() {
            return rawModels.get(modelIds.get(0));
        }
    
        @Override
        public Model getRawModel(String modelId) {
            return rawModels.get(modelId);
        }
    
        public DefaultModelBuildingResult setRawModel(String modelId, Model rawModel) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/TransformerContext.java

         *
         * @param from    the requiring model
         * @param pomFile the path to the pomFile
         * @return the model, otherwise {@code null}
         */
        Model getRawModel(Path from, Path pomFile);
    
        /**
         * Get the model from the reactor based on the groupId and artifactId when resolving reactor dependencies.
         *
         * @param from    the requiring model
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultTransformerContext.java

        @Override
        public String getUserProperty(String key) {
            return userProperties.get(key);
        }
    
        @Override
        public Model getRawModel(Path from, Path p) {
            return Holder.deref(modelByPath.get(p));
        }
    
        @Override
        public Model getRawModel(Path from, String groupId, String artifactId) {
            return Holder.deref(modelByGA.get(new GAKey(groupId, artifactId)));
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderException.java

            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) {
                return result.getFileModel().getId();
            } else {
                return "";
            }
        }
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Oct 02 21:26:05 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/BuildModelSourceTransformerTest.java

                    .groupId("GROUPID")
                    .artifactId("ARTIFACTID")
                    .version("1.0-SNAPSHOT")
                    .build());
            Mockito.when(context.getRawModel(pomFile, root.resolve("pom.xml"))).thenReturn(parent);
            Mockito.when(context.locate(root)).thenReturn(root.resolve("pom.xml"));
            Model initial = new Model(org.apache.maven.api.model.Model.newBuilder()
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingResult.java

         * undergone any updates by the model builder, e.g. reflects neither inheritance nor interpolation.
         *
         * @return The raw model, never {@code null}.
         */
        Model getRawModel();
    
        /**
         * Gets the specified raw model as it was read from a model source. Apart from basic validation, a raw model has not
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/BuildModelSourceTransformer.java

            for (Dependency dep : model.getDependencies()) {
                if (dep.getVersion() == null) {
                    Model depModel =
                            context.getRawModel(model.getDelegate().getPomFile(), dep.getGroupId(), dep.getArtifactId());
                    if (depModel != null) {
                        String v = depModel.getVersion();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/FilterModelBuildingRequest.java

        @Override
        public ModelBuildingRequest setFileModel(Model fileModel) {
            request.setFileModel(fileModel);
            return this;
        }
    
        @Override
        public Model getRawModel() {
            return request.getRawModel();
        }
    
        @Override
        public ModelBuildingRequest setRawModel(Model rawModel) {
            request.setRawModel(rawModel);
            return this;
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultTransformerContextBuilder.java

                    return context.userProperties.computeIfAbsent(
                            key, k -> request.getUserProperties().getProperty(key));
                }
    
                @Override
                public Model getRawModel(Path from, String gId, String aId) {
                    Model model = findRawModel(from, gId, aId);
                    if (model != null) {
                        context.modelByGA.put(new GAKey(gId, aId), new Holder(model));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderResult.java

        /**
         * Gets the file model + build pom transformation, without inheritance nor interpolation.
         *
         * @return The raw model, never {@code null}.
         */
        @Nonnull
        Model getRawModel();
    
        /**
         * Gets the effective model of the parent POM.
         *
         * @return the effective model of the parent POM, never {@code null}
         */
        @Nonnull
        Model getParentModel();
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Sep 28 09:03:24 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top