Maven resource filtering for single file

前端 未结 3 685
逝去的感伤
逝去的感伤 2020-12-30 22:34

In pom.xml I have defined :


    org.apache.maven.plugins
    maven-resources-plugin         


        
3条回答
  •  误落风尘
    2020-12-30 23:10

    I don't know why Gabor's solution did not work, but I managed to solve this way:

    Firstly I removed nonFilteredFileExtension tag:

    xml
    

    Then modified my resources this way:

    
        src/main/resources
        true
        
            **/myxml.xml
        
    
    
    
        src/main/resources
        false
        
            **/*.xml
        
    
    

    Now my single xml file is filtered and other is leaved untouched by filter.

提交回复
热议问题