没有使用Eclipse Eether软件包通过Maven插件进行部署的连接器 [英] No connector available using eclipse aether package to deploy through maven plugin

查看:143
本文介绍了没有使用Eclipse Eether软件包通过Maven插件进行部署的连接器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Maven 3.1.0和Eclipse Aether 0.9.0.M3.我已经根据他们的文档进行了设置,并尝试将其作为maven插件运行.这是他们部署的链接

I am trying to use Maven 3.1.0 and the Eclipse Aether 0.9.0.M3. I have set it up according to their document and trying to run it as a maven plugin. This is a link to their deploy example. I substituted my repository name in the list but when I run the plugin I get the following error:

[错误]无法在项目NexusHelper上执行目标com.company.maven.plugin.sample:nexus-maven-plugin:1.0-SNAPSHOT:deploy-repository(default-cli):未能部署工件/元数据:否连接器可用于访问存储库内部存储库( http://nexus.company.com/content/repositories /incubator/),默认类型为使用可用的工厂-> [帮助1]

[ERROR] Failed to execute goal com.company.maven.plugin.sample:nexus-maven-plugin:1.0-SNAPSHOT:deploy-repository (default-cli) on project NexusHelper: Failed to deploy artifacts/metadata: No connector available to access repository internal-repository (http://nexus.company.com/content/repositories/incubator/) of type default using the available factories -> [Help 1]

我可以使用相同的代码示例,并在独立的jar中运行它,它可以完美地运行.我想尽可能将所有内容作为一个插件保存在一起,而没有一个插件和一个独立的jar.

I can take this same code example and run it in a standalone jar and it works perfectly. I wanted to keep everything together as one plugin if possible and not have a plugin and a standalone jar along with it.

推荐答案

我遇到了同样的问题,这是因为未自动注入此连接器.手动执行此操作后,我开始出现错误的方法签名"错误,这使我想到Maven 3.1.0使用Aether 0.9.0M2的事实.

I had the same issue, this is because this connector was not auto-injected. After I did this manually, I started having "wrong method signature" errors, which lead me to a fact that Maven 3.1.0 uses Aether 0.9.0M2.

切换到该版本对我而言不可行,并且没有示例,因此我现在开始使用Sonatype Aether.

Switching to this version didn't work out for me and there are no samples, so I'm now starting using Sonatype Aether.

这篇关于没有使用Eclipse Eether软件包通过Maven插件进行部署的连接器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆