Spring Roo 在 STS 中给出 Maven 的构建错误
我正在将 STS 用于 spring roo 项目。当我执行命令时出现以下错误
文章构建错误; org.apache.maven.lifecycle.LifecycleExecutionException: 未能执行目标 org.codehaus.mojo:aspectj-maven-plugin:1.0:编译 (默认)关于项目文章: 目标执行默认 org.codehaus.mojo:aspectj-maven-plugin:1.0:编译 失败:插件 org.codehaus.mojo:aspectj-maven-plugin:1.0 或者它的依赖项之一无法 待解决:以下工件 无法解决: org.aspectj:aspectjtools:jar:1.6.11.M1, org.codehaus.plexus:plexus-utils:jar:1.1: 存储库系统已离线,但 神器 org.aspectj:aspectjtools:jar:1.6.11.M1 本地不可用 存储库。`
我的互联网工作正常。其他依赖项下载正常,但不高于一个
I am using STS for spring roo project. when i execute command i get the following error
Build errors for articles;
org.apache.maven.lifecycle.LifecycleExecutionException:
Failed to execute goal
org.codehaus.mojo:aspectj-maven-plugin:1.0:compile
(default) on project articles:
Execution default of goal
org.codehaus.mojo:aspectj-maven-plugin:1.0:compile
failed: Plugin
org.codehaus.mojo:aspectj-maven-plugin:1.0
or one of its dependencies could not
be resolved: The following artifacts
could not be resolved:
org.aspectj:aspectjtools:jar:1.6.11.M1,
org.codehaus.plexus:plexus-utils:jar:1.1:
The repository system is offline but
the artifact
org.aspectj:aspectjtools:jar:1.6.11.M1
is not available in the local
repository.`
My internet is working fine. other dependencies download fine but not above one
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不知道这个有趣的版本来自哪里,但它肯定不能在 Maven Central 中找到:
org.aspectj:aspectjtools
versions您可以执行
mvn dependency:tree -Dincludes=org.aspectj
来查看依赖项来自何处以及然后将依赖版本设置为当前版本(1.6.10)。但除此之外,
这听起来好像所需的存储库不可用。也许服务器已关闭,错误不一定是在您这边。
I don't know where this funny version comes from, but it's certainly not to be found in Maven Central:
org.aspectj:aspectjtools
versionsyou can do a
mvn dependency:tree -Dincludes=org.aspectj
to see where the dependency is coming from and then set the dependency version to the current version (1.6.10).But apart from that,
this sounds like a needed repository was not available. Maybe a server is / was down, the error doesn't have to be on your side.
根据您使用的 STS/Spring Roo 版本,您可能会遇到此错误 。如果是这样,修复程序位于此 评论。
You may hitting this bug, based on the version of STS/Spring Roo that you are using. If so, the fix is present in this comment.