code: @Override
      protected List<String> getClasspath() throws MojoExecutionException {
  
          List<String> toReturn = null;
          try {
              toReturn = getProject().getCompileClasspathElements();
          } catch (DependencyResolutionRequiredException e) {
              throw new MojoExecutionException("Could not acquire compile classpath elements from MavenProject", e);
          }
  
          // All done.
          return toReturn;
      }
docs: {@inheritDoc}