【问题标题】:Build failed Liferay 6.2 application构建失败的 Liferay 6.2 应用程序
【发布时间】:2017-05-26 11:44:41
【问题描述】:

我正在尝试在我的 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: Connection denied: connect

【问题讨论】:

    标签: liferay-6.2


    【解决方案1】:

    我刚刚回答了一个与此类似的问题,虽然您的帖子也缺少详细信息,但您可能会在某些 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 
    

    【讨论】:

      猜你喜欢
      • 2014-05-25
      • 1970-01-01
      • 2016-06-04
      • 1970-01-01
      • 1970-01-01
      • 2014-01-26
      • 2017-08-29
      • 2017-04-26
      • 1970-01-01
      相关资源
      最近更新 更多