title: Error with maven-jaxb2-plugin
body: <p>Im simply trying to duplicate <a href="https://spring.io/guides/gs/consuming-web-service/" rel="nofollow noreferrer">this tutorial</a> from Spring's website with my own wsdl files.  FYI I did remove the parent declaration which required me to add versions to the dependencies.  Other then that and filling in wsdl locations its mostly copy paste from the tutorial. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &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/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;org.mynamespace&lt;/groupId&gt;
      &lt;artifactId&gt;gs-consuming-web-service&lt;/artifactId&gt;
      &lt;version&gt;0.1.0&lt;/version&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter&lt;/artifactId&gt;
              &lt;version&gt;1.4.2.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.ws&lt;/groupId&gt;
              &lt;artifactId&gt;spring-ws-core&lt;/artifactId&gt;
              &lt;version&gt;2.4.0.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
              &lt;!-- tag::wsdl[] --&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.jvnet.jaxb2.maven2&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-jaxb2-plugin&lt;/artifactId&gt;
                  &lt;version&gt;0.13.1&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;generate&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
                  &lt;configuration&gt;
                      &lt;schemaLanguage&gt;WSDL&lt;/schemaLanguage&gt;
                      &lt;generatePackage&gt;com.cisco.tms.sdk.v15&lt;/generatePackage&gt;
                      &lt;schemas&gt;
                          &lt;schema&gt;
                              &lt;url&gt;http://x.x.x.x/tms/external/booking/bookingservice.asmx?WSDL&lt;/url&gt;
                          &lt;/schema&gt;
                          &lt;schema&gt;
                              &lt;url&gt;http://x.x.x.x/tms/external/booking/remotesetup/remotesetupservice.asmx?WSDL&lt;/url&gt;
                          &lt;/schema&gt;
                      &lt;/schemas&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;!-- end::wsdl[] --&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>My issues is that I get an error on the line with <code>&lt;execution&gt;</code>:</p>
  
  <pre><code>Execution default of goal
  org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.1:generate failed:
  Unable to load the mojo 'generate' in the plugin
  'org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.1'. A required class
  is missing: org/jvnet/jaxb2/maven2/RawXJC2Mojo
  ----------------------------------------------------- realm =    plugin&gt;org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.1 strategy =
  org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy urls[0] =
  file:/C:/Users/dever/.m2/repository/org/jvnet/jaxb2/maven2/maven-jaxb2-plugin/0.13.1/maven-jaxb2-plugin-0.13.1.jar
  urls[1] =
  file:/C:/Users/dever/.m2/repository/org/jvnet/jaxb2/maven2/maven-jaxb2-plugin-core/0.13.1/maven-jaxb2-plugin-core-0.13.1.jar
  urls[2] =
  file:/C:/Users/dever/.m2/repository/org/apache/commons/commons-lang3/3.2.1/commons-lang3-3.2.1.jar
  urls[3] =
  file:/C:/Users/dever/.m2/repository/com/sun/org/apache/xml/internal/resolver/20050927/resolver-20050927.jar
  urls[4] =
  file:/C:/Users/dever/.m2/repository/junit/junit/4.8.1/junit-4.8.1.jar
  urls[5] =
  file:/C:/Users/dever/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar
  urls[6] =
  file:/C:/Users/dever/.m2/repository/org/jvnet/jaxb2/maven2/maven-jaxb22-plugin/0.13.1/maven-jaxb22-plugin-0.13.1.jar
  urls[7] =
  file:/C:/Users/dever/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.2.11/jaxb-runtime-2.2.11.jar
  urls[8] =
  file:/C:/Users/dever/.m2/repository/org/glassfish/jaxb/jaxb-xjc/2.2.11/jaxb-xjc-2.2.11.jar
  urls[9] =
  file:/C:/Users/dever/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.4/maven-plugin-annotations-3.4.jar
  Number of foreign imports: 5 import: Entry[import
  org.sonatype.plexus.build.incremental from realm
  ClassRealm[plexus.core, parent: null]] import: Entry[import
  org.codehaus.plexus.util.Scanner from realm ClassRealm[plexus.core,
  parent: null]] import: Entry[import
  org.codehaus.plexus.util.DirectoryScanner from realm
  ClassRealm[plexus.core, parent: null]] import: Entry[import
  org.codehaus.plexus.util.AbstractScanner from realm
  ClassRealm[plexus.core, parent: null]] import: Entry[import  from
  realm ClassRealm[maven.api, parent: null]]
  
  -----------------------------------------------------  (org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.1:generate:default:generate-sources)
  
  org.apache.maven.plugin.PluginExecutionException: Execution default of
  goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.1:generate failed:
  Unable to load the mojo 'generate' in the plugin
  'org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.1'. A required class
  is missing: org/jvnet/jaxb2/maven2/RawXJC2Mojo
  ----------------------------------------------------- realm =    plugin&gt;org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.1 strategy =
  org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy urls[0] =
  file:/C:/Users/dever/.m2/repository/org/jvnet/jaxb2/maven2/maven-jaxb2-plugin/0.13.1/maven-jaxb2-plugin-0.13.1.jar
  urls[1] =
  file:/C:/Users/dever/.m2/repository/org/jvnet/jaxb2/maven2/maven-jaxb2-plugin-core/0.13.1/maven-jaxb2-plugin-core-0.13.1.jar
  urls[2] =
  file:/C:/Users/dever/.m2/repository/org/apache/commons/commons-lang3/3.2.1/commons-lang3-3.2.1.jar
  urls[3] =
  file:/C:/Users/dever/.m2/repository/com/sun/org/apache/xml/internal/resolver/20050927/resolver-20050927.jar
  urls[4] =
  file:/C:/Users/dever/.m2/repository/junit/junit/4.8.1/junit-4.8.1.jar
  urls[5] =
  file:/C:/Users/dever/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar
  urls[6] =
  file:/C:/Users/dever/.m2/repository/org/jvnet/jaxb2/maven2/maven-jaxb22-plugin/0.13.1/maven-jaxb22-plugin-0.13.1.jar
  urls[7] =
  file:/C:/Users/dever/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.2.11/jaxb-runtime-2.2.11.jar
  urls[8] =
  file:/C:/Users/dever/.m2/repository/org/glassfish/jaxb/jaxb-xjc/2.2.11/jaxb-xjc-2.2.11.jar
  urls[9] =
  file:/C:/Users/dever/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.4/maven-plugin-annotations-3.4.jar
  Number of foreign imports: 5 import: Entry[import
  org.sonatype.plexus.build.incremental from realm
  ClassRealm[plexus.core, parent: null]] import: Entry[import
  org.codehaus.plexus.util.Scanner from realm ClassRealm[plexus.core,
  parent: null]] import: Entry[import
  org.codehaus.plexus.util.DirectoryScanner from realm
  ClassRealm[plexus.core, parent: null]] import: Entry[import
  org.codehaus.plexus.util.AbstractScanner from realm
  ClassRealm[plexus.core, parent: null]] import: Entry[import  from
  realm ClassRealm[maven.api, parent: null]]
  
  -----------------------------------------------------
  
      at
  org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:153)
      at
  org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:331)
      at
  org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1362)
      at
  org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1)
      at
  org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
      at
  org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)
      at
  org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1360)
      at
  org.eclipse.m2e.core.project.configurator.MojoExecutionBuildParticipant.build(MojoExecutionBuildParticipant.java:52)
      at
  org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:137)
      at
  org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:172)
      at
  org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:1)
      at
  org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1$1.call(MavenBuilder.java:115)
      at
  org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
      at
  org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)
      at
  org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1.call(MavenBuilder.java:105)
      at
  org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
      at
  org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151)
      at
  org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:99)
      at
  org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.execute(MavenBuilder.java:86)
      at
  org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:200)
      at
  org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)  at
  org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
      at
  org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
      at
  org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)  at
  org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)
      at
  org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)
      at
  org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)
      at
  org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
      at
  org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Caused
  by: org.apache.maven.plugin.PluginContainerException: Unable to load
  the mojo 'generate' in the plugin
  'org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.1'. A required class
  is missing: org/jvnet/jaxb2/maven2/RawXJC2Mojo
  ----------------------------------------------------- realm =    plugin&gt;org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.1 strategy =
  org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy urls[0] =
  file:/C:/Users/dever/.m2/repository/org/jvnet/jaxb2/maven2/maven-jaxb2-plugin/0.13.1/maven-jaxb2-plugin-0.13.1.jar
  urls[1] =
  file:/C:/Users/dever/.m2/repository/org/jvnet/jaxb2/maven2/maven-jaxb2-plugin-core/0.13.1/maven-jaxb2-plugin-core-0.13.1.jar
  urls[2] =
  file:/C:/Users/dever/.m2/repository/org/apache/commons/commons-lang3/3.2.1/commons-lang3-3.2.1.jar
  urls[3] =
  file:/C:/Users/dever/.m2/repository/com/sun/org/apache/xml/internal/resolver/20050927/resolver-20050927.jar
  urls[4] =
  file:/C:/Users/dever/.m2/repository/junit/junit/4.8.1/junit-4.8.1.jar
  urls[5] =
  file:/C:/Users/dever/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar
  urls[6] =
  file:/C:/Users/dever/.m2/repository/org/jvnet/jaxb2/maven2/maven-jaxb22-plugin/0.13.1/maven-jaxb22-plugin-0.13.1.jar
  urls[7] =
  file:/C:/Users/dever/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.2.11/jaxb-runtime-2.2.11.jar
  urls[8] =
  file:/C:/Users/dever/.m2/repository/org/glassfish/jaxb/jaxb-xjc/2.2.11/jaxb-xjc-2.2.11.jar
  urls[9] =
  file:/C:/Users/dever/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.4/maven-plugin-annotations-3.4.jar
  Number of foreign imports: 5 import: Entry[import
  org.sonatype.plexus.build.incremental from realm
  ClassRealm[plexus.core, parent: null]] import: Entry[import
  org.codehaus.plexus.util.Scanner from realm ClassRealm[plexus.core,
  parent: null]] import: Entry[import
  org.codehaus.plexus.util.DirectoryScanner from realm
  ClassRealm[plexus.core, parent: null]] import: Entry[import
  org.codehaus.plexus.util.AbstractScanner from realm
  ClassRealm[plexus.core, parent: null]] import: Entry[import  from
  realm ClassRealm[maven.api, parent: null]]
  
  -----------------------------------------------------
  
      at
  org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:537)
      at
  org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121)
      ... 31 more Caused by: java.lang.NoClassDefFoundError:
  org/jvnet/jaxb2/maven2/RawXJC2Mojo  at
  java.lang.ClassLoader.defineClass1(Native Method)   at
  java.lang.ClassLoader.defineClass(Unknown Source)   at
  java.security.SecureClassLoader.defineClass(Unknown Source)     at
  java.net.URLClassLoader.defineClass(Unknown Source)     at
  java.net.URLClassLoader.access$100(Unknown Source)  at
  java.net.URLClassLoader$1.run(Unknown Source)   at
  java.net.URLClassLoader$1.run(Unknown Source)   at
  java.security.AccessController.doPrivileged(Native Method)  at
  java.net.URLClassLoader.findClass(Unknown Source)   at
  org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:401)
      at
  org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
      at
  org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
      at
  org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
      at
  org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
      at java.lang.ClassLoader.defineClass1(Native Method)    at
  java.lang.ClassLoader.defineClass(Unknown Source)   at
  java.security.SecureClassLoader.defineClass(Unknown Source)     at
  java.net.URLClassLoader.defineClass(Unknown Source)     at
  java.net.URLClassLoader.access$100(Unknown Source)  at
  java.net.URLClassLoader$1.run(Unknown Source)   at
  java.net.URLClassLoader$1.run(Unknown Source)   at
  java.security.AccessController.doPrivileged(Native Method)  at
  java.net.URLClassLoader.findClass(Unknown Source)   at
  org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:401)
      at
  org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
      at
  org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
      at
  org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
      at
  org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
      at
  org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:139)
      at org.eclipse.sisu.space.NamedClass.load(NamedClass.java:46)   at
  org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
      at
  com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81)
      at
  com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:53)
      at
  com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:65)
      at
  com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
      at
  org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176)
      at
  com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126)
      at
  com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
      at
  com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:63)
      at
  com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
      at
  com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
      at
  com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
      at
  com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
      at org.eclipse.sisu.inject.Guice4$1.get(Guice4.java:162)    at
  org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:81)
      at
  org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
      at
  org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263)
      at
  org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
      at
  org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:517)
      ... 32 more Caused by: java.lang.ClassNotFoundException:
  org.jvnet.jaxb2.maven2.RawXJC2Mojo  at
  org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
      at
  org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
      at
  org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
      at
  org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
      ... 81 more
  </code></pre>