Liferay XML Portlet工厂生成错误

Liferay XML Portlet工厂生成错误,liferay,portlet,Liferay,Portlet,我遵循了,当我启动命令(教程的说明)时,我得到以下错误: PS C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory> ant Buildfile: C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory\build.xml [echo] Generatin

我遵循了,当我启动命令(教程的说明)时,我得到以下错误:

PS C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory> ant
Buildfile: C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory\build.xml
     [echo] Generating for SDK version =6.2.0

generate-portlet:
     [java] May 19, 2014 4:37:31 PM org.xmlportletfactory.utils.XMLUtils validateAgainstSchema
     [java] SEVERE: null
     [java] com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
 ...

BUILD FAILED
C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory\build.xml:19: Java returned: 1

Total time: 0 seconds
PS C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory>
PS C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory> ant
Buildfile: C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory\build.xml

BUILD FAILED
Encoding of project file C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory\build.xml is invalid.

Total time: 0 seconds
PS C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory>
如何说ant使用utf-8编码?如果更改xml中的编码,则会出现以下错误:

PS C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory> ant
Buildfile: C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory\build.xml
     [echo] Generating for SDK version =6.2.0

generate-portlet:
     [java] May 19, 2014 4:37:31 PM org.xmlportletfactory.utils.XMLUtils validateAgainstSchema
     [java] SEVERE: null
     [java] com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
 ...

BUILD FAILED
C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory\build.xml:19: Java returned: 1

Total time: 0 seconds
PS C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory>
PS C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory> ant
Buildfile: C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory\build.xml

BUILD FAILED
Encoding of project file C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory\build.xml is invalid.

Total time: 0 seconds
PS C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory>

可能重复Yes但不起作用,我尝试通过notepad++更改文件的编码,通过选项'-Dfile.encoding='将编码样式传递给ant,并在xml中设置编码属性,但没有帮助。我发现了我的问题,我没有将编码转换为特定格式。转换后,它工作。