How do I filter test resources in maven?

后端 未结 1 1592
天命终不由人
天命终不由人 2020-12-14 06:52

I have the following pom.xml. When I run mvn clean resources:testResources, my test resources aren\'t being filtered (replacing placeholders in res

1条回答
  •  [愿得一人]
    2020-12-14 07:29

    The resources and resource elements are for the resources:resources goal. resources:testResources uses testResources and testResource elements.

    The correct pom.xml is:

    
    
        4.0.0
        com.example
        foo
        0.0.1
        jar
        foo
    
        
            
                junit
                junit
                4.11
                test
            
        
    
        
            
                
                    src/test/resources
                    true
                
            
        
    
    

    0 讨论(0)
提交回复
热议问题