ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/IncludeServerDependenciesComponentConfigurator.java
private void addServerDependenciesToClassRealm(final String serverType,
                                                   final ExpressionEvaluator expressionEvaluator,
                                                   final ClassRealm containerRealm)
            throws ComponentConfigurationException {
        final Collection<Artifact> classpathElements = getServerDependencies(serverType, expressionEvaluator);
        if (classpathElements != null) {
            for (final URL url : buildURLs(classpathElements)) {
                containerRealm.addURL(url);
            }
        }
    }
private void addServerDependenciesToClassRealm(final String serverType,
                                                   final ExpressionEvaluator expressionEvaluator,
                                                   final ClassRealm containerRealm)
            throws ComponentConfigurationException {
        final Collection<Artifact> classpathElements = getServerDependencies(serverType, expressionEvaluator);
        if (classpathElements != null) {
            for (final URL url : buildURLs(classpathElements)) {
                containerRealm.addURL(url);
            }
        }
    }
private void addServerDependenciesToClassRealm ( final String serverType , final ExpressionEvaluator expressionEvaluator , final ClassRealm containerRealm ) throws ComponentConfigurationException { final Collection < Artifact > classpathElements = getServerDependencies ( serverType , expressionEvaluator ) ; if ( classpathElements != null ) { for ( final URL url : buildURLs ( classpathElements ) ) { containerRealm . addURL ( url ) ; } } }
Resolve the dependencies for an LDAP server type and add them to the class loader.

@param serverType          The LDAP server type.
@param expressionEvaluator Used to evaluate expressions.
@param containerRealm      The class loader.
@throws ComponentConfigurationException If there was a problem resolving or locating any of the dependencies.
Resolve the dependencies for an LDAP server type and add them to the class loader .