AttachmentClassifier - 如何获取 zip 版本?

发布于 2024-12-22 17:54:14 字数 1074 浏览 0 评论 0 原文

是否可以获得某些模块的 zip 版本(在本例中为 module:core-dll) 该 zip 已部署到存储库:

http://repo01:8080/archiva/repository/snapshots/../core-dll/distribution/1.0-SNAPSHOT/core-dll-1.0-20111114.163405-1.zip

程序集。 xml:

<moduleSets>
    <moduleSet>
        <includes>
            <include>*:core-dll</include>
        </includes>
        <binaries>
            <unpack>false</unpack>
            <includeDependencies>false</includeDependencies>
            <attachmentClassifier>zip</attachmentClassifier>
            <outputDirectory>installation_files\plugins</outputDirectory>
        </binaries>
    </moduleSet>
</moduleSets> 

我收到错误:

Assembly: package is not configured correctly: 
Cannot find attachment with classifier: zip in module project: .. core-dll

Is it possible to get the zip version of some module (in this example case module:core-dll)
The zip is deployed to the repository:

http://repo01:8080/archiva/repository/snapshots/../core-dll/distribution/1.0-SNAPSHOT/core-dll-1.0-20111114.163405-1.zip

assembly.xml:

<moduleSets>
    <moduleSet>
        <includes>
            <include>*:core-dll</include>
        </includes>
        <binaries>
            <unpack>false</unpack>
            <includeDependencies>false</includeDependencies>
            <attachmentClassifier>zip</attachmentClassifier>
            <outputDirectory>installation_files\plugins</outputDirectory>
        </binaries>
    </moduleSet>
</moduleSets> 

Error I am getting:

Assembly: package is not configured correctly: 
Cannot find attachment with classifier: zip in module project: .. core-dll

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

白况 2024-12-29 17:54:14

您收到此错误是因为classifier 与打包type 不同。 pom 参考提供了详细信息,但足以说,程序集插件需要 core -dll-zip-.jar 而不是 core-dll-.zip

至于您的要求,不确定为什么您使用 moduleSet 。也许您应该考虑使用dependencySet。在这种情况下,假设正确定义了依赖项(使用正确的打包类型),我相信程序集插件将包含它。不过我还没试过。

You are getting this error because classifier is not the same as packaging type. The pom reference gives the details, but suffice to say, the assembly plugin is expecting core-dll-zip-<version>.jar and not core-dll-<version>.zip

As for your requirement, not sure why you are using a moduleSet. Perhaps you should consider using dependencySet. In this case, assuming the dependency is defined correctly (with the correct packaging type), I believe the assembly plugin will include it. I haven't tried it though.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文