mirror of https://github.com/apache/maven.git
o Fixed encoding error
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@749308 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
494b72ea2c
commit
87f3f584aa
|
@ -419,9 +419,13 @@ public class DefaultMavenProjectBuilder
|
||||||
List<ModelProperty> p;
|
List<ModelProperty> p;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
p = ModelMarshaller.marshallXmlToModelProperties(new ByteArrayInputStream(writer.getBuffer().toString().getBytes()),
|
String xml = writer.getBuffer().toString();
|
||||||
ProjectUri.Profiles.xUri, uris);
|
p =
|
||||||
} catch (IOException e) {
|
ModelMarshaller.marshallXmlToModelProperties( new ByteArrayInputStream( xml.getBytes( "UTF-8" ) ),
|
||||||
|
ProjectUri.Profiles.xUri, uris );
|
||||||
|
}
|
||||||
|
catch ( IOException e )
|
||||||
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue