我正在将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依赖关系无法解决
发布评论