首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ivy Liferay IDE的代理配置

Ivy Liferay IDE的代理配置
EN

Stack Overflow用户
提问于 2014-01-15 11:18:18
回答 1查看 5.1K关注 0票数 0

我尝试用Liferay-IDE 2.0创建新的Lifreay插件项目。但我遇到了常春藤网络的问题。我认为为Ivy配置代理是必要的,但我不知道在哪里这样做。

这里有一个例外:

代码语言:javascript
复制
[Console output redirected to file:D:\Liferays\6.2.CE-RC5\workspace\.metadata\.plugins\com.liferay.ide.sdk.core\sdk.log]
Buildfile: D:\Liferays\6.2.CE-RC5\liferay-plugins-sdk-6.2.0\themes\build.xml
      [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar
      [get] To: D:\Liferays\6.2.CE-RC5\liferay-plugins-sdk-6.2.0\.ivy\ivy-2.3.0.jar
      [get] Error getting http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar to D:\Liferays\6.2.CE-RC5\liferay-plugins-sdk-6.2.0\.ivy\ivy-2.3.0.jar

BUILD FAILED
D:\Liferays\6.2.CE-RC5\liferay-plugins-sdk-6.2.0\themes\build.xml:5: The following error occurred while executing this line:
D:\Liferays\6.2.CE-RC5\liferay-plugins-sdk-6.2.0\build-common-plugins.xml:5: The following error occurred while executing this line:
D:\Liferays\6.2.CE-RC5\liferay-plugins-sdk-6.2.0\build-common.xml:47: The following error occurred while executing this line:
D:\Liferays\6.2.CE-RC5\liferay-plugins-sdk-6.2.0\build-common-ivy.xml:17: java.net.UnknownHostException: repo1.maven.org

对maven来说,这种行为很好。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-01-15 12:21:20

将代理定义放到Liferay-SDK/build- put ivy.xml。

例如:

代码语言:javascript
复制
<if>
    <not>
        <available file="${ivy.home}/ivy-${ivy.version}.jar" />
    </not>
    <then>
        <mkdir dir="${ivy.home}" />
        <setproxy proxyhost="PROXY_SERVER_XX.XX..." proxyport="e.g.8080" proxyUser="USER-if-not-annonym"    proxyPassword="USER-password-if-necessary"/>  
        <get
            dest="${ivy.home}"
            src="${ivy.jar.url}"
        />
    </then>
</if>
票数 6
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21135999

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档