开发者

Can Nexus/Maven store 32 bit and 64 bit artifacts at the same time?

开发者 https://www.devze.com 2023-01-07 12:15 出处:网络
I\'m currently using Nexus as an artifact repository manager. Artifacts are deployed to Nexus automatically via a build machine running Hudson. The build machine is a 64 bit whereas my development mac

I'm currently using Nexus as an artifact repository manager. Artifacts are deployed to Nexus automatically via a build machine running Hudson. The build machine is a 64 bit whereas my development machine is 32 bit.

I would like to create a 32 bit build slave which would automatically build a 32 bit version of our code (开发者_高级运维e.g. code which uses JNI). Is there a way for Nexus to store both 32bit and 64bit artifacts?

At the moment it seems to me that the "last build wins" e.g. if I build a snapshot project on a 32 bit machine and then a 64 bit machine, the 64 bit version of the artifact is what projects try to download.


Better use two classifiers, for 32bit and 64bit. This way you get two artifacts into your maven repository.

On the 32bit machine you set the classifier to 32bit and on the other machine to 64bit.

You can set classifier in the Maven Jar Plugin.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号