问题描述
我正在将liferay 6.2.10.4企业版与maven一起使用.同时使用commad清洁软件包进行部署时,我遇到了以下错误.
以下工件无法解析:com.liferay.portal:门户服务-jar:6.2.10.4,com.liferay.portal:util-bridges:jar:6.2.10.4,com.liferay.portal:util -taglib:jar:6.2.10.4,com.liferay.portal:util-java:jar:6.2.10.4:在中央找不到工件com.liferay.portal:portal-service:jar:6.2.10.4( http://repo.maven.apache.org/maven2 )-> [帮助1]
我也在下面使用过
repositories>
<repository>
<id>liferay-ce</id>
<name>Liferay CE</name>
<url>https://repository.liferay.com/nexus/content/groups/liferay-ce</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>liferay-ce</id>
<url>https://repository.liferay.com/nexus/content/groups/liferay-ce/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
我认为问题是maven存储库中不存在版本.您必须输入正确的版本.例如,您可以在此处看到util-taglib可用版本.. >
I am using liferay 6.2.10.4 enterprise edition with maven.while deploying it with maven clean package commad I got below error.
The following artifacts could not be resolved: com.liferay.portal:portal-service:jar:6.2.10.4, com.liferay.portal:util-bridges:jar:6.2.10.4, com.liferay.portal:util-taglib:jar:6.2.10.4, com.liferay.portal:util-java:jar:6.2.10.4: Could not find artifact com.liferay.portal:portal-service:jar:6.2.10.4 in central (http://repo.maven.apache.org/maven2) -> [Help 1]
I have used below as well.
repositories>
<repository>
<id>liferay-ce</id>
<name>Liferay CE</name>
<url>https://repository.liferay.com/nexus/content/groups/liferay-ce</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>liferay-ce</id>
<url>https://repository.liferay.com/nexus/content/groups/liferay-ce/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
I think the problem is that versions doesn't exist in maven repository. You must put a correct version. For example, you can see util-taglib available versions here.
这篇关于Liferay Maven依赖关系无法解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!