Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for parser (0.22 sec)

  1. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultRootLocator.java

                XMLStreamReader parser = new WstxInputFactory().createXMLStreamReader(is);
                if (parser.nextTag() == XMLStreamReader.START_ELEMENT
                        && parser.getLocalName().equals("project")) {
                    for (int i = 0; i < parser.getAttributeCount(); i++) {
                        if ("root".equals(parser.getAttributeLocalName(i))) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/api/services/model/ModelVersionParser.java

         * @return the parsed version, never {@code null}
         * @throws VersionParserException if the string violates the syntax rules of this scheme
         */
        @Nonnull
        Version parseVersion(@Nonnull String version);
    
        /**
         * Parses the specified version range specification, for example "[1.0,2.0)".
         *
         * @param range the range specification to parse, must not be {@code null}
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultVersionParser.java

    import org.apache.maven.api.services.model.ModelVersionParser;
    
    import static org.apache.maven.internal.impl.Utils.nonNull;
    
    /**
     * A wrapper class around a resolver version that works as model version parser as well.
     */
    @Named
    @Singleton
    public class DefaultVersionParser implements VersionParser {
        private final ModelVersionParser modelVersionParser;
    
        @Inject
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelProcessor.java

                Path projectDirectory = pomFile.getParent();
                List<ModelParserException> exceptions = new ArrayList<>();
                for (ModelParser parser : modelParsers) {
                    try {
                        Optional<Model> model =
                                parser.locateAndParse(projectDirectory, Map.of(ModelParser.STRICT, request.isStrict()));
                        if (model.isPresent()) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  5. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ModelParser.java

         */
        @Nonnull
        Optional<Source> locate(@Nonnull Path dir);
    
        /**
         * Parse the model obtained previously by a previous call to {@link #locate(Path)}.
         *
         * @param source the source to parse, never {@code null}
         * @param options possible parsing options, may be {@code null}
         * @return the parsed {@link Model}, never {@code null}
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  6. api/maven-api-model/src/main/mdo/maven.mdo

                tools placing it in the repository. Valid values are: {@code none} (default),
                {@code converted} (repository manager converted this from an Maven 1 POM),
                {@code partner}
                (directly synced from a partner Maven 2 repository), {@code deployed} (was deployed from a Maven 2
                instance), {@code verified} (has been hand verified as correct and final).
              </description>
    XML
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Apr 23 13:29:46 GMT 2024
    - 115.1K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

        List<Version> resolveVersionRange(@Nonnull ArtifactCoordinate artifact);
    
        /**
         * Parses the specified version string, for example "1.0".
         * <p>
         * Shortcut for {@code getService(VersionParser.class).parseVersion(...)}.
         *
         * @param version the version string to parse
         * @return the version parsed from the given string
         * @throws org.apache.maven.api.services.VersionParserException if the parsing failed
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 30.2K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultModelXmlFactory.java

                throw new XmlWriterException("Unable to write model: " + getMessage(e), getLocation(e), e);
            }
        }
    
        /**
         * Simply parse the given xml string.
         *
         * @param xml the input xml string
         * @return the parsed object
         * @throws XmlReaderException if an error occurs during the parsing
         * @see #toXmlString(Object)
         */
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultModelVersionParser.java

                try {
                    this.delegate = versionScheme.parseVersion(delegateValue);
                } catch (InvalidVersionSpecificationException e) {
                    throw new VersionParserException("Unable to parse version: " + delegateValue, e);
                }
            }
    
            @Override
            public int compareTo(Version o) {
                if (o instanceof DefaultVersion) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/relocation/UserPropertiesArtifactRelocationSource.java

                            }
                            return new Relocation(global, s, t);
                        })
                        .collect(Collectors.toList());
                LOGGER.info("Parsed {} user relocations", relocationList.size());
                return new Relocations(relocationList);
            }
        }
    
        private static Artifact parseArtifact(String coord) {
            Artifact s;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 9.1K bytes
    - Viewed (0)
Back to top