How do you generate module dependencies in MANIFEST.MF for JBoss AS 7 with maven?

前端 未结 2 1383
遇见更好的自我
遇见更好的自我 2021-01-30 11:11

In JBoss AS 7, a Web application that depends on libraries contained in the AS, must declare those dependencies in META-INF/MANIFEST.MF like this:

Dependencies:          


        
2条回答
  •  再見小時候
    2021-01-30 11:45

    Those dependencies are declared by names which maven artifacts don't have any mappings to. You probably could keep groupId in sync with jboss module names but I'm not sure if it's a good idea. And I still can't think of any automated solution.

    But there is a place where you can manage the configuration by hand, as described in one of the sources you provided in your question:

       
           ...
           
             
               org.apache.maven.plugins
               maven-war-plugin
               
                  
                     
                        org.slf4j
                       
                  
               
                
           
        
    

    I hope someone comes up with a plugin to make it less cumbersome.

提交回复
热议问题