msgpack android,MessagePack For Android

Hi!

Again, I'm glad you like it :).

Regarding the proposed structure - I'm all for modularization of course. However, I'm afraid I haven't encountered the sort of approach you propose here. Usually what I've seen in configurations like this is one of the two:

Either split the platform-specific code into separate projects, and have two effective dependencies, i.e. something like:

msgpack-java/

msgpack-core/

# a core library of msgpack-java

# includes org.msgpack.{packer,template,type,unpacker} packages

msgpack-template-generator/

# includes org.msgpack.template.builder packages

msgpack-default/

# all-in-one project

msgpack-beans/

# includes Beans library of the existing msgpack-java

msgpack-android/

# includes custom beans (your code is here)

...

or, create two profiles activated by a property, one adding an "android" classifier to the build artifact, when applicable, something like this (in the POM of msgpack-java):

general

!android.build

android

android.build

org.apache.maven.plugins

maven-jar-plugin

android

The problems I see with the original approach:

I'm afraid there would have to be some configuration duplication between msgpack-default and msgpack-android.

The way I understand it, Maven interprets subfolders with a POM as modules. All modules of a project (msgpack-java, in this case) are built whenever it is built - but the reverse does not hold. So, you would have to trigger the build and install of msgpack-core etc. manually when building either msgpack-default or msgpack-android.

But I may be wrong, feel free to correct me in this case :).

Cheers,

Mikołaj

PS. By the way, how should I properly address you on a "first-name" basis?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值