我正在尝试在我的eclipse IDE中配置现有的liferay 6.2应用程序,但我无法构建应用程序。问题似乎是在ivy.xml文件中。存在的依赖项没有自动下载。 以下是ivy.xml中的代码:
<?xml version="1.0"?>
<ivy-module version="2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
<info module="portlet_primefaces_tmpl" organisation="com.liferay" />
<dependencies defaultconf="default">
<dependency name="el-api" org="javax.el" rev="2.2" />
<dependency name="jboss-el" org="org.jboss.el" rev="2.0.1.GA" />
<dependency name="jsf-api" org="com.sun.faces" rev="2.1.21" />
<dependency name="jsf-impl" org="com.sun.faces" rev="2.1.21" />
<dependency name="liferay-faces-bridge-api" org="com.liferay.faces" rev="3.2.4-ga5" />
<dependency name="liferay-faces-bridge-impl" org="com.liferay.faces" rev="3.2.4-ga5" />
<dependency name="liferay-faces-portal" org="com.liferay.faces" rev="3.2.4-ga5" />
<dependency name="liferay-faces-util" org="com.liferay.faces" rev="3.2.4-ga5" />
<dependency name="primefaces" org="org.primefaces" rev="3.5" />
</dependencies>
</ivy-module>
构建应用程序时出错:
建立失败 E:\ Liferay_Project_Edistrict \ liferay-plugins-sdk-6.2 \ build-common-ivy.xml:81:java.net.ConnectException:连接被拒绝:连接
答案 0 :(得分:0)
我刚回答了一个与此类似的问题,而您的帖子也缺少详细信息,您可能会在某些6.2小版本中遇到常见问题。找到您的build.USERNAME.properties文件并添加以下行,然后再次尝试构建
ivy.version = 2.3.0
ivy.jar.url = http://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.version}/ivy-${ivy.version}.jar