diff --git a/maven-profile/src/main/java/org/apache/maven/profiles/DefaultMavenProfilesBuilder.java b/maven-profile/src/main/java/org/apache/maven/profiles/DefaultMavenProfilesBuilder.java index 88107df387..597dd828c0 100644 --- a/maven-profile/src/main/java/org/apache/maven/profiles/DefaultMavenProfilesBuilder.java +++ b/maven-profile/src/main/java/org/apache/maven/profiles/DefaultMavenProfilesBuilder.java @@ -48,6 +48,8 @@ public class DefaultMavenProfilesBuilder FileReader fileReader = null; try { + fileReader = new FileReader( profilesXml ); + StringWriter sWriter = new StringWriter(); IOUtil.copy( fileReader, sWriter );