diff --git a/pom.xml b/pom.xml
index 1eb5fe9..158f7bb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -122,8 +122,6 @@
-
-
org.apache.commons
commons-lang3
@@ -134,16 +132,23 @@
commons-codec
-
- commons-io
- commons-io
-
-
org.apache.commons
commons-pool2
+
+
+ org.dom4j
+ dom4j
+ 2.1.4
+
+
+
+ jaxen
+ jaxen
+
+
eu.dnetlib.dhp
@@ -167,13 +172,14 @@
org.apache.solr
solr-solrj
- ${apache.solr.version}
+ 9.7.0
org.springdoc
springdoc-openapi-ui
+ 1.6.10
@@ -195,6 +201,7 @@
org.apache.maven
maven-model
+ 3.8.1
@@ -218,63 +225,6 @@
-
-
-
-
- commons-cli
- commons-cli
- 1.4
-
-
-
- commons-codec
- commons-codec
- 1.9
-
-
-
- commons-io
- commons-io
- 2.10.0
-
-
-
- dom4j
- dom4j
- 1.6.1
-
-
-
- xml-apis
- xml-apis
- 1.4.01
-
-
-
- jaxen
- jaxen
- 1.1.6
-
-
-
- org.apache.maven
- maven-model
- 3.8.1
-
-
-
-
- org.springdoc
- springdoc-openapi-ui
- 1.6.10
-
-
-
-
-
-
-
target
target/classes
@@ -373,7 +323,6 @@
1.71.0
false
1.3.6
- 2.6
10.0.22
diff --git a/src/main/java/eu/dnetlib/app/directindex/solr/SolrIndexClient.java b/src/main/java/eu/dnetlib/app/directindex/solr/SolrIndexClient.java
index e5b1c39..c6e90fc 100644
--- a/src/main/java/eu/dnetlib/app/directindex/solr/SolrIndexClient.java
+++ b/src/main/java/eu/dnetlib/app/directindex/solr/SolrIndexClient.java
@@ -58,6 +58,9 @@ public class SolrIndexClient {
}
private SolrInputDocument prepareSolrDocument(final SolrRecord record) {
+
+ final String xml = XMLSolrSerializer.generateXML(record);
+
// TODO (usare classe condivisa preparata da Claudio)
return null;
diff --git a/src/main/java/eu/dnetlib/app/directindex/solr/XMLSolrSerializer.java b/src/main/java/eu/dnetlib/app/directindex/solr/XMLSolrSerializer.java
new file mode 100644
index 0000000..d2b00d5
--- /dev/null
+++ b/src/main/java/eu/dnetlib/app/directindex/solr/XMLSolrSerializer.java
@@ -0,0 +1,18 @@
+package eu.dnetlib.app.directindex.solr;
+
+import org.dom4j.Document;
+import org.dom4j.DocumentHelper;
+
+import eu.dnetlib.dhp.schema.solr.SolrRecord;
+
+public class XMLSolrSerializer {
+
+ public static String generateXML(final SolrRecord record) {
+ final Document doc = DocumentHelper.createDocument();
+
+ // TODO
+
+ return doc.asXML();
+ }
+
+}