create directory when needed in maven

后端 未结 3 1749
时光取名叫无心
时光取名叫无心 2020-12-05 06:13

I am using maven-exec-plugin to generate java sources of Thrift. It invokes the external Thrift compiler and using -o to specify the output directory, \"target/generated-sou

3条回答
  •  攒了一身酷
    2020-12-05 07:10

    If you would like to prepare such folder structure somewhere in your project and then copy to place you want, use maven-resource plugin to do that:

    
        org.apache.maven.plugins
        maven-resources-plugin
       
           
               copy-folder
               package
               
                   copy-resources
               
               
                   ${project.build.directory}
                   
                       
                        false
                        ${project.basedir}/src/main/resources/folders
                       
                   
               
        
       
    
    

提交回复
热议问题