package org.codehaus.mojo.sqlj;

import java.io.File;

import org.apache.maven.plugin.AbstractMojo;

/**
 * 
 * @author karltdav
 *
 */
public abstract class AbstractSqljMojo
    extends AbstractMojo
{
    /**
     * Location for generated source files.
     * 
     * @parameter expression="${sqlj.generatedSourcesDirectory}"
     *            default-value="${project.build.directory}/generated-sources/sqlj"
     * @required
     */
    private File generatedSourcesDirectory;
    
    /**
     * Location for generated .ser files.
     * @parameter expression="${sqlj.generatedResourcesDirectory}"
     *            default-value="${project.build.directory}/generated-resources/sqlj"
     */
    private File generatedResourcesDirectory;
    
   
    protected File getGeneratedSourcesDirectory()
    {
        return generatedSourcesDirectory;
    }
    
    protected File getGeneratedResourcesDirectory()
    {
        return generatedResourcesDirectory;
    }

}

package org.codehaus.mojo.sqlj;

import java.io.File;

import org.apache.maven.plugin.AbstractMojo;

/**
 * 
 * @author karltdav
 *
 */
public abstract class AbstractSqljMojo
    extends AbstractMojo
{
    /**
     * Location for generated source files.
     * 
     * @parameter expression="${sqlj.generatedSourcesDirectory}"
     *            default-value="${project.build.directory}/generated-sources/sqlj"
     */
    private File generatedSourcesDirectory;
    
    /**
     * Location for generated .ser files.
     * @parameter expression="${sqlj.generatedResourcesDirectory}"
     *            default-value="${project.build.directory}/generated-resources/sqlj"
     */
    private File generatedResourcesDirectory;
    
   
    protected File getGeneratedSourcesDirectory()
    {
        return generatedSourcesDirectory;
    }
    
    protected File getGeneratedResourcesDirectory()
    {
        return generatedResourcesDirectory;
    }

}

set params to optional and be consistent