Lucio Lelii 5 years ago
parent
commit
9f9468c293
  1. 2
      pom.xml
  2. 4
      src/main/java/org/gcube/common/resources/gcore/Resources.java

2
pom.xml

@ -8,7 +8,7 @@
</parent>
<groupId>org.gcube.resources</groupId>
<artifactId>common-gcore-resources</artifactId>
<version>1.3.3-SNAPSHOT</version>
<version>1.3.4-SNAPSHOT</version>
<scm>
<connection>scm:svn:http://svn.d4science.research-infrastructures.eu/gcube/trunk/Common/${project.artifactId}</connection>

4
src/main/java/org/gcube/common/resources/gcore/Resources.java

@ -153,8 +153,8 @@ public class Resources {
try {
JAXBContext context = context(resource.getClass());
Marshaller m = context.createMarshaller();
m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
//m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
m.setProperty(Marshaller.JAXB_ENCODING, "UTF-8");
m.marshal(resource,result);
return result;

Loading…
Cancel
Save