简体   繁体   English

maven无法读取raml的工件描述符

[英]maven Failed to read artifact descriptor for raml

I am trying to follow steps from this article and include a build step for my project 我正在尝试按照本文中的步骤进行操作,并包括针对我的项目的构建步骤

https://github.com/mulesoft/raml-for-jax-rs/blob/master/maven-plugin.md https://github.com/mulesoft/raml-for-jax-rs/blob/master/maven-plugin.md

problem is it keeps complaining about not being able to read the artifact, the error line is 问题是它一直抱怨无法读取工件,错误行是

[ERROR] Plugin org.raml.plugins:jaxrs-raml-maven-plugin:1.3.4-SNAPSHOT or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.raml.plugins:jaxrs-raml-maven-plugin:jar:1.3.4-SNAPSHOT: Could not find artifact org.raml:jaxrs-to-raml:pom:1.3.4-SNAPSHOT -> [Help 1]
org.apache.maven.plugin.PluginResolutionException: Plugin org.raml.plugins:jaxrs-raml-maven-plugin:1.3.4-SNAPSHOT or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.raml.plugins:jaxrs-raml-maven-plugin:jar:1.3.4-SNAPSHOT
    at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:117)

I can confirm that my local maven repo looks like 我可以确认我的本地Maven仓库看起来像

~/.m2/repository/org/raml/plugins/jaxrs-raml-maven-plugin/1.3.4-SNAPSHOT/ 〜/ .m2 / repository / org / raml / plugins / jaxrs-raml-maven-plugin / 1.3.4-SNAPSHOT /

jaxrs-raml-maven-plugin-1.3.4-SNAPSHOT-javadoc.jar jaxrs-raml-maven-plugin-1.3.4-SNAPSHOT-javadoc.jar
jaxrs-raml-maven-plugin-1.3.4-SNAPSHOT.pom jaxrs-raml-maven-plugin-1.3.4-SNAPSHOT-sources.jar jaxrs-raml-maven-plugin-1.3.4-SNAPSHOT.pom jaxrs-raml-maven-plugin-1.3.4-SNAPSHOT-sources.jar
maven-metadata-local.xml jaxrs-raml-maven-plugin-1.3.4-SNAPSHOT.jar maven-metadata-local.xml jaxrs-raml-maven-plugin-1.3.4-SNAPSHOT.jar

The error here is that maven cannot find the artifact: 这里的错误是maven无法找到工件:

org.raml:jaxrs-to-raml:pom:1.3.4-SNAPSHOT

That is a dependency of: 那是依赖于:

org.raml.plugins:jaxrs-raml-maven-plugin:jar:1.3.4-SNAPSHOT

Make sure your repository contains the first artifact either by compiling it yourself or by adding the right remote repository 通过自己编译或添加正确的远程存储库,确保存储库包含第一个工件。

I met with the same problem. 我遇到了同样的问题。 It's said in the document: 在文档中说:

  • Clone this repository or download a snapshot. 克隆此存储库或下载快照。
  • On the cloned repository, go to the jaxrs-to-raml/com.mulesoft.jaxrs.raml.generator folder, and execute mvn install 在克隆的存储库上,转到jaxrs-to-raml / com.mulesoft.jaxrs.raml.generator文件夹,然后执行mvn install
  • Once installed, go to the jaxrs-to-raml/jaxrs-raml-maven-plugin folder and run mvn install. 安装完成后,转到jaxrs-to-raml / jaxrs-raml-maven-plugin文件夹并运行mvn install。

But it couldn't work with the above problem. 但这无法解决上述问题。

Actually I installed everything in this repo, and that solved my problem. 实际上,我在此存储库中安装了所有内容 ,这解决了我的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM