diff --git a/pom.xml b/pom.xml index 4f9f9ae..b829176 100644 --- a/pom.xml +++ b/pom.xml @@ -6,14 +6,15 @@ 0.1.0-SNAPSHOT Fishing Contest + UTF-8 + 11 4.3 ${user.home}/opt ${opt}/eclipse/kepler ${eclipse.home}/plugins - - 1.7 - 1.7 + ${java.version} + ${java.version} @@ -128,20 +129,49 @@ org.apache.maven.plugins maven-compiler-plugin 3.8.0 - - - ${java.home}/lib/rt.jar - - org.codehaus.mojo exec-maven-plugin 1.6.0 + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0-M2 + + + org.apache.maven.plugins + maven-enforcer-plugin + + + enforce-java + + enforce + + + + + [11,) + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + ${java.version} + + + org.codehaus.mojo exec-maven-plugin diff --git a/src/main/java/org/fc/data/Contest.java b/src/main/java/org/fc/data/Contest.java index 74994af..862e692 100644 --- a/src/main/java/org/fc/data/Contest.java +++ b/src/main/java/org/fc/data/Contest.java @@ -162,10 +162,11 @@ public void dumpToFile(String fileName) throws XMLStreamException, FileNotFoundE XMLOutputFactory xmlof = XMLOutputFactory.newInstance(); +// TODO: find new way of indenting xml stream writer +// XMLStreamWriter xmlw = new com.sun.xml.internal.txw2.output.IndentingXMLStreamWriter( +// xmlof.createXMLStreamWriter(new FileOutputStream(fileName))); - XMLStreamWriter xmlw = new com.sun.xml.internal.txw2.output.IndentingXMLStreamWriter( - xmlof.createXMLStreamWriter(new FileOutputStream(fileName))); - + XMLStreamWriter xmlw = xmlof.createXMLStreamWriter(new FileOutputStream(fileName)); xmlw.writeStartDocument(); xmlw.writeStartElement("contest");