Maven and Test Config directory

Tuesday, April 10, 2012 Posted by Suresh Payankannur
As per Maven, the main configuration files are picked up from the standard, default directory src/main/config. But there is no corresponding directory for the test configurations. For example, property files, spring xml configurations etc. that are needed for only unit testing.

This necessitates these directories to be configured in the pom.xml


...

    
      
        
        true
        ${basedir}/src/test/config
        
          **/*.properties
          **/*.xml
        
      
      
        /resources
        ${basedir}/src/test/resources
        
          **/*
        
      
    
...  

Labels:

Post a Comment