Copying multiple resource directories to independent target directories with maven

前端 未结 9 1443
终归单人心
终归单人心 2020-12-05 04:03

The Maven resources plugin:

This goal requires that you configure the resources to be copied, and specify the outputDirectory.

C

9条回答
  •  时光取名叫无心
    2020-12-05 04:32

    Maven hides everything to make it easier to code. There are several ways you can achieve this.

    1. Edit the default execution in Resources plugin. (Easiest) This also can be written using include tag or different resources
    2. Write different executions in Resources plugin.
    3. Use Antrun plugin. (You might as well write the whole build in ant)
    4. Maven Copy-rename plugin.
    5. And many other ways that I am not mentioning here....

    Edit the default plugin--

    
        
            ${basedir}
            
                blah
                ughh
            
        
    
    
        
            maven-resources-plugin
            
                ${basedir}/target
            
        
    
    

提交回复
热议问题