AttachmentClassifier - 如何获取 zip 版本?
是否可以获得某些模块的 zip 版本(在本例中为 module:core-dll) 该 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您收到此错误是因为
classifier
与打包type
不同。 pom 参考提供了详细信息,但足以说,程序集插件需要core -dll-zip-.jar
而不是core-dll-.zip
至于您的要求,不确定为什么您使用
moduleSet
。也许您应该考虑使用dependencySet
。在这种情况下,假设正确定义了依赖项(使用正确的打包类型),我相信程序集插件将包含它。不过我还没试过。You are getting this error because
classifier
is not the same as packagingtype
. The pom reference gives the details, but suffice to say, the assembly plugin is expectingcore-dll-zip-<version>.jar
and notcore-dll-<version>.zip
As for your requirement, not sure why you are using a
moduleSet
. Perhaps you should consider usingdependencySet
. In this case, assuming thedependency
is defined correctly (with the correct packagingtype
), I believe the assembly plugin will include it. I haven't tried it though.