Use java 7 as base
authorCarsten Ziegeler <cziegeler@apache.org>
Sat, 12 Nov 2016 15:46:45 +0000 (15:46 +0000)
committerCarsten Ziegeler <cziegeler@apache.org>
Sat, 12 Nov 2016 15:46:45 +0000 (15:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1769390 13f79535-47bb-0310-9956-ffa450edef68

pom.xml
src/main/java/org/apache/sling/installer/factory/model/impl/RepositoryAccess.java

diff --git a/pom.xml b/pom.xml
index 5a600d6..e6c2c03 100644 (file)
--- a/pom.xml
+++ b/pom.xml
         Provides support for the provisioning model to the Apache Sling OSGi installer
     </description>
 
-    <properties>
-        <sling.java.version>8</sling.java.version>
-    </properties>
-
     <scm>
         <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/installer/factories/model</connection>
         <developerConnection> scm:svn:https://svn.apache.org/repos/asf/sling/trunk/installer/factories/model</developerConnection>
index 68792cf..a2c9c4d 100644 (file)
@@ -21,6 +21,7 @@ package org.apache.sling.installer.factory.model.impl;
 import java.io.File;
 import java.io.IOException;
 import java.lang.ProcessBuilder.Redirect;
+import java.nio.charset.Charset;
 import java.nio.file.Files;
 import java.nio.file.Path;
 import java.util.ArrayList;
@@ -123,7 +124,7 @@ public class RepositoryAccess {
         lines.add("    </dependencies>");
         lines.add("</project>");
         logger.info("Writing pom to {}", dir);
-        Files.write(dir.resolve("pom.xml"), lines);
+        Files.write(dir.resolve("pom.xml"), lines, Charset.forName("UTF-8"));
 
         final File output = dir.resolve("output.txt").toFile();
         final File error = dir.resolve("error.txt").toFile();