Keep permissions on files with Maven resources:testResources

后端 未结 3 1100
被撕碎了的回忆
被撕碎了的回忆 2020-12-29 20:56

Is it possible to keep permissions on file with Maven resources:testResources? My use case is a Selenium binary driver that I put in /src/test/resources that I would like to

3条回答
  •  轮回少年
    2020-12-29 21:40

    This seems to be a bug in the Maven Resource Plugin

    If you are using the Maven Assembly Plugin, you can configure the file permissions there.

    If not, you might consider a workaround. You could do this via Ant by doing something like this:

    
        org.apache.maven.plugins
        maven-antrun-plugin
        1.6
        
            
                process-test-classes
                process-test-classes
                
                    
                        
                    
                
                
                    run
                
            
        
    
    

提交回复
热议问题