我刚刚在eclipse IDE中创建了一个liferay插件项目(Ant插件),我收到了这个错误:
描述资源路径位置类型未解析的依赖关系: com.liferay#com.liferay.ant.arquillian; 1.0.0-SNAPSHOT:几个 解决依赖时出现问题: com.liferay#com.liferay.ant.arquillian; 1.0.0-SNAPSHOT {test = [default]}:liferay-private:无法获取资源 COM / Liferay的#com.liferay.ant.arquillian; 1.0.0-快照: RES = $ {} ivy.repository.liferay.private.url /com/liferay/com.liferay.ant.arquillian/1.0.0-SNAPSHOT/com.liferay.ant.arquillian-1.0.0-SNAPSHOT-javadoc.jar : java.net.MalformedURLException:没有协议: $ {} ivy.repository.liferay.private.url /com/liferay/com.liferay.ant.arquillian/1.0.0-SNAPSHOT/com.liferay.ant.arquillian-1.0.0-SNAPSHOT-javadoc.jar liferay-private:无法获取资源 COM / Liferay的#com.liferay.ant.arquillian; 1.0.0-快照: RES = $ {} ivy.repository.liferay.private.url /com/liferay/com.liferay.ant.arquillian/1.0.0-SNAPSHOT/com.liferay.ant.arquillian-1.0.0-SNAPSHOT.pom: java.net.MalformedURLException:没有协议: $ {ivy.repository.liferay.private.url} /com/liferay/com.liferay.ant.arquillian/1.0.0-SNAPSHOT/com.liferay.ant.arquillian-1.0.0-SNAPSHOT.pom ivy.xml / MyFirstPortlet-portlet未知的IvyDE 问题
似乎我的常春藤文件无法解决依赖关系。我的ivy.xml文件在这里
我检查了ivy.xml中的http://ant.apache.org/ivy/maven链接,发现它不存在。我认为这就是问题所在。如果是,我该如何更正我的ivy.xml文件?
答案 0 :(得分:0)
只需按照以下方式更改ivy.xml;
<?xml version="1.0"?>
<ivy-module
version="2.0"
xmlns:m2="http://ant.apache.org/ivy/maven"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"
>
<info module="test-portlet" organisation="com.liferay">
<extends extendType="configurations,description,info" location="../../ivy.xml" module="com.liferay.sdk" organisation="com.liferay" revision="latest.integration" />
</info>
<dependencies defaultconf="default">
<dependency conf="test->default" name="arquillian-junit-container" org="org.jboss.arquillian.junit" rev="1.1.6.Final" />
<dependency conf="test->default" name="arquillian-tomcat-remote-7" org="org.jboss.arquillian.container" rev="1.0.0.CR6" />
<dependency conf="test->default" name="com.liferay.ant.arquillian" org="com.liferay" rev="1.0.0" />
</dependencies>
</ivy-module>
&#13;