directory-api mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sébastien Bahloul <sebastien.bahl...@gmail.com>
Subject Re: Maven DS Server and API usage
Date Mon, 19 Mar 2012 15:14:31 GMT
Thank you, I'll try that.

Regards,
-- 
Sebastien BAHLOUL
IAM / Security specialist
Ldap Synchronization Connector : http://lsc-project.org
Blog : http://sbahloul.wordpress.com/



2012/3/19 Emmanuel Lécharny <elecharny@gmail.com>:
> Le 3/18/12 11:45 PM, Sébastien Bahloul a écrit :
>
>> Hi guys,
>>
>> I'm failing to include both the directory server client for test and
>> the API and I'd like to ask if there is a smart way to do this because
>> at this time I've got lost inside the duplicated classes and Maven
>> artifacts. I join my dependencies below  :
>>
>>        <dependency>
>>        <groupId>org.apache.directory.server</groupId>
>>        <artifactId>apacheds-server-integ</artifactId>
>>        <version>1.5.7</version>
>>        <exclusions>
>>                <exclusion>
>>                        <groupId>org.slf4j</groupId>
>>                        <artifactId>slf4j-api</artifactId>
>>                </exclusion>
>>                <exclusion>
>>                        <groupId>org.apache.directory.shared</groupId>
>>                        <artifactId>shared-ldap-schema</artifactId>
>>                </exclusion>
>>        </exclusions>
>>        <scope>test</scope>
>>        </dependency>
>>        <dependency>
>>        <groupId>org.apache.directory.server</groupId>
>>        <artifactId>apacheds-core-integ</artifactId>
>>        <version>1.5.7</version>
>>        <exclusions>
>>                <exclusion>
>>                        <groupId>org.slf4j</groupId>
>>                        <artifactId>slf4j-api</artifactId>
>>                </exclusion>
>>                <exclusion>
>>                        <groupId>org.apache.directory.shared</groupId>
>>                        <artifactId>shared-ldap-schema</artifactId>
>>                </exclusion>
>>        </exclusions>
>>        <scope>test</scope>
>>        </dependency>
>>        <dependency>
>>                <groupId>org.apache.directory.shared</groupId>
>>                <artifactId>shared-all</artifactId>
>>                <version>1.0.0-M11</version>
>>        </dependency>
>>
>> I've got some troubles about missing classes, so I added :
>>        <dependency>
>>                <groupId>org.apache.directory.client.ldap</groupId>
>>                <artifactId>ldap-client-api</artifactId>
>>                <version>0.1</version>
>>        </dependency>
>>
>> And now I've got new missing class exception about
>> org.apache.directory.shared.ldap.exception.LdapInvalidDnException
>> which seems to be part of shared-ldap-0.9.18 which should be included
>> thanks to ldap-client-api-0.1.
>
>
> The pb is that you are using a version of ApacheDS which is quite old, and
> use a revision of the API which is old too. You shoud try with  the latest
> version of ADS instead (2.0.0-M6 with LDAP API 1.0.0-M11)
>
>
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
>

Mime
View raw message