Renaming resources in Maven

后端 未结 5 1509
谎友^
谎友^ 2020-12-02 19:43

I am trying to find a way to copy a resource file to a new name in the target directory in a Maven build. Pretty much everything I have found while searching suggests workar

5条回答
  •  醉酒成梦
    2020-12-02 20:15

    I had the same problem using the copy-rename-maven-plugin solved my problem

        
      ...
      
        
          
            com.coderplus.maven.plugins
            copy-rename-maven-plugin
            1.0
            
              
                copy-file
                generate-sources
                
                  copy
                
                
                  src/someDirectory/test.environment.properties
                  target/someDir/environment.properties
                
              
            
          
        
      
    
    

提交回复
热议问题