Maven : copy files without subdirectory structure

前端 未结 2 1506
醉话见心
醉话见心 2020-12-08 14:39

I am trying to use Maven to move all the *.xsd files contained in a given folder to another one, but without the source subdirectory structure.

This is what I have s

2条回答
  •  借酒劲吻你
    2020-12-08 15:35

    There is a way.. and its really monotonous and cumbersome. Implement it only if you want to be completely mavenized. Sean's answer is the easiest solution.

    The problem is you have to specify each and every directory and then use wild cards for the files inside.

    
    copy-jars
    process-sources
    
        copy-resources
    
    
        ${basedir}/target/classes
        
            
                ${basedir}/resources
                
                    xyz.jar
                
                 
            
                ${basedir}/as-u-like-it
                
                    abc.jar
                
                 
    
    

提交回复
热议问题