ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/IncludeServerDependenciesComponentConfigurator.java
private Artifact getServerArtifact(final String serverType)
            throws ComponentConfigurationException {
        if (serverType.startsWith("gav-")) {
            int index = serverType.indexOf("-", 4);
            if (index > 0) {
                String[] gav = serverType.substring(index + 1).split(":");
                if (gav.length == 3) {
                    return repositorySystem.createArtifact(
                            gav[0],
                            gav[1],
                            gav[2],
                            "runtime",
                            "jar"
                    );
                }
            }
            throw new ComponentConfigurationException("Invalid server type: " + serverType);
        } else {
            return repositorySystem.createArtifact(
                    DEFAULT_GROUP_ID,
                    MessageFormat.format(DEFAULT_ARTIFACT_ID_FORMAT, serverType),
                    getClass().getPackage().getImplementationVersion(),
                    "runtime",
                    "jar");
        }
    }
private Artifact getServerArtifact(final String serverType)
            throws ComponentConfigurationException {
        if (serverType.startsWith("gav-")) {
            int index = serverType.indexOf("-", 4);
            if (index > 0) {
                String[] gav = serverType.substring(index + 1).split(":");
                if (gav.length == 3) {
                    return repositorySystem.createArtifact(
                            gav[0],
                            gav[1],
                            gav[2],
                            "runtime",
                            "jar"
                    );
                }
            }
            throw new ComponentConfigurationException("Invalid server type: " + serverType);
        } else {
            return repositorySystem.createArtifact(
                    DEFAULT_GROUP_ID,
                    MessageFormat.format(DEFAULT_ARTIFACT_ID_FORMAT, serverType),
                    getClass().getPackage().getImplementationVersion(),
                    "runtime",
                    "jar");
        }
    }
private Artifact getServerArtifact ( final String serverType ) throws ComponentConfigurationException { if ( serverType . startsWith ( "gav-" ) ) { int index = serverType . indexOf ( "-" , 4 ) ; if ( index > 0 ) { String [ ] gav = serverType . substring ( index + 1 ) . split ( ":" ) ; if ( gav . length == 3 ) { return repositorySystem . createArtifact ( gav [ 0 ] , gav [ 1 ] , gav [ 2 ] , "runtime" , "jar" ) ; } } throw new ComponentConfigurationException ( "Invalid server type: " + serverType ) ; } else { return repositorySystem . createArtifact ( DEFAULT_GROUP_ID , MessageFormat . format ( DEFAULT_ARTIFACT_ID_FORMAT , serverType ) , getClass ( ) . getPackage ( ) . getImplementationVersion ( ) , "runtime" , "jar" ) ; } }
Get the artifact descriptor for the JAR file that implements support for the LDAP server type.

@param serverType The LDAP server type.
@return The JAR file artifact descriptor.
Get the artifact descriptor for the JAR file that implements support for the LDAP server type .