248 lines
10 KiB
XML
248 lines
10 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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>
|
|
<artifactId>json-2</artifactId>
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
<parent>
|
|
<groupId>com.baeldung</groupId>
|
|
<artifactId>json-modules</artifactId>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.json</groupId>
|
|
<artifactId>json</artifactId>
|
|
<version>${json.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.alibaba</groupId>
|
|
<artifactId>fastjson</artifactId>
|
|
<version>${fastjson.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jsonschema2pojo</groupId>
|
|
<artifactId>jsonschema2pojo-core</artifactId>
|
|
<version>${jsonschema2pojo-core.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.jsoniter</groupId>
|
|
<artifactId>jsoniter</artifactId>
|
|
<version>${jsoniter.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.squareup.moshi</groupId>
|
|
<artifactId>moshi</artifactId>
|
|
<version>${moshi.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.squareup.moshi</groupId>
|
|
<artifactId>moshi-adapters</artifactId>
|
|
<version>${moshi.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-lang3</artifactId>
|
|
<version>${commons-lang3.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-annotations</artifactId>
|
|
<version>${jackson.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-databind</artifactId>
|
|
<version>${jackson.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.io-informatics.oss</groupId>
|
|
<artifactId>jackson-jsonld</artifactId>
|
|
<version>${jackson-jsonld.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>jackson-databind</artifactId>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>jackson-annotations</artifactId>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>jackson-core</artifactId>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>jsonld-java</artifactId>
|
|
<groupId>com.github.jsonld-java</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>de.escalon.hypermedia</groupId>
|
|
<artifactId>hydra-jsonld</artifactId>
|
|
<version>${hydra-jsonld.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>jackson-databind</artifactId>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.jsonld-java</groupId>
|
|
<artifactId>jsonld-java</artifactId>
|
|
<version>${jsonld-java.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>jackson-core</artifactId>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>jackson-databind</artifactId>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-io</groupId>
|
|
<artifactId>commons-io</artifactId>
|
|
<version>2.11.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter</artifactId>
|
|
<version>RELEASE</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.annotation</groupId>
|
|
<artifactId>javax.annotation-api</artifactId>
|
|
<version>1.3.2</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.victools</groupId>
|
|
<artifactId>jsonschema-generator</artifactId>
|
|
<version>${jsonschema-generator.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.victools</groupId>
|
|
<artifactId>jsonschema-module-jackson</artifactId>
|
|
<version>${jsonschema-generator.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>jakarta.validation</groupId>
|
|
<artifactId>jakarta.validation-api</artifactId>
|
|
<version>${jakarta.validation.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.victools</groupId>
|
|
<artifactId>jsonschema-module-jakarta-validation</artifactId>
|
|
<version>${jsonschema-generator.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<!--This plugin's configuration is used to store Eclipse m2e settings only. -->
|
|
<!-- It has no influence on the Maven build itself. -->
|
|
<plugin>
|
|
<groupId>org.eclipse.m2e</groupId>
|
|
<artifactId>lifecycle-mapping</artifactId>
|
|
<version>1.0.0</version>
|
|
<configuration>
|
|
<lifecycleMappingMetadata>
|
|
<pluginExecutions>
|
|
<pluginExecution>
|
|
<pluginExecutionFilter>
|
|
<groupId>
|
|
org.apache.maven.plugins
|
|
</groupId>
|
|
<artifactId>
|
|
maven-pmd-plugin
|
|
</artifactId>
|
|
<versionRange>
|
|
[3.13.0,)
|
|
</versionRange>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
</pluginExecutionFilter>
|
|
<action>
|
|
<ignore></ignore>
|
|
</action>
|
|
</pluginExecution>
|
|
</pluginExecutions>
|
|
</lifecycleMappingMetadata>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.github.victools</groupId>
|
|
<artifactId>jsonschema-maven-plugin</artifactId>
|
|
<version>${jsonschema-generator.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<packageNames>
|
|
<packageName>com.baeldung.jsonschemageneration.plugin</packageName>
|
|
</packageNames>
|
|
<classNames>
|
|
<className>com.baeldung.jsonschemageneration.plugin.Person</className>
|
|
</classNames>
|
|
<schemaVersion>DRAFT_2020_12</schemaVersion>
|
|
<schemaFilePath>src/main/resources/schemas</schemaFilePath>
|
|
<schemaFileName>{1}/{0}.json</schemaFileName>
|
|
<failIfNoClassesMatch>true</failIfNoClassesMatch>
|
|
<options>
|
|
<preset>PLAIN_JSON</preset>
|
|
<enabled>
|
|
<option>DEFINITIONS_FOR_ALL_OBJECTS</option>
|
|
<option>FORBIDDEN_ADDITIONAL_PROPERTIES_BY_DEFAULT</option>
|
|
</enabled>
|
|
<disabled>SCHEMA_VERSION_INDICATOR</disabled>
|
|
</options>
|
|
<modules>
|
|
<module>
|
|
<name>Jackson</name>
|
|
<options>
|
|
<option>RESPECT_JSONPROPERTY_REQUIRED</option>
|
|
</options>
|
|
</module>
|
|
<module>
|
|
<name>JakartaValidation</name>
|
|
<options>
|
|
<option>NOT_NULLABLE_FIELD_IS_REQUIRED</option>
|
|
<option>INCLUDE_PATTERN_EXPRESSIONS</option>
|
|
</options>
|
|
</module>
|
|
</modules>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<properties>
|
|
<jsoniter.version>0.9.23</jsoniter.version>
|
|
<moshi.version>1.9.2</moshi.version>
|
|
<fastjson.version>1.2.21</fastjson.version>
|
|
<jsonschema2pojo-core.version>1.1.1</jsonschema2pojo-core.version>
|
|
<jackson-jsonld.version>0.1.1</jackson-jsonld.version>
|
|
<hydra-jsonld.version>0.4.2</hydra-jsonld.version>
|
|
<jsonld-java.version>0.13.0</jsonld-java.version>
|
|
<jsonschema-generator.version>4.31.1</jsonschema-generator.version>
|
|
<jakarta.validation.version>3.0.2</jakarta.validation.version>
|
|
</properties>
|
|
|
|
</project> |