You are viewing a plain text version of this content. The canonical link for it is here.
Posted to api@directory.apache.org by Sébastien Bahloul <se...@gmail.com> on 2012/03/18 23:45:20 UTC

Maven DS Server and API usage

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.

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

Re: Maven DS Server and API usage

Posted by Pierre-Arnaud Marcelot <pa...@marcelot.net>.
Unfortunately, not at the moment.

We're still primarily focused on finalizing ApacheDS 2.0 and since all these things are still moving targets (with lots of refactorings), we intend to document it correctly when it will be stabilized.

Sorry about that.

In the meantime, do not hesitate to ask here if anything breaks or if you're stuck somewhere.

Regards,
Pierre-Arnaud

On 20 mars 2012, at 12:31, Sébastien Bahloul wrote:

> Hi Pierre-Arnaud,
> 
> Thanks for that, it is now much better. Is there a doc page where I can
> find these details to avoid these newbie's questions ?
> 
> Regards,
> -- 
> Sebastien BAHLOUL
> IAM / Security specialist
> Ldap Synchronization Connector : http://lsc-project.org
> Blog : http://sbahloul.wordpress.com/
> 
> 
> 
> 2012/3/20 Pierre-Arnaud Marcelot <pa...@marcelot.net>
> 
>> Hi Sébastien,
>> 
>> You just need to add the following to the build section of your main
>> pom.xml file:
>> 
>> <build>
>>   <plugins>
>>     [...]
>>     <plugin>
>>       <groupId>org.apache.felix</groupId>
>>       <artifactId>maven-bundle-plugin</artifactId>
>>       <inherited>true</inherited>
>>       <extensions>true</extensions>
>>     </plugin>
>>     [...]
>>   </plugins>
>> </build>
>> 
>> "Bundle" is not a default maven packaging type. Adding the
>> 'maven-bundle-plugin' to the build will help Maven recognizing it.
>> 
>> Regards,
>> Pierre-Arnaud
>> 
>> 
>> On 19 mars 2012, at 21:53, Sébastien Bahloul wrote:
>> 
>>> Hi Emmanuel,
>>> 
>>> I've tried to update the dependencies, but it seems that an artifact
>>> is missing : apacheds-jdbm2-2.0.0-M1.bundle
>>> 
>>> Is there any requirement that I've missed ?
>>> 
>>> Regards,
>>> --
>>> Sebastien BAHLOUL
>>> IAM / Security specialist
>>> Ldap Synchronization Connector : http://lsc-project.org
>>> Blog : http://sbahloul.wordpress.com/
>>> 
>>> 
>>> 
>>> 2012/3/19 Sébastien Bahloul <se...@gmail.com>:
>>>> 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 <el...@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
>>>>> 
>> 
>> 


Re: Maven DS Server and API usage

Posted by Sébastien Bahloul <se...@gmail.com>.
Hi Pierre-Arnaud,

Thanks for that, it is now much better. Is there a doc page where I can
find these details to avoid these newbie's questions ?

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



2012/3/20 Pierre-Arnaud Marcelot <pa...@marcelot.net>

> Hi Sébastien,
>
> You just need to add the following to the build section of your main
> pom.xml file:
>
>  <build>
>    <plugins>
>      [...]
>      <plugin>
>        <groupId>org.apache.felix</groupId>
>        <artifactId>maven-bundle-plugin</artifactId>
>        <inherited>true</inherited>
>        <extensions>true</extensions>
>      </plugin>
>      [...]
>    </plugins>
>  </build>
>
> "Bundle" is not a default maven packaging type. Adding the
> 'maven-bundle-plugin' to the build will help Maven recognizing it.
>
> Regards,
> Pierre-Arnaud
>
>
> On 19 mars 2012, at 21:53, Sébastien Bahloul wrote:
>
> > Hi Emmanuel,
> >
> > I've tried to update the dependencies, but it seems that an artifact
> > is missing : apacheds-jdbm2-2.0.0-M1.bundle
> >
> > Is there any requirement that I've missed ?
> >
> > Regards,
> > --
> > Sebastien BAHLOUL
> > IAM / Security specialist
> > Ldap Synchronization Connector : http://lsc-project.org
> > Blog : http://sbahloul.wordpress.com/
> >
> >
> >
> > 2012/3/19 Sébastien Bahloul <se...@gmail.com>:
> >> 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 <el...@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
> >>>
>
>

Re: Maven DS Server and API usage

Posted by Pierre-Arnaud Marcelot <pa...@marcelot.net>.
Hi Sébastien,

You just need to add the following to the build section of your main pom.xml file:

  <build>
    <plugins>
      [...]
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <inherited>true</inherited>
        <extensions>true</extensions>
      </plugin>
      [...]
    </plugins>
  </build>

"Bundle" is not a default maven packaging type. Adding the 'maven-bundle-plugin' to the build will help Maven recognizing it.

Regards,
Pierre-Arnaud


On 19 mars 2012, at 21:53, Sébastien Bahloul wrote:

> Hi Emmanuel,
> 
> I've tried to update the dependencies, but it seems that an artifact
> is missing : apacheds-jdbm2-2.0.0-M1.bundle
> 
> Is there any requirement that I've missed ?
> 
> Regards,
> -- 
> Sebastien BAHLOUL
> IAM / Security specialist
> Ldap Synchronization Connector : http://lsc-project.org
> Blog : http://sbahloul.wordpress.com/
> 
> 
> 
> 2012/3/19 Sébastien Bahloul <se...@gmail.com>:
>> 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 <el...@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
>>> 


Re: Maven DS Server and API usage

Posted by Sébastien Bahloul <se...@gmail.com>.
Hi Emmanuel,

I've tried to update the dependencies, but it seems that an artifact
is missing : apacheds-jdbm2-2.0.0-M1.bundle

Is there any requirement that I've missed ?

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



2012/3/19 Sébastien Bahloul <se...@gmail.com>:
> 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 <el...@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
>>

Re: Maven DS Server and API usage

Posted by Sébastien Bahloul <se...@gmail.com>.
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 <el...@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
>

Re: Maven DS Server and API usage

Posted by Emmanuel Lécharny <el...@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