ngsi-ld-java-mapping
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>io.github.wistefan</groupId>
<artifactId>ngsi-ld-java-mapping</artifactId>
<version>1.6.13</version>
</dependency><?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>
<groupId>io.github.wistefan</groupId>
<artifactId>ngsi-ld-java-mapping</artifactId>
<version>1.6.13</version>
<packaging>jar</packaging>
<developers>
<developer>
<name>${project.author.name}</name>
<email>${project.author.email}</email>
</developer>
</developers>
<name>${project.groupId}:${project.artifactId}</name>
<description>${project.description}</description>
<url>${project.url}</url>
<licenses>
<license>
<name>${project.license.name}</name>
<url>${project.license.url}</url>
</license>
</licenses>
<scm>
<connection>scm:git:git://github.com/wistefan/ngsi-ld-java-mapping.git</connection>
<developerConnection>scm:git:git@github.com:wistefan/ngsi-ld-java-mapping.git</developerConnection>
<url>https://github.com/wistefan/ngsi-ld-java-mapping/tree/main</url>
<tag>HEAD</tag>
</scm>
<distributionManagement>
<snapshotRepository>
<id>sonatype.org</id>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
<properties>
<jdk.version>17</jdk.version>
<release.version>17</release.version>
<micronaut.version>3.10.3</micronaut.version>
<!-- project info -->
<project.author.name>Stefan Wiedemann</project.author.name>
<project.author.email>stefan.wiedemann@fiware.org</project.author.email>
<project.description>Mapping tool, to translate between NGSI-LD entities and Java POJOs.</project.description>
<project.summary>NGSI-LD - Java mapping.</project.summary>
<project.url>https://github.com/wistefan/ngsi-ld-java-mapping</project.url>
<project.license.name>Apache License 2.0</project.license.name>
<project.license.identifier>Apache-2.0</project.license.identifier>
<project.license.url>https://www.apache.org/licenses/LICENSE-2.0.txt</project.license.url>
<project.title>NGSI-LD - Pojo Mapping</project.title>
<project.vendor>FIWARE Foundation, e.V.</project.vendor>
<project.contact.domain>fiware.org</project.contact.domain>
<project.contact.email>stefan.wiedemann@fiware.org</project.contact.email>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- gpg signin -->
<gpg.keyname>key</gpg.keyname>
<gpg.passphrase>pass</gpg.passphrase>
<!-- lazy dev -->
<version.org.mapstruct>1.6.2</version.org.mapstruct>
<version.org.projectlombok>1.18.30</version.org.projectlombok>
<!-- code gen -->
<version.org.openapitools.generator-maven-plugin>6.5.0</version.org.openapitools.generator-maven-plugin>
<version.io.kokuwa.micronaut.codegen>3.2.2</version.io.kokuwa.micronaut.codegen>
<!-- annotations -->
<version.javax.annotation-api>1.3.2</version.javax.annotation-api>
<version.jakarta.annotation.jakarta.annotation-api>2.1.1</version.jakarta.annotation.jakarta.annotation-api>
<version.io.micronaut.micronaut-core>3.9.1</version.io.micronaut.micronaut-core>
<version.io.micronaut.micronaut-http-client>3.10.4</version.io.micronaut.micronaut-http-client>
<!-- json -->
<version.com.fasterxml.jackson.core.jackson-databind>2.18.0</version.com.fasterxml.jackson.core.jackson-databind>
<version.com.fasterxml.jackson.datatype.jackson-datatype-jsr310>2.18.0</version.com.fasterxml.jackson.datatype.jackson-datatype-jsr310>
<!-- rx -->
<version.io.reactivex.rxjava2.rxjava>2.2.21</version.io.reactivex.rxjava2.rxjava>
<version.io.projectreactor.reactor-core>3.6.10</version.io.projectreactor.reactor-core>
<version.javax.inject>1</version.javax.inject>
<!-- logging -->
<version.org.slf4j.slf4j-api>2.0.7</version.org.slf4j.slf4j-api>
<!-- build -->
<version.org.codehaus.mojo.build-helper-maven-plugin>3.3.0</version.org.codehaus.mojo.build-helper-maven-plugin>
<version.org.apache.maven.plugins.maven-source-plugin>3.1.0
</version.org.apache.maven.plugins.maven-source-plugin>
<version.org.apache.maven.plugins.maven-gpg-plugin>3.0.1</version.org.apache.maven.plugins.maven-gpg-plugin>
<version.org.sonatype.plugins.nexus-staging-maven-plugin>1.6.13
</version.org.sonatype.plugins.nexus-staging-maven-plugin>
<version.org.sonatype.central.publishing-plugin>0.8.0</version.org.sonatype.central.publishing-plugin>
<!-- test -->
<version.org.junit.jupiter>5.9.3</version.org.junit.jupiter>
<version.org.mockito.mockito-all>1.10.19</version.org.mockito.mockito-all>
<version.org.mockito.mockito-junit-jupiter>4.8.1</version.org.mockito.mockito-junit-jupiter>
<version.org.awaitility>4.0.3</version.org.awaitility>
<version.org.jacoco.maven-plugin>0.8.8</version.org.jacoco.maven-plugin>
<version.org.eluder.coveralls.maven-plugin>4.3.0</version.org.eluder.coveralls.maven-plugin>
<version.com.github.spotbugs.maven-plugin>4.5.2.0</version.com.github.spotbugs.maven-plugin>
<version.org.apache.maven.plugins.maven-site-plugin>3.9.1</version.org.apache.maven.plugins.maven-site-plugin>
<version.org.apache.maven.plugins.maven-surfire-plugin>3.0.0
</version.org.apache.maven.plugins.maven-surfire-plugin>
<version.org.apache.maven.plugins.maven-javadoc-plugin>3.2.0
</version.org.apache.maven.plugins.maven-javadoc-plugin>
<version.org.apache.maven.plugins.maven-compiler-plugin>3.11.0
</version.org.apache.maven.plugins.maven-compiler-plugin>
<version.com.google.code.findbugs.jsr305>3.0.2</version.com.google.code.findbugs.jsr305>
<coveralls.token>myToken</coveralls.token>
<jacoco.reportFolder>${project.build.directory}/jacoco/${artifactId}</jacoco.reportFolder>
<jacoco.utReportFile>${jacoco.reportFolder}/test.exec</jacoco.utReportFile>
<spotbugs.reportFolder>${project.build.directory}/site/spotbugs</spotbugs.reportFolder>
</properties>
<dependencies>
<!-- lazy dev -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${version.org.projectlombok}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
<version>${version.org.mapstruct}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.reactivex.rxjava2</groupId>
<artifactId>rxjava</artifactId>
<version>${version.io.reactivex.rxjava2.rxjava}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>${version.javax.inject}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>${version.javax.annotation-api}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>${version.com.google.code.findbugs.jsr305}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<version>${version.jakarta.annotation.jakarta.annotation-api}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${version.com.fasterxml.jackson.core.jackson-databind}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>${version.com.fasterxml.jackson.datatype.jackson-datatype-jsr310}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-core</artifactId>
<version>${version.io.micronaut.micronaut-core}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-http-client</artifactId>
<version>${version.io.micronaut.micronaut-http-client}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-http-client-core</artifactId>
<version>${version.io.micronaut.micronaut-http-client}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${version.org.slf4j.slf4j-api}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-core</artifactId>
<version>${version.io.projectreactor.reactor-core}</version>
<scope>provided</scope>
</dependency>
<!-- testing -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${version.org.junit.jupiter}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${version.org.junit.jupiter}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>${version.org.junit.jupiter}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>${version.org.mockito.mockito-all}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${version.org.mockito.mockito-junit-jupiter}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${version.org.codehaus.mojo.build-helper-maven-plugin}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${version.org.apache.maven.plugins.maven-compiler-plugin}</version>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${version.org.projectlombok}</version>
</path>
<path>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${version.org.mapstruct}</version>
</path>
<path>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-inject-java</artifactId>
<version>${micronaut.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
<executions>
<execution>
<id>test-compile</id>
<goals>
<goal>testCompile</goal>
</goals>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${version.org.projectlombok}</version>
</path>
<path>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${version.org.mapstruct}</version>
</path>
<path>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-inject-java</artifactId>
<version>${micronaut.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</execution>
</executions>
</plugin>
<!-- run tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${version.org.apache.maven.plugins.maven-surfire-plugin}</version>
<configuration>
<argLine>@{argLine} --add-opens java.base/java.lang=ALL-UNNAMED --add-opens
java.base/java.time=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>${version.org.apache.maven.plugins.maven-site-plugin}</version>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${version.com.github.spotbugs.maven-plugin}</version>
<configuration>
<xmlOutput>true</xmlOutput>
<failOnError>false</failOnError>
<xmlOutputDirectory>${spotbugs.reportFolder}</xmlOutputDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${version.org.jacoco.maven-plugin}</version>
<configuration>
<!-- exclude generated code -->
<excludes>
<exclude>org/fiware/ngsi/**/*</exclude>
<exclude>org/fiware/*/api/*</exclude>
<exclude>org/fiware/*/model/*</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>pre-unit-tests</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<!-- Ensures that the code coverage report for unit tests is created after unit tests have been run -->
<execution>
<id>post-unit-test</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>merge-reports</id>
<phase>verify</phase>
<goals>
<goal>merge</goal>
</goals>
<configuration>
<fileSets>
<fileSet>
<directory>${project.basedir}/</directory>
<includes>
<include>*.exec</include>
</includes>
</fileSet>
</fileSets>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${version.org.apache.maven.plugins.maven-javadoc-plugin}</version>
</plugin>
<!-- generate sources from openapi spec -->
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>${version.org.openapitools.generator-maven-plugin}</version>
<executions>
<execution>
<id>openapi-ngsi-ld-api</id>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/api/broker-client.yaml</inputSpec>
<strictSpec>true</strictSpec>
<apiPackage>org.fiware.ngsi.api</apiPackage>
<modelPackage>org.fiware.ngsi.model</modelPackage>
<generateAliasAsModel>true</generateAliasAsModel>
<generatorName>micronaut</generatorName>
<generateApiTests>false</generateApiTests>
<modelNameSuffix>VO</modelNameSuffix>
<output>${project.build.directory}</output>
<configOptions>
<clientId>ngsi</clientId>
<fullJavaUtil>true</fullJavaUtil>
<useOptional>false</useOptional>
<useGenericResponse>false</useGenericResponse>
<useLombokGenerated>true</useLombokGenerated>
<introspected>true</introspected>
<generateAliasAsModel>false</generateAliasAsModel>
<useBeanValidation>false</useBeanValidation>
<jacksonDatabindNullable>false</jacksonDatabindNullable>
<supportAsync>true</supportAsync>
<generateExamples>true</generateExamples>
</configOptions>
<languageSpecificPrimitives>PropertyValueVO</languageSpecificPrimitives>
<typeMappings>
<typeMapping>java.util.Date=java.time.Instant</typeMapping>
<typeMapping>PropertyValueVO=java.lang.Object</typeMapping>
</typeMappings>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>io.kokuwa.micronaut</groupId>
<artifactId>micronaut-openapi-codegen</artifactId>
<version>${version.io.kokuwa.micronaut.codegen}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>${version.org.eluder.coveralls.maven-plugin}</version>
<configuration>
<repoToken>${coveralls.token}</repoToken>
</configuration>
<dependencies>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
</dependencies>
</plugin>
<!-- add generated sources -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>openapi-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${project.build.directory}/generated-sources/openapi</source>
</sources>
</configuration>
</execution>
<execution>
<id>openapi-test-sources</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>${project.build.directory}/generated-test-sources/openapi</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>${version.org.sonatype.central.publishing-plugin}</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>sonatype.org</publishingServerId>
<autoPublish>true</autoPublish>
<waitUntil>published</waitUntil>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${version.org.apache.maven.plugins.maven-source-plugin}</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${version.org.apache.maven.plugins.maven-javadoc-plugin}</version>
<configuration>
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${version.org.apache.maven.plugins.maven-gpg-plugin}</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>