code: private void scanClassesDirectory(MavenProjectDirectoryDescriptor projectDescriptor, MavenArtifactDescriptor artifactDescriptor, final String directoryName,
              Scanner scanner) {
          File directory = new File(directoryName);
          if (directory.exists()) {
              scanArtifact(projectDescriptor, artifactDescriptor, directory, directoryName, scanner);
          }
      }
docs: Scan the given directory for classes and add them to an artifact.
  
  @param projectDescriptor
  The maven project.
  @param artifactDescriptor
  The artifact.
  @param directoryName
  The name of the directory.
  @param scanner
  The scanner.