Christian,
Well, I don’t claim to understand everything you’ve written here. Our attempts have been pretty straightforward configuration of the jar file into the “modules” directory under the correct sub-directory paths, and with the addition of a module.xml file. Unfortunately, I tend to acquire pieces of knowledge as needed rather than having a more complete knowledge of what is going on such as you have. In other words, I generally learn which buttons to press without always understanding why I’m pressing them.
My failings aside, I’m trying to understand what you’re saying here. My goal is to avoid having to include (i.e. use the “compile” scope in Maven) these classes in the process war files. The classes can get quite large and that makes testing more difficult. Also, we want everyone to use a consistent set of them and while we’ve put them in our Maven repository, we can’t guarantee that everyone will always download and compile with a consistent version. We want everyone to only use the one version on the WildFly server.
At a practical level, I’m trying to understand what you’re saying. So, in my case I have a custom class (SendCamundaProcessHistory) that allows us to create Camunda history records completely separate from Camunda (we have the history level set to “none”). We also have a class (SendCamundaProcessHistoryActivityListener) which implements an activity listener that invokes the methods in the SendCamundaProcessHistory class at the appropriate places as the process executes. Today, both of these classes are set as dependencies in the Maven pom.xml with a “compile” scope. We want to change that to “provided”.
So, we have current manifest entries like these in the plugin blocks:
<manifestEntries>
<Dependencies>org.camunda.bpm.camunda-engine-plugin-spin, org.camunda.spin.camunda-spin-dataformat-json-jackson</Dependencies>
</manifestEntries>
Are you saying that we should be putting the custom classes into the manifest entries like above? For example, we would add “com.myco.camunda.history.SendCamundaProcessHistory” to the manifest list?
<manifestEntries>
<Dependencies>org.camunda.bpm.camunda-engine-plugin-spin, org.camunda.spin.camunda-spin-dataformat-json-jackson, com.myco.camunda.history.SendCamundaProcessHistory</Dependencies>
</manifestEntries>
I did try something like this and put in entries in the section of the standalone.xml. It completely blew up the Camunda instance (well, that’s a bit dramatic, Camunda and all other wars wouldn’t deploy and I had to manually remove all of my process wars, revert the configuration, restart WildFly, and redeploy all the processes).
I know I’m asking alot, but I what I really need is a recipe for this, with an example. If you know of one, let me know, please.
Thanks for the prompt reply.
Michael