code: public static void addAllClasses(Weld weld, ClassLoader classLoader, File container, Log log)
        throws MojoExecutionException {
      Set<String> classNames = null;
      if (container.isFile() && container.getAbsolutePath().endsWith(".jar")) {
        try {
          JarFile jarFile = new JarFile(container);
          classNames = getAllClassNames(jarFile);
        } catch (IOException e) {
          throw new MojoExecutionException("Could not load the following JAR file: " + container.getAbsolutePath(), e);
        }
      } else if (container.isDirectory()) {
        classNames = getAllClassNames(container);
      }
  
      for (String className : classNames) {
        try {
          Class<?> cls = classLoader.loadClass(className);
          weld.addBeanClass(cls);
        } catch (ClassNotFoundException e) {
          log.error("Could not load the following class which might cause later issues: " + className);
          if (log.isDebugEnabled()) {
            log.debug(e);
          }
        }
      }
    }
docs: Queries the specified file container (folder or JAR file) for all class files and adds all found classes to the
  weld container so that these classes are later injectable.
  
  @param weld the CDI container to add the classes to.
  @param classLoader the class loader used to query and load classes from the file container.
  @param container the file container where to search classes. The container can be a folder or a JAR file.
  @param log the log for processing output.
  @throws MojoExecutionException if it was not possible to query the file container.