Maven: Combining multiple module jars into one war file?

前端 未结 1 387
庸人自扰
庸人自扰 2020-12-05 03:37

I have a project babybird which has 3 components persistence, business and service

in babybird\'s

1条回答
  •  臣服心动
    2020-12-05 04:06

    That's fairly simple. Create another module named web or similar:

    
        persistence
        business
        service
        web
    
    

    web module should depend on all others:

    
        
            ...
            persistence
        
        ...
    
    

    and have war packaging:

    war
    

    You'll also need web.xml in /src/main/webapp/WEB-INF. That's it.

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