Using maven using non standard directory layout

后端 未结 3 1416
清酒与你
清酒与你 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:56

    You can change the default directory structure declared in the Super POM by overwriting them in your pom.

    For your example, e.g.

    src-java
    
      
        src-properties
      
    
    

    Maven will copy all resources to the jar file. If you want to include WEB-INF to the jar it would be best to move it into the specified resource directory. Otherwise you have to copy it by your own (with maven plugins) to the target directory - I suppose.

提交回复
热议问题