On 02/27/2016 11:11 AM, Stefan Seelmann wrote:
> On 02/27/2016 10:55 AM, Emmanuel Lécharny wrote:
>> Hi Stefan
>>
>> I have completely removed commons.io from the LDAP API and ApacheDS? and
>> I'm now trying to do the same in Studio. It's a bit harder :-)
>>
>> First, I removed any dependency on commons.io in all the pom files, then
>> I rebuilt the project (I faced some issues because the java files
>> weren't fixed, but that should be easy to fix).
>>
>> Nw, when I load the project sin Mars, the places where I used
>> org.apache.directory.pi.util.FileUtils aren't seing this class. When I
>> check the .m2 repository (which I doomed before building everytjing, so
> 
> Normally it's only required to delete ~/.m2/repository/p2
> 
>> it was blanck), I see that I have 2 versions of the ldap-util jar :
>> 1.0.0-M33 and 1.0.0-M34-SNAPSHOT. Obviously, the error I see are due to
>> the presence of this 1.0.0-M33 depencency, but I don't see where it
>> pulls it from...
> 
> Where do you see the two jars?
> * In folder eclipse-trgt-platform/target/repository/plugins/ ?
> * Within Eclipse in the project dependencies ?
> 
> In the 2nd case - did you re-initialize the target platform in Eclipse?
> * Open the org.apache.directory.studio.eclipse-trgt-platform.target file
> * Wait till the dependencies are resolved
> * In the top right corner click 'Set as Target Platform'

And, just to be sure: if you make (dependency) changes in POMs or if you
want to get a newer version of an snapshot artifact, please always
increment the "sequenceNumber" in the target platform *template*:
org.apache.directory.studio.eclipse-trgt-platform.template

Then doom the ~/.m2/repository/p2
Then run build.sh
Then reload the target platfomr in Eclipse

I'll document that steps in the readme. Should also be possible to
semi-automate the steps via a shell script.

Reply via email to