code: public void execute() throws MojoExecutionException {
  		synchronized (lock) {
  			injectDependencyDefaults();
  			resolveArtifacts();
  
  			// Install project dependencies into classloader's class path
  			// and execute xjc2.
  			final ClassLoader currentClassLoader = Thread.currentThread().getContextClassLoader();
  			final ClassLoader classLoader = createClassLoader(currentClassLoader);
  			Thread.currentThread().setContextClassLoader(classLoader);
  			final Locale currentDefaultLocale = Locale.getDefault();
  			try {
  				final Locale locale = LocaleUtils.valueOf(getLocale());
  				Locale.setDefault(locale);
  				//
  				doExecute();
  
  			} finally {
  				Locale.setDefault(currentDefaultLocale);
  				// Set back the old classloader
  				Thread.currentThread().setContextClassLoader(currentClassLoader);
  			}
  		}
  	}
docs: Execute the maven2 mojo to invoke the xjc2 compiler based on any
  configuration settings.