Modules: Is there an automated way to create module.xml files?
Greetings,
My company is using JBoss modules to deploy software and I need to create module.xml files for each of the dependencies we use so the software can work. What I was wondering is if there is some way to create these files automatically. While i have the Jar dependency tree, I dont have the package dependency tree and I have no easy way of going to get it. I would have to spelunk into each jar and determine that. Any suggestions for making my life easier?
Thanks in advance.
Responses
Hi Robert
Is the issue that you don't know the package dependency tree to add said packages to the module.xml or that you have to have manually create a module.xml for every dependency? Or both? Can you give me an example of what it is you are trying to do because I'm not sure I completely understand.
In the meantime, does this help? https://access.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/6.1/html-single/Administration_and_Configuration_Guide/index.html#Add_a_module_to_all_deployments
Also, perhaps take a look at Dynamic Modules? https://access.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/6.1/html-single/Administration_and_Configuration_Guide/index.html#chap-Configuring_Modules
Thanks
Mus
Hi Robert
I don't think there's anything we've got out there that can do this, I found a few other questions around the same thing being asked here [1]. There's a few other pages here and there asking similar things but no concrete answers and nothing that is supported unfortunately.
I'll ask around to see if there's any other suggestions but if you want us to look in to this some more and possibly raise this as a Feature Request we can do that (and I actually think this is a useful idea) but we'll need to capture your requirements in full and thus I'd request you raise a support case with us so we can track it internally properly too.
Regards
Mus
[1] http://stackoverflow.com/questions/7755255/generate-an-xml-file-with-all-dependencies-with-maven
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
