Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for Parse (0.19 sec)

  1. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ModelParser.java

         */
        @Nonnull
        Model parse(@Nonnull Source source, @Nullable Map<String, ?> options) throws ModelParserException;
    
        /**
         * Locate and parse the model in the specified directory.
         * This is equivalent to {@code locate(dir).map(s -> parse(s, options))}.
         *
         * @param dir the directory to locate the pom for, never {@code null}
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/io/MetadataParseException.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.artifact.repository.metadata.io;
    
    import java.io.IOException;
    
    /**
     * Signals a failure to parse the metadata due to invalid syntax (e.g. non well formed XML or unknown elements).
     *
     */
    public class MetadataParseException extends IOException {
    
        /**
         * The one-based index of the line containing the error.
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 3K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/services/Source.java

    import static org.apache.maven.api.services.BaseRequest.nonNull;
    
    /**
     * Provides access to the contents of a source independently of the
     * backing store (e.g. file system, database, memory).
     * <p>
     * This is mainly used to parse files into objects such as
     * {@link org.apache.maven.api.Project},
     * {@link org.apache.maven.api.model.Model},
     * {@link org.apache.maven.api.settings.Settings}, or
     * {@link org.apache.maven.api.toolchain.PersistedToolchains}.
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/XmlFactory.java

            write(XmlWriterRequest.<T>builder().content(content).writer(writer).build());
        }
    
        void write(@Nonnull XmlWriterRequest<T> request) throws XmlWriterException;
    
        /**
         * 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 Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Nov 17 15:52:15 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  5. maven-core/src/test/resources/projects/badPom.xml

      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
      <modelVersion>4.0.0</modelVersion>
    
      some garbage maven project builder can't parse
    
    XML
    - Registered: Sun Mar 31 03:35:09 GMT 2024
    - Last Modified: Thu Nov 07 15:16:39 GMT 2019
    - 346 bytes
    - Viewed (0)
  6. maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

                if (rawVal != null) {
                    try {
                        return new Date(Long.parseLong(rawVal));
                    } catch (NumberFormatException e) {
                        getLogger().debug("Cannot parse lastUpdated date: '" + rawVal + "'. Ignoring.", e);
                    }
                }
            }
            return null;
        }
    
        private String getError(File touchFile, String key) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/VersionParser.java

    import org.apache.maven.api.annotations.Nonnull;
    
    /**
     * Service interface to parse {@link Version} and {@link VersionRange}.
     *
     * @since 4.0.0
     */
    @Experimental
    public interface VersionParser extends Service {
    
        /**
         * Parses the specified version string, for example "1.0".
         *
         * @param version the version string to parse, must not be {@code null}
         * @return the parsed version, never {@code null}
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Dec 19 19:08:55 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/MavenMetadata.java

                return new MetadataStaxReader().read(input, false);
            } catch (IOException | XMLStreamException e) {
                throw new RepositoryException("Could not parse metadata " + metadataPath + ": " + e.getMessage(), e);
            }
        }
    
        private void write(Path metadataPath, Metadata metadata) throws RepositoryException {
            try {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/api/services/model/ModelVersionParser.java

     *
     * @since 4.0.0
     */
    public interface ModelVersionParser {
    
        /**
         * Parses the specified version string, for example "1.0".
         *
         * @param version the version string to parse, must not be {@code null}
         * @return the parsed version, never {@code null}
         * @throws VersionParserException if the string violates the syntax rules of this scheme
         */
        @Nonnull
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  10. 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 Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 9.4K bytes
    - Viewed (0)
Back to top