Jboss AS7 - How to create module.xml for external libraries?

后端 未结 1 727
隐瞒了意图╮
隐瞒了意图╮ 2021-01-27 20:01

I have multiple .ear projects which use multiple libraries. So I need to make those as common and add those in the module. So Is there any easy way to create module.xml as I nee

1条回答
  •  迷失自我
    2021-01-27 20:38

    No need to create 'module.xml' for each library.

    Create a single module and put all libraries there and mention it in resource-root. Also mention any module dependencies (if no, ignore it).

    Example module.xml

    
    
    
        
            
        
    
        
            
            
            
            
            
            
            
            
            
            
        
    
        
            
        
    
    

    Copy your modules to '$JBOSS/modules' directory which makes it as global module.

    Refer: How can I use the external jars on JBoss 7?

    0 讨论(0)
提交回复
热议问题