title: cxf-codegen-plugin failed while parsing wsdl (JSXB: undefined attribute 'xml:lang')
body: <p>I try to generate java code from wsdl for Exchange Web Service. </p>
  
  <p>I use apache cxf-codegen-plugin configured as:</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;name&gt;ews-api&lt;/name&gt;
    &lt;groupId&gt;net.retn&lt;/groupId&gt;
    &lt;artifactId&gt;ews-api&lt;/artifactId&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;
  
    &lt;properties&gt;
      &lt;encoding&gt;UTF-8&lt;/encoding&gt;
      &lt;cxf.version&gt;3.1.6&lt;/cxf.version&gt;
    &lt;/properties&gt;
  
    &lt;build&gt;
      &lt;plugins&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;dependencies&gt;
            &lt;dependency&gt;
                &lt;groupId&gt;net.retn&lt;/groupId&gt;
                &lt;artifactId&gt;cxf-ews-authenticator&lt;/artifactId&gt;
                &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
            &lt;/dependency&gt;
          &lt;/dependencies&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.sourceDirectory}/&lt;/sourceRoot&gt;
                  &lt;wsdlOptions&gt;
                    &lt;wsdlOption&gt;
                      &lt;wsdl&gt;https://server/EWS/Services.wsdl&lt;/wsdl&gt;
                      &lt;extraargs&gt;
                        &lt;extraarg&gt;-b&lt;/extraarg&gt;
                        &lt;extraarg&gt;${basedir}/src/main/resources/async_binding.xml&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;/plugins&gt;
    &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>But when I execute: mvn compile
  An error is thrown:</p>
  
  <pre><code>[ERROR] https://server/EWS/types.xsd [0:0]: undefined attribute 'xml:lang'
  org.xml.sax.SAXParseException; systemId: https://server/EWS/types.xsd; lineNumber: 0; columnNumber: 0; undefined attribute 'xml:lang'
          at com.sun.xml.xsom.impl.parser.ParserContext$1.reportError(ParserContext.java:180)
          at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.reportError(NGCCRuntimeEx.java:175)
          at com.sun.xml.xsom.impl.parser.DelayedRef.resolve(DelayedRef.java:110)
          at com.sun.xml.xsom.impl.parser.DelayedRef.run(DelayedRef.java:85)
          at com.sun.xml.xsom.impl.parser.ParserContext.getResult(ParserContext.java:135)
          at com.sun.xml.xsom.parser.XSOMParser.getResult(XSOMParser.java:214)
          at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:538)
          at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:269)
          at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:95)
          at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:460)
          at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:727)
          at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:271)
          at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:165)
          at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:416)
          at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
          at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
          at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
          at org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.generate(WSDL2JavaMojo.java:415)
          at org.apache.cxf.maven_plugin.AbstractCodegenMoho.execute(AbstractCodegenMoho.java:260)
          at org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:512)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
          at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
          at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
          at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:606)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  </code></pre>
  
  <p>types.xsd:</p>
  
  <pre><code>&lt;xs:schema xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:tns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xs="http://www.w3.org/2001/XMLSchema" id="types" elementFormDefault="qualified" version="Exchange2013_SP1" targetNamespace="http://schemas.microsoft.com/exchange/services/2006/types"&gt;
  &lt;xs:import namespace="http://www.w3.org/XML/1998/namespace"/&gt;
  .....
  &lt;xs:complexType name="ReplyBody"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element minOccurs="0" maxOccurs="1" name="Message" type="xs:string"/&gt;
  &lt;/xs:sequence&gt;
  &lt;xs:attribute ref="xml:lang" use="optional"/&gt;
  &lt;/xs:complexType&gt;
  .....
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>Anyone try to do something like this? What is a problem?</p>