title: Unable to create java classes using codehaus.mojo jaxb2-maven-plugin
body: <p>I have a spring based web application in which I am trying to consume a SOAP service. I am using jaxb2-maven-plugin(org.codehaus.mojo) for that. However I see an empty jaxb2 folder which is crated under target and I dont see any java classes in it. I have the wsdl placed correctly under the resources folder itself.</p>
  
  <p>Below is the plugin config created in pom.xml</p>
  
  <pre><code>    &lt;build&gt;
          &lt;finalName&gt;${project.artifactId}&lt;/finalName&gt;
          &lt;resources&gt;
              &lt;resource&gt;
                  &lt;directory&gt;src/main/resources&lt;/directory&gt;
              &lt;/resource&gt;
              &lt;resource&gt;
                  &lt;directory&gt;src/main/java/com/xyz/rap/service/impl/wsdl&lt;/directory&gt;
                  &lt;targetPath&gt;wsdl&lt;/targetPath&gt;
              &lt;/resource&gt;
              &lt;resource&gt;
                  &lt;directory&gt;src/main/config&lt;/directory&gt;
                  &lt;targetPath&gt;config&lt;/targetPath&gt;
              &lt;/resource&gt;
          &lt;/resources&gt;
          &lt;plugins&gt;
          &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                  &lt;artifactId&gt;jaxb2-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;1.6&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;xjc&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;xjc&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
                  &lt;configuration&gt;
                      &lt;!-- Package to store the generated file --&gt;
                      &lt;packageName&gt;com.xxx.gen.retail.abc&lt;/packageName&gt;
                      &lt;!-- Treat the input as WSDL --&gt;
                      &lt;wsdl&gt;true&lt;/wsdl&gt;
                      &lt;!-- Input is not XML schema --&gt;
                      &lt;xmlschema&gt;false&lt;/xmlschema&gt;
                      &lt;!-- The location of the WSDL file --&gt;
                      &lt;schemaDirectory&gt;${project.basedir}/src/main/resources&lt;/schemaDirectory&gt;
                      &lt;!-- The WSDL file that you saved earlier --&gt;
                      &lt;schemaFiles&gt;gene.wsdl&lt;/schemaFiles&gt;
                      &lt;!-- Don't clear output directory on each run --&gt;
                      &lt;clearOutputDir&gt;false&lt;/clearOutputDir&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&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;!-- or whatever version you use --&gt;
                      &lt;source&gt;1.7&lt;/source&gt;
                      &lt;target&gt;1.7&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Below is the log when I run <code>"maven install"</code></p>
  
  <pre><code>  [INFO] Building rap-web Maven Webapp 0.0.1-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [INFO] 
  **[INFO] --- jaxb2-maven-plugin:1.6:xjc (xjc) @ rap-web ---
  [INFO] Generating source...
  [WARNING] No encoding specified; default platform encoding will be used for generated sources.
  [INFO] parsing a schema...
  [INFO] compiling a schema...
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ rap-web ---
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
  [INFO] Copying 15 resources
  [INFO] Copying 3 resources to wsdl
  [INFO] Copying 1 resource to config
  [INFO] 
  [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ rap-web ---
  [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
  [INFO] Compiling 50 source files to C:\Users\xx67047\DSA-GIT-Projects\10.22.17-dsa-rap-services\rap-web\target\classes**
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ rap-web ---
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
  [INFO] skip non existing resourceDirectory C:\Users\xx67047\DSA-GIT-Projects\10.22.17-dsa-rap-services\rap-web\src\test\resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ rap-web ---
  [INFO] Nothing to compile - all classes are up to date
  [INFO] 
  [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ rap-web ---
  </code></pre>
  
  <p>It says Parsing and compiling the schema in logs but I dont see any java classes getting created in the logs and I see an empty jaxb2 folder and an other empty generated-sources folder getting created. Please refer below image for that:</p>
  
  <p><a href="https://i.stack.imgur.com/LK1qW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LK1qW.png" alt="enter image description here"></a></p>