Using maven using non standard directory layout

后端 未结 3 1419
清酒与你
清酒与你 2020-12-15 00:01

I am trying to apply maven to an existing project which already has a directory structure in place. All I can find from previous question is the following.

Maven dir

3条回答
  •  无人及你
    2020-12-15 00:50

    I guess you need to have something similar to below.

    Seeing WEB-INF, I assume you want to build a war. Maven war plugin does this. You will need to configure this a bit since the folder structure is non-standard - for instance you may need to specify the location of web.xml using webXml property. These are documented in the usage page.

    
        src-java
        ...
        
          
            src-properties
          
        
        ...
        
                
                    org.apache.maven.plugins
                    maven-war-plugin
                    
                        WEB-INF
                        ...
                    
                
         
    
    

提交回复
热议问题