title: Maven cxf-codegen-plugin does not generate source
body: <p>I've researched other answers to this question but I haven't been able to fix my specific issue yet. I'm trying to generate source client java files using Maven and the cxf-codegen-plugin. When I run mvn generate-sources it tells me BUILD SUCCESS but Nothing to generate.  Any help is appreciated.  Here is my pom:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
    &lt;groupId&gt;com.tfs.common&lt;/groupId&gt;
    &lt;artifactId&gt;SpringCXF1&lt;/artifactId&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  
    &lt;name&gt;SpringCXF1 Maven Webapp&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
    &lt;properties&gt;
        &lt;cxf.version&gt;2.7.3&lt;/cxf.version&gt;
        &lt;project.build.sourceencoding&gt;UTF-8&lt;/project.build.sourceencoding&gt;
    &lt;/properties&gt;
  
    &lt;dependencies&gt;
  
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;3.8.1&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
         &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
         &lt;artifactId&gt;cxf-rt-frontend-jaxws&lt;/artifactId&gt;
         &lt;version&gt;${cxf.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
         &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
         &lt;artifactId&gt;cxf-rt-transports-http&lt;/artifactId&gt;
         &lt;version&gt;${cxf.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
    &lt;/dependencies&gt;
  
    &lt;build&gt;
      &lt;finalName&gt;SpringCXF1&lt;/finalName&gt;
        &lt;plugins&gt;
  
        &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                          &lt;version&gt;2.3.2&lt;/version&gt;
          &lt;configuration&gt;
              &lt;source&gt;1.6&lt;/source&gt;
              &lt;target&gt;1.6&lt;/target&gt;
          &lt;/configuration&gt;
      &lt;/plugin&gt;
  
         &lt;!-- Generate Java classes from WSDL during in generate-sources phase --&gt;
         &lt;plugin&gt;
          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
          &lt;artifactId&gt;cxf-codegen-plugin&lt;/artifactId&gt;
          &lt;version&gt;${cxf.version}&lt;/version&gt;
          &lt;executions&gt;
           &lt;execution&gt;
            &lt;id&gt;generate-sources&lt;/id&gt;
            &lt;phase&gt;generate-sources&lt;/phase&gt;
            &lt;configuration&gt;
             &lt;sourceroot&gt;${basedir}/src/main/java&lt;/sourceroot&gt;
             &lt;wsdloptions&gt;
              &lt;wsdloption&gt;
               &lt;wsdl&gt;${basedir}/src/main/resources/HostavailableService.wsdl&lt;/wsdl&gt;
               &lt;extraargs&gt;
                   &lt;extraarg&gt;-verbose&lt;/extraarg&gt;
                    &lt;extraarg&gt;-client&lt;/extraarg&gt;
               &lt;/extraargs&gt;
              &lt;/wsdloption&gt;
             &lt;/wsdloptions&gt;
            &lt;/configuration&gt;
            &lt;goals&gt;
             &lt;goal&gt;wsdl2java&lt;/goal&gt;
            &lt;/goals&gt;
           &lt;/execution&gt;
          &lt;/executions&gt;
         &lt;/plugin&gt;
  
         &lt;!-- Add generated source --&gt;
         &lt;plugin&gt;
          &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
          &lt;artifactId&gt;build-helper-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;1.7&lt;/version&gt;
          &lt;executions&gt;
           &lt;execution&gt;
            &lt;id&gt;add-source&lt;/id&gt;
            &lt;phase&gt;generate-sources&lt;/phase&gt;
            &lt;goals&gt;
             &lt;goal&gt;add-source&lt;/goal&gt;
            &lt;/goals&gt;
            &lt;configuration&gt;
             &lt;sources&gt;
               &lt;source&gt;${basedir}/src/main/java&lt;/source&gt;
             &lt;/sources&gt;
            &lt;/configuration&gt;
           &lt;/execution&gt;
          &lt;/executions&gt;
         &lt;/plugin&gt;
  
          &lt;plugin&gt;
           &lt;groupId&gt;org.eclipse.m2e&lt;/groupId&gt;
           &lt;artifactId&gt;lifecycle-mapping&lt;/artifactId&gt;
           &lt;version&gt;1.0.0&lt;/version&gt;
           &lt;configuration&gt;
            &lt;lifecyclemappingmetadata&gt;
             &lt;pluginexecutions&gt;
              &lt;pluginexecution&gt;
               &lt;pluginexecutionfilter&gt;
                &lt;groupid&gt;org.apache.cxf&lt;/groupid&gt;
                &lt;artifactid&gt;cxf-codegen-plugin&lt;/artifactid&gt;
                &lt;versionrange&gt;[2.3.3,)&lt;/versionrange&gt;
                &lt;goals&gt;
                 &lt;goal&gt;wsdl2java&lt;/goal&gt;
                &lt;/goals&gt;
               &lt;/pluginexecutionfilter&gt;
               &lt;action&gt;
                &lt;execute&gt;
               &lt;/execute&gt;&lt;/action&gt;
              &lt;/pluginexecution&gt;
             &lt;/pluginexecutions&gt;
            &lt;/lifecyclemappingmetadata&gt;
            &lt;lifecycleMappingMetadata&gt;
              &lt;pluginExecutions&gt;
                  &lt;pluginExecution&gt;
                      &lt;pluginExecutionFilter&gt;
                          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
                          &lt;artifactId&gt;cxf-codegen-plugin&lt;/artifactId&gt;
                          &lt;versionRange&gt;[2.7.3,)&lt;/versionRange&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;wsdl2java&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/pluginExecutionFilter&gt;
                      &lt;action&gt;
                          &lt;ignore&gt;&lt;/ignore&gt;
                      &lt;/action&gt;
                  &lt;/pluginExecution&gt;
                  &lt;pluginExecution&gt;
                      &lt;pluginExecutionFilter&gt;
                          &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                          &lt;artifactId&gt;
                              build-helper-maven-plugin
                          &lt;/artifactId&gt;
                          &lt;versionRange&gt;[1.7,)&lt;/versionRange&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;add-source&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/pluginExecutionFilter&gt;
                      &lt;action&gt;
                          &lt;ignore&gt;&lt;/ignore&gt;
                      &lt;/action&gt;
                  &lt;/pluginExecution&gt;
              &lt;/pluginExecutions&gt;
            &lt;/lifecycleMappingMetadata&gt;
           &lt;/configuration&gt;
          &lt;/plugin&gt;
         &lt;/plugins&gt;
  
    &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>Here is the output when running mvn generate-sources:</p>
  
  <pre><code>[INFO] Scanning for projects...
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building SpringCXF1 Maven Webapp 0.0.1-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [INFO] 
  [INFO] --- cxf-codegen-plugin:2.7.3:wsdl2java (generate-sources) @ SpringCXF1 ---
  [INFO] Nothing to generate
  [INFO] 
  [INFO] --- build-helper-maven-plugin:1.7:add-source (add-source) @ SpringCXF1 ---
  [INFO] Source directory: /Users/dmattrm/Documents/DevEnvironment/TFS_Maven2/SpringCXF1/src/main/java added.
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESS
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 1.505s
  [INFO] Finished at: Tue Feb 18 16:54:04 CST 2014
  [INFO] Final Memory: 5M/81M
  [INFO] ------------------------------------------------------------------------
  </code></pre>