从 Nexus 中检索分类的分发工件
我想使用 maven- assembly-plugin 提供复杂的多模块项目的特定于平台的发行版。我有一个顶级发行版,其中包括多个较低级别的发行版,其中一些是特定于平台的,并相应地包含在内。使用 maven 2.2.1 为不同平台构建工作正常,但是在部署后从 nexus(版本 1.9.0.1)检索不同版本是不可能的(我在其他地方找到了对此问题的引用,但不是在程序集的上下文中)。我只能检索最后一个版本。
假设我有 Linux 和 Win 的发行版。我有两个 hudson 作业,每个发行版各一个,最后将 zip 部署到 nexus。我面临的问题是,我可以在构建后在我的 nexus UI 中找到两个版本(在文件系统中查找两个预期的 zip 文件也在那里),但 nexus 元数据指向最后构建的版本(我使用唯一标识符)。因此,虽然我可以在 Nexus UI 中找到 distribution-win 和 distribution-linux,但我只能下载最后一个。这是关系中的错误还是我在这种情况下使用的分类器不正确?
I would like to provide platform specific distributions of my complex multi module project using the maven-assembly-plugin. I have a top level distribution that includes multiple lower level distributions some of which are platform specific and are included accordingly. Building with maven 2.2.1 for the different platforms works fine however retrieving the different versions from nexus (version 1.9.0.1) after deploying them is not possible (I found references to this problem elsewhere but not in the context of assemblies). I can only ever retrieve the last one build.
Let's say I have distribution for linux and win. I have two hudson jobs one for each distribution at the end of which the zips are deployed to nexus. The problem that I face is that I can find both versions in my nexus UI after they have been build (looking in the file system both expected zip files are also there) but the nexus metadata points to the one that was build last (I use uniqueIdentifiers). So while I can find both my distribution-win and distribution-linux in my nexus UI, I can only download the last one. Is this a bug in nexus or is my usage of classifiers in this scenario incorrect?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
抱歉收到垃圾邮件,我通过关闭唯一版本解决了问题。
Sorry for the spam, I fixed the problem by turning of the unique versions.