🌐
Maven Repository
mvnrepository.com › artifact › com.networknt › json-schema-validator › 1.0.57
Maven Repository: com.networknt » json-schema-validator » 1.0.57
July 9, 2021 - Maven Plugins · Testing · Android Packages · Language Runtime · JVM Languages · Logging Frameworks · JSON Libraries · Java Specifications · Core Utilities · Mocking · Annotation Libraries · Web Assets · HTTP Clients · Logging Bridges · Dependency Injection · XML Processing · Concurrency Libraries · Web Frameworks · Android Platform · Code Generators · View All · Home » com.networknt » json-schema-validator » 1.0.57 ·
Published   Jul 09, 2021
Version   1.0.57
🌐
Maven Repository
mvnrepository.com › artifact › io.rest-assured › json-schema-validator
Maven Repository: io.rest-assured » json-schema-validator
January 16, 2026 - Current Group · Group · Rest-Assured · io.rest-assured · Description · Rest-Assured is a Java library for testing REST services · Links · Related Categories · JSON Libraries · JSON Schema Libraries
🌐
GitHub
github.com › networknt › json-schema-validator
GitHub - networknt/json-schema-validator: A fast Java JSON schema validator that supports draft V4, V6, V7, V2019-09 and V2020-12 · GitHub
The json-schema-validator package is published to Maven Central and is available in two major release lines, depending on your Java and Jackson versions:
Starred by 1K users
Forked by 338 users
Languages   Java 98.6% | Python 1.4%
🌐
Maven Repository
mvnrepository.com › artifact › com.github.fge › json-schema-validator
Maven Repository: com.github.fge » json-schema-validator
October 29, 2014 - Maven Plugins · Testing · Android Packages · Language Runtime · JVM Languages · Logging Frameworks · JSON Libraries · Java Specifications · Core Utilities · Mocking · Annotation Libraries · Web Assets · HTTP Clients · Logging Bridges · Dependency Injection · XML Processing · Concurrency Libraries · Web Frameworks · Android Platform · Code Generators · View All · Home » com.github.fge » json-schema-validator ·
🌐
Maven Repository
mvnrepository.com › artifact › com.networknt › json-schema-validator
Maven Repository: com.networknt » json-schema-validator
1 week ago - Maven Plugins · Testing · Android Packages · Language Runtime · JVM Languages · Logging Frameworks · JSON Libraries · Java Specifications · Core Utilities · Mocking · Annotation Libraries · Web Assets · HTTP Clients · Logging Bridges · Dependency Injection · XML Processing · Concurrency Libraries · Web Frameworks · Android Platform · Code Generators · View All · Home » com.networknt » json-schema-validator ·
🌐
Maven Repository
mvnrepository.com › artifact › com.github.java-json-tools › json-schema-validator
Maven Repository: com.github.java-json-tools » json-schema-validator
May 27, 2020 - Maven Plugins · Testing · Android Packages · Language Runtime · JVM Languages · Logging Frameworks · JSON Libraries · Java Specifications · Core Utilities · Mocking · Annotation Libraries · Web Assets · HTTP Clients · Logging Bridges · Dependency Injection · XML Processing · Concurrency Libraries · Web Frameworks · Android Platform · Code Generators · View All · Home » com.github.java-json-tools » json-schema-validator ·
🌐
Maven Repository
mvnrepository.com › artifact › io.rest-assured › json-schema-validator › 3.0.0
Maven Repository: io.rest-assured » json-schema-validator » 3.0.0
June 3, 2016 - JSON Schema Validator · LicenseApache 2.0 · CategoriesJSON LibrariesJSON Schema Libraries · Tagsformatjsonrestserializationschemavalidation · HomePage http://maven.apache.org 🔍 Inspect URL · Links · DateJun 03, 2016 · Filespom (1 KB)jar (12 KB)View All · RepositoriesCentralAlfrescoMulesoftSonatypePublic+1 more ·
Published   Jun 03, 2016
Version   3.0.0
🌐
Maven Repository
mvnrepository.com › artifact › com.jayway.restassured › json-schema-validator › 2.2.0
Maven Repository: com.jayway.restassured » json-schema-validator » 2.2.0
January 8, 2014 - JSON Schema Validator · Note: There is a new version for this artifact · Maven · Gradle · SBT · Mill · Ivy · Grape · Leiningen · Buildr · Scope: compile · test · provided · runtime · Scope: compile · test · provided · runtime · Format: Groovy Long ·
🌐
GitHub
github.com › java-json-tools › json-schema-validator
GitHub - java-json-tools/json-schema-validator: A JSON Schema validation implementation in pure Java, which aims for correctness and performance, in that order
This package is available on Maven central; the artifact is as follows: Gradle: dependencies { compile(group: "com.github.java-json-tools", name: "json-schema-validator", version: "2.2.14"); } Maven: <dependency> <groupId>com.github.java-json-tools</groupId> <artifactId>json-schema-validator</artifactId> <version>2.2.14</version> </dependency> OUTDATED: Let me know if you need this in the issues section.
Starred by 1.6K users
Forked by 394 users
Languages   Java 99.9% | Shell 0.1% | Java 99.9% | Shell 0.1%
Find elsewhere
🌐
Maven Central
repo.maven.apache.org › maven2 › io › openapiprocessor › json-schema-validator
Central Repository: io/openapiprocessor/json-schema-validator
io/openapiprocessor/json-schema-validator · / 2023.2/ 2023-05-29 21:11 - 2023.3/ 2023-09-10 16:43 - 2023.4/ 2023-09-17 08:13 - 2023.5/ 2023-10-22 13:17 - 2023.6/ 2023-11-19 15:02 - 2024.1/ 2024-01-21 17:50 - 2024.2/ 2024-03-24 16:25 - 2024.3/ 2024-05-09 15:51 - 2024.4/ 2024-09-29 13:44 - 2024.5/ ...
🌐
Maven Central
central.sonatype.com › artifact › com.networknt › json-schema-validator › 1.0.83
com.networknt:json-schema-validator:1.0.83 - Maven Central
lVersion>4.0.0</modelVersion> <groupId>com.networknt</groupId> <artifactId>json-schema-validator</artifactId> <version>1.0.83</version> <packaging>bundle</packaging> <name>JsonSchemaValidator</name> <description>A json schema validator that supports draft v4, v6, v7, v2019-09 and v2020-12</description> <url>https://github.com/networknt/json-schema-validator</url> <licenses> <license> <name>Apache License Version 2.0</name> <url>https://www.apache.org/licenses/LICENSE-2.0</url> <distribution>repo</distribution> </license> </licenses> <developers> <developer> <id>stevehu</id> <name>Steve Hu</nam
🌐
Maven Repository
mvnrepository.com › artifact › com.github.fge › json-schema-validator › 2.0.0
Maven Repository: com.github.fge » json-schema-validator » 2.0.0
February 25, 2013 - HomePage https://github.com/fge/json-schema-validator 🔍 Inspect URL · Links · DateFeb 25, 2013 · Filespom (6 KB)jar (260 KB)View All · RepositoriesCentralAlfrescoMulesoftSonatypeWSO2 Public+2 more · Ranking · #355826in MvnRepository · #92in JSON Libraries#11in JSON Schema Libraries · 💡 · Newer Version Available · 2.0.0→2.2.6 · (6 changes) Maven ·
Published   Feb 25, 2013
Version   2.0.0
🌐
Maven Repository
mvnrepository.com › artifact › com.github.fge › json-schema-validator › 2.2.6
Maven Repository: com.github.fge » json-schema-validator » 2.2.6
JSON Schema Validator · Maven · Gradle · SBT · Mill · Ivy · Grape · Leiningen · Buildr · Scope: compile · test · provided · runtime · Scope: compile · test · provided · runtime · Format: Groovy Long · Groovy Short · Kotlin · Scope: compile ·
🌐
Victools
victools.github.io › jsonschema-generator
Introduction – API Reference
To use it, just pass a module instance into SchemaGeneratorConfigBuilder.with(Module), optionally providing JacksonOption values in the module's constructor. For a description of the available JacksonOption values and their meaning (apart from their mentionings in above enumeration), please refer to the JacksonOption class or its JavaDoc. The victools:jsonschema-module-jakarta-validation provides a number of standard configurations for deriving JSON Schema attributes from jakarta.validation.constraints annotations.
🌐
JitPack
jitpack.io › p › daveclayton › json-schema-validator
java-json-tools / json-schema-validator Download
dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { mavenCentral() maven { url = uri("https://jitpack.io") } } } ... <repositories> <repository> <id>jitpack.io</id> <url>https://jitpack.io</url> </repository> </repositories> ... Step 2. Add the dependency ... <dependency> <groupId>com.github.daveclayton</groupId> <artifactId>json-schema-validator</artifactId> <version>2.2.14</version> </dependency>
🌐
Maven Central
central.sonatype.com › artifact › com.github.fge › json-schema-validator
json-schema-validator - com.github.fge - Maven Central
<dependency> <groupId>com.github.fge</groupId> <artifactId>json-schema-validator</artifactId> <version>2.2.6</version> </dependency> ... <?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <groupId>com.github.fge</groupId> <artifactId>json-schema-validator</artifactId> <version>2.2.6</version> <name>null</name> <description>null</description> <url>https://github.com/fge/
🌐
Maven Central
central.sonatype.com › artifact › com.github.java-json-tools › json-schema-validator › 2.2.7
json-schema-validator - Maven Central - Sonatype
<dependency> <groupId>com.github.java-json-tools</groupId> <artifactId>json-schema-validator</artifactId> <version>2.2.7</version> </dependency> ... <?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <groupId>com.github.java-json-tools</groupId> <artifactId>json-schema-validator</artifactId> <version>2.2.7</version> <name>json-schema-validator</name> <description>A Java
🌐
Stack Overflow
stackoverflow.com › questions › 44581207 › maven-dependency-issue-for-json-schema-validator
java - Maven Dependency Issue for json-schema-validator - Stack Overflow
But when I remove the json-schema-validator dependency, mail service works perfectly fine. Can someone please help me solve this issue? ... $ mvn dependency:tree [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building com.greg 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ example-jar --- [INFO] com.greg:example-jar:jar:1.0-SNAPSHOT [INFO] +- com.github.fge:json-schema-validator:jar:2.2.6:compile [INFO] |
Top answer
1 of 1
2

One possible solution would be to simply wrap your schemas into one or more jar files and then read them as you would read any resource file.

Here is some sample code to demonstrate:

Here is a screenshot of the project structure for the schema project:

The POM for this project is extremely simple as it's just a simple jar:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>my.group</groupId>
  <artifactId>schemas</artifactId>
  <version>0.0.1-SNAPSHOT</version>
</project>

The project that consumes the schemas project just needs to add the dependency on the schemas project:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>my.group</groupId>
    <artifactId>schema-consumer</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <dependencies>
        <dependency>
            <groupId>my.group</groupId>
            <artifactId>schemas</artifactId>
            <version>0.0.1-SNAPSHOT</version>
        </dependency>
    </dependencies>
</project>

The code to read the schemas is simple - as I said before it's just like reading any other resource file. Below is some sample code that reads the schema file and dumps the output to console:

package my.pkg;

import java.io.InputStream;
import java.util.Scanner;

public class ReadSchema {

    public static void main(String[] args) {
        InputStream inStream = ReadSchema.class.getClassLoader().getResourceAsStream("schema.json");
        Scanner scan = new Scanner(inStream);
        scan.useDelimiter("\\A");
        String json = scan.next();

        System.out.println(json);
        scan.close();
    }

}

Hope this helps!