Generate an xml file with all dependencies with maven

前端 未结 4 1205
温柔的废话
温柔的废话 2020-12-28 21:47

I need to generate module.xml file for JBoss7 for a maven project which has a lot of jar-dependencies. What is the easiest way to do it? The file looks like:

4条回答
  •  有刺的猬
    2020-12-28 22:04

    You could try smartics-jboss-modules-maven-plugin

    It provides quite powerful dependency control:

    • exclusions and inclusions (also with wildcards) of project deps,
    • definition of deps to other JBoss modules,
    • transitive dependencies handling
    • and lot more

    With proper descriptor, generated module is ready to be copied 'as is' to JBoss 7.

    Example jboss-modules/foo.bar.foo-module.xml:

    
    
        
            
                
                    foo.*
                
                
                    org.*
                
            
            
                org.slf4j.slf4j-api
            
        
    
        
            
                
            
        
    
    

    Also set excludeDependencyManagementDependenciesInPomProject to true in smartic plugin configuration to avoid including 50 MB of deps :)

提交回复
热议问题