We have modularized our API into some independent components. Independent meaning these can be built via Maven and used as dependencies for other projects such as webapps.Now, to use this API, there needs to be an intermediate processing class which does a translation of the client data model into the callee (component) data model. The question is does this handler/processor class belong and need to be packaged along with the client application JAR/WAR or is it part of the component JAR.What is the convention?
Into which artifact does one package intermediate classes?
java;design
I've typically used a separate module for this. That way it's also versioned alongside the client and the server components.