excluding project lombok from the dependencies, allow to deserialize solr.RecordType from 'otherresearchproduct'

This commit is contained in:
Claudio Atzori 2024-12-09 16:09:23 +01:00
parent e89828babe
commit 58c601171f
2 changed files with 9 additions and 0 deletions

View File

@ -430,6 +430,12 @@
<dependency>
<groupId>com.github.sisyphsu</groupId>
<artifactId>dateparser</artifactId>
<exclusions>
<exclusion>
<artifactId>lombok</artifactId>
<groupId>org.projectlombok</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>

View File

@ -3,6 +3,8 @@ package eu.dnetlib.dhp.schema.solr;
import java.io.Serializable;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonCreator;
public enum RecordType implements Serializable {
publication,
dataset,
@ -13,6 +15,7 @@ public enum RecordType implements Serializable {
project,
person;
@JsonCreator
public static RecordType fromString(String s) {
if (Objects.isNull(s)) {
return null;