maven linux 64 下载,java – maven命名约定32 vs 64位和windows vs linux

本文探讨了如何为4个不同平台的库(32/64位Windows/Linux)选择Maven坐标名,介绍了classifier的作用,并对比了单一工件与分类器的使用策略。标准命名方法和项目管理的最佳实践被讨论。
摘要由CSDN通过智能技术生成

我有一个有4个不同版本的库:32位和64位窗口以及32位和64位Linux.我试图找出每个库在将它们上传到maven存储库时的名称.现在我有:

com.lib-name.win

lib-name

x86

10

com.lib-name.win

lib-name

x86-64

10

com.lib-name.nix

lib-name

x86

10

com.lib-name.nix

lib-name

x86-64

10

在这种情况下,是否有更标准的方法为maven中的罐子命名?还是我走在正确的轨道上?

解决方法:

classifier:

The classifier allows to distinguish artifacts that were built from the same POM but differ in their content. It is some optional and arbitrary string that – if present – is appended to the artifact name just after the version number.

As a motivation for this element, consider for example a project that offers an artifact targeting JRE 1.5 but at the same time also an artifact that still supports JRE 1.4. The first artifact could be equipped with the classifier jdk15 and the second one with jdk14 such that clients can choose which one to use.

后一段建议他们打算使用分类器来执行您想到的任务.

但是,根据我的经验,我遇到的大多数项目都会为项目的每个静脉发布单独的工件.我个人更喜欢这种方法,但这是一个品味问题.

标签:java,maven,dependencies

来源: https://codeday.me/bug/20190704/1372503.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值