title: CXF codegen-plugin not working
body: <p>I'm trying to get the cxf-codegen-plugin to generate sources from my wsdl file.
  But Nothing happens when i execute <strong>mvn generate-source</strong> with eclipse luna.
  It looks like plugin itself not configured properly.</p>
  
  <h2>My pom.xml</h2>
  
  <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.webservice&lt;/groupId&gt;
      &lt;artifactId&gt;wsdlfirstwebservice&lt;/artifactId&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;name&gt;wsdlfirstwebservice Maven Webapp&lt;/name&gt;
      &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
      &lt;properties&gt;
          &lt;jdk.version&gt;1.8&lt;/jdk.version&gt;
          &lt;cxf.version&gt;3.0.4&lt;/cxf.version&gt;
          &lt;jaxb.version&gt;2.2&lt;/jaxb.version&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-frontend-jaxrs&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;dependency&gt;
              &lt;groupId&gt;com.sun.xml.bind&lt;/groupId&gt;
              &lt;artifactId&gt;jaxb-impl&lt;/artifactId&gt;
              &lt;version&gt;${jaxb.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.xml.bind&lt;/groupId&gt;
              &lt;artifactId&gt;jaxb-xjc&lt;/artifactId&gt;
              &lt;version&gt;${jaxb.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
              &lt;artifactId&gt;cxf-codegen-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.0.4&lt;/version&gt;
          &lt;/dependency&gt;
  
      &lt;/dependencies&gt;
      &lt;build&gt;
          &lt;finalName&gt;Wrsdlfirstwebservice&lt;/finalName&gt;
          &lt;pluginManagement&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;configuration&gt;
                          &lt;source&gt;${jdk.version}&lt;/source&gt;
                          &lt;target&gt;${jdk.version}&lt;/target&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
                  &lt;plugin&gt;
                      &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
                      &lt;version&gt;2.1&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;webXml&gt;src/main/webapp/WEB-INF/web.xml&lt;/webXml&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&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;${project.build.directory}/generated/cxf&lt;/sourceRoot&gt;
                                  &lt;wsdlOptions&gt;
                                      &lt;wsdlOption&gt;
                                          &lt;wsdl&gt;src/main/resources/CustomerOrders.wsdl&lt;/wsdl&gt;
                                          &lt;bindingFiles&gt;
                                              &lt;bindingFile&gt;src/main/resources/wsdl/binding.xml&lt;/bindingFile&gt;
                                          &lt;/bindingFiles&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;dependencies&gt;
                          &lt;dependency&gt;
                              &lt;groupId&gt;com.sun.xml.bind&lt;/groupId&gt;
                              &lt;artifactId&gt;jaxb-impl&lt;/artifactId&gt;
                              &lt;version&gt;${jaxb.version}&lt;/version&gt;
                          &lt;/dependency&gt;
                          &lt;dependency&gt;
                              &lt;groupId&gt;com.sun.xml.bind&lt;/groupId&gt;
                              &lt;artifactId&gt;jaxb-xjc&lt;/artifactId&gt;
                              &lt;version&gt;${jaxb.version}&lt;/version&gt;
                          &lt;/dependency&gt;
                      &lt;/dependencies&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <h2>My wsdl</h2>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;wsdl:definitions name="CustomerOrdersService"   
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
         xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
         xmlns:tns="http://www.wsdlfirstwebservice.com/customerorders"   
         targetNamespace="http://www.wsdlfirstwebservice.com/customerorders"&gt;
          &lt;!-- Types --&gt;
          &lt;wsdl:types&gt;
              &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
                  xmlns:tns="http://www.wsdlfirstwebservice.com/customerorders"
                  targetNamespace="http://www.wsdlfirstwebservice.com/customerorders"&gt;
  
                  &lt;xs:complexType name="order"&gt;
                      &lt;xs:sequence&gt;
                          &lt;xs:element name="id" type="xs:integer"/&gt;
                          &lt;xs:element name="product" type="tns:product" maxOccurs="unbounded"/&gt;
                      &lt;/xs:sequence&gt;
                  &lt;/xs:complexType&gt;
                  &lt;xs:complexType name="product"&gt;
                      &lt;xs:sequence&gt;
                          &lt;xs:element name="id" type="xs:integer" minOccurs="0"/&gt;
                          &lt;xs:element name="description" type="xs:string" minOccurs="0"/&gt;
                          &lt;xs:element name="quantity" type="xs:integer" minOccurs="0"/&gt;                   
                      &lt;/xs:sequence&gt;
                  &lt;/xs:complexType&gt;
                  &lt;xs:complexType name="getOrdersRequest"&gt;
                      &lt;xs:sequence&gt;
                          &lt;xs:element name="customerId" type="xs:integer" minOccurs="0"/&gt; 
                      &lt;/xs:sequence&gt;
                  &lt;/xs:complexType&gt;
                   &lt;xs:complexType name="getOrdersResponse"&gt;
                      &lt;xs:sequence&gt;
                          &lt;xs:element name="order" type="tns:order" minOccurs="0" maxOccurs="unbounded"/&gt; 
                      &lt;/xs:sequence&gt;
                  &lt;/xs:complexType&gt;
  
                  &lt;xs:element name="getOrdersRequest" type="tns:getOrdersRequest"/&gt;
                  &lt;xs:element name="getOrdersResponse" type="tns:getOrdersResponse"/&gt;
  
              &lt;/xs:schema&gt;
          &lt;/wsdl:types&gt;
  
          &lt;!-- Messages :
          These are analogous to method parameters and return types in java methods
          --&gt;
          &lt;wsdl:message name="getOrdersRequest"&gt;
              &lt;wsdl:part name="parameters" element="tns:getOrdersRequest"&gt;
              &lt;/wsdl:part&gt;
          &lt;/wsdl:message&gt;
          &lt;wsdl:message name="getOrdersResponse"&gt;
              &lt;wsdl:part name="parameters" element="tns:getOrdersResponse"&gt;
              &lt;/wsdl:part&gt;
          &lt;/wsdl:message&gt;
  
          &lt;!-- Port types 
          These are analogous to java methods.  Port types use message as input and/or output.
           --&gt;
          &lt;wsdl:portType name="CustomerOrdersPortType"&gt;
              &lt;wsdl:operation name="getOrders"&gt;
                  &lt;wsdl:input name="getOrdersRequest" message="tns:getOrdersRequest"&gt;&lt;/wsdl:input&gt;
                  &lt;wsdl:output name="getOrdersResponse" message="tns:getOrdersResponse"&gt;&lt;/wsdl:output&gt;
              &lt;/wsdl:operation&gt;
          &lt;/wsdl:portType&gt;
  
          &lt;!-- Bindings 
              This defines the message formats and protocol details for web service
           --&gt;
           &lt;wsdl:binding name="CustomerOrdersServiceSoapBinding" type="tns:CustomerOrdersPortType"&gt;
              &lt;soap:binding style="document"  transport="http://schemas.xmlsoap.org/soap/http"/&gt;
              &lt;wsdl:operation name="getOrders"&gt;
                  &lt;soap:operation soapAction="" style="document"/&gt;
                  &lt;wsdl:input name="getOrdersRequest"&gt;
                      &lt;soap:body use="literal"/&gt;
                  &lt;/wsdl:input&gt;
                  &lt;wsdl:output name="getOrdersResponse"&gt;
                      &lt;soap:body use="literal"/&gt;
                  &lt;/wsdl:output&gt;
              &lt;/wsdl:operation&gt;
           &lt;/wsdl:binding&gt;
  
           &lt;!-- Service
           Tells customer how to consume the service
            --&gt;
           &lt;wsdl:service name="CustomerOrdersService"&gt;
              &lt;wsdl:port name="CustomerOrdersPort" binding="tns:CustomerOrdersServiceSoapBinding"&gt;
                  &lt;soap:address location="http://localhost:8080/wsdlfirstwebservice/services/CustomerOrdersService"/&gt;
              &lt;/wsdl:port&gt;
           &lt;/wsdl:service&gt;
       &lt;/wsdl:definitions&gt;
  </code></pre>
  
  <h2>Console Output</h2>
  
  <blockquote>
    <p>Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9;
    2014-02-14T23:07:52+05:30) Maven home:
    D:\JSPractice\wsdlfirstwebservice\EMBEDDED Java version: 1.8.0_60,
    vendor: Oracle Corporation Java home: C:\Program Files
    (x86)\Java\jdk1.8.0_60\jre Default locale: en_IN, platform encoding:
    Cp1252 OS name: "windows 7", version: "6.1", arch: "x86", family:
    "dos" [INFO] Error stacktraces are turned on. [DEBUG] Reading global
    settings from EMBEDDED\conf\settings.xml [DEBUG] Reading user settings
    from C:\Users\D.Sama.m2\settings.xml [DEBUG] Using local repository
    at C:\Users\D.Sama.m2\repository [DEBUG] Using manager
    EnhancedLocalRepositoryManager with priority 10.0 for
    C:\Users\D.Sama.m2\repository [INFO] Scanning for projects... [DEBUG]
    Extension realms for project
    com.webservice:wsdlfirstwebservice:war:0.0.1-SNAPSHOT: (none) [DEBUG]
    Looking up lifecyle mappings for packaging war from
    ClassRealm[plexus.core, parent: null] [DEBUG] === REACTOR BUILD PLAN
    ================================================ [DEBUG] Project: com.webservice:wsdlfirstwebservice:war:0.0.1-SNAPSHOT [DEBUG] Tasks:<br>
    [generate-sources] [DEBUG] Style:   Regular [DEBUG]
    ======================================================================= [INFO]  [INFO] Using the builder
    org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder
    with a thread count of 1 [INFO]<br>
    [INFO]
    ------------------------------------------------------------------------ [INFO] Building wsdlfirstwebservice Maven Webapp 0.0.1-SNAPSHOT [INFO]
    ------------------------------------------------------------------------ [DEBUG] Lifecycle default -> [validate, initialize, generate-sources,
    process-sources, generate-resources, process-resources, compile,
    process-classes, generate-test-sources, process-test-sources,
    generate-test-resources, process-test-resources, test-compile,
    process-test-classes, test, prepare-package, package,
    pre-integration-test, integration-test, post-integration-test, verify,
    install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean,
    post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site,
    site-deploy] [DEBUG] === PROJECT BUILD PLAN
    ================================================ [DEBUG] Project:       com.webservice:wsdlfirstwebservice:0.0.1-SNAPSHOT [DEBUG] Dependencies
    (collect): [] [DEBUG] Dependencies (resolve): [] [DEBUG] Repositories
    (dependencies): [central (<a href="http://repo.maven.apache.org/maven2" rel="nofollow">http://repo.maven.apache.org/maven2</a>,
    releases)] [DEBUG] Repositories (plugins)     : [central
    (<a href="http://repo.maven.apache.org/maven2" rel="nofollow">http://repo.maven.apache.org/maven2</a>, releases)] [DEBUG]
    ======================================================================= [INFO]
    ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO]
    ------------------------------------------------------------------------ [INFO] Total time: 0.101 s [INFO] Finished at:</p>
    
    <h2>2016-09-11T14:27:19+05:30 [INFO] Final Memory: 4M/15M [INFO]</h2>
  </blockquote>