Modules: Is there an automated way to create module.xml files?

Latest response

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

 

I will definitely read the linked docs. The issue is really that I have a maven dependency tree that are not currently modules in JBoss. Now I would like them to be modules to take advantage of the features of modules. However, I am loathe to go create 3 dozen module files for every dependency in my tree. Furthermore, I dont want to just have my camel modules depend on the main slot of the built in modules but rather depend on the actual slot name for the version they are. That way I dont get odd errors at runtime. Again, that would require me to create module files for all three dozen dependencies. If there is a way I could generate the module files and have the appropriate jars moved to the appropriate modules in the tree, that would be very helpful. What I am looking for is something like a maven target that I could call like: mvn generate-dependency-modules

Thanks a bunch

oops sorry about double post

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

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.