无法在Spring工具套件中构建工作区

时间:2013-12-30 09:01:57

标签: spring

我在Spring工具套件中创建spring roo项目时遇到了问题。 问题是它说"building workspace has encountered a problem.error occured during the build.

查看详细信息

Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'first'.
Could not calculate build plan: Plugin org.codehaus.mojo:aspectj-maven-plugin:1.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:aspectj-maven-plugin:jar:1.4
Plugin org.codehaus.mojo:aspectj-maven-plugin:1.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:aspectj-maven-plugin:jar:1.4
Could not calculate build plan: Plugin org.codehaus.mojo:aspectj-maven-plugin:1.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:aspectj-maven-plugin:jar:1.4
Plugin org.codehaus.mojo:aspectj-maven-plugin:1.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:aspectj-maven-plugin:jar:1.4 

4 个答案:

答案 0 :(得分:0)

看来你下载的依赖项已经被破坏了。

尝试跑步:

mvn -U clean install

答案 1 :(得分:0)

我的回答是因为我没有足够的声誉来发表评论。所以;

在STS中我得到了同样的错误然后找到了@ dhamibirendra的答案,我尝试了它以不同的方式工作。 (右侧Clik On Project - > Run as Maven Build(不是3dot))然后在目标上运行U-clean install并运行。(不要忘记将Maven Runtime设置为外部)完成后我再次遇到同样的错误项目。然后我删除现有项目并创建新项目,没有问题。也许它有助于某人。

答案 2 :(得分:0)

右键单击项目 - >运行Maven Build并单击build clean上的选项并逐个安装,并在目标部分U-clean install中运行此命令,然后单击Run.And刷新项目如果您仍然看到问题,请删除旧项目并创建新项目。

答案 3 :(得分:0)

删除pom.xml文件并将其再次粘贴到Web内容文件夹中。这对我有用。