在eclipse中运行构建器“Maven Project Builder”的错误

问题描述 投票:0回答:1

我想在eclipse中使用liferay-maven-plugin创建一个liferay插件portlet,但每次我尝试这样做时都会出现这个错误:

Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'sample-portlet'.
Could not calculate build plan: Plugin com.liferay.maven.plugins:liferay-maven-plugin:6.2.1 or one of its dependencies could not be resolved: Failure to find com.liferay.maven.plugins:liferay-maven-plugin:jar:6.2.1 in http://repo.maven.apache.org/maven2
was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
Plugin com.liferay.maven.plugins:liferay-maven-plugin:6.2.1 or one of its dependencies could not be resolved: Failure to find com.liferay.maven.plugins:liferay-maven-plugin:jar:6.2.1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
Could not calculate build plan: Plugin com.liferay.maven.plugins:liferay-maven-plugin:6.2.1 or one of its dependencies could not be resolved: Failure to find com.liferay.maven.plugins:liferay-maven-plugin:jar:6.2.1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
Plugin com.liferay.maven.plugins:liferay-maven-plugin:6.2.1 or one of its dependencies could not be resolved: Failure to find com.liferay.maven.plugins:liferay-maven-plugin:jar:6.2.1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
eclipse maven liferay
1个回答
0
投票
  1. 关闭日食
  2. 删除.m2 respo
  3. 开始日食
  4. 保持网络连接,让maven更新所有依赖项
© www.soinside.com 2019 - 2024. All rights reserved.