Liferay Maven依赖关系无法解决

编程入门 行业动态 更新时间:2024-10-27 14:18:50
本文介绍了Liferay Maven依赖关系无法解决的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在将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( repo.maven.apache/maven2 )-> [帮助1]

我也在下面使用过

repositories> <repository> <id>liferay-ce</id> <name>Liferay CE</name> <url>repository.liferay/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>repository.liferay/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 (repo.maven.apache/maven2) -> [Help 1]

I have used below as well.

repositories> <repository> <id>liferay-ce</id> <name>Liferay CE</name> <url>repository.liferay/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>repository.liferay/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依赖关系无法解决

本文发布于:2023-11-16 16:54:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1606123.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:关系   Liferay   Maven

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!