Suresh Payankannur

Showing posts with label maven. Show all posts
Showing posts with label maven. Show all posts

Tuesday, April 10, 2012

Maven and Test Config directory

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
        
          **/*
        
      
    
...  

Tuesday, September 6, 2011

Maven Again!

Recently I was trying to setup a brand new project with the latest maven version, 3.0.3. I wasnt able to generate maven site and constantly getting errors. After spending some time, realized that the old <reporting> configuration doesn't work any more! Here is the link for configuring new site plugin on new Maven 3.0.3:

https://cwiki.apache.org/MAVEN/maven-3x-and-site-plugin.html

BTW, a lot of documentation on the main maven site still points to old style configurations, which wont work with new maven version!

Blog Archive

Scroll To Top