excluding project lombok from the dependencies, allow to deserialize solr.RecordType from 'otherresearchproduct'
This commit is contained in:
parent
e89828babe
commit
58c601171f
6
pom.xml
6
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue