You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Emmanuel Lécharny <el...@gmail.com> on 2015/07/06 16:39:45 UTC

[Studio] Difficulties with API M31

Hi,

as usual, I'm facing some issues after having bumped up a dependency
(here, it's LDAP API 1.0.0-M31). Here is the error I get :

localhost:studio elecharny$ mvn clean install
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=256M; support was removed in 8.0
[INFO] Scanning for projects...
[INFO] Computing target platform for MavenProject:
org.apache.directory.studio:org.apache.directory.studio.aciitemeditor:2.0.0-SNAPSHOT
@ /Users/elecharny/apacheds/studio/plugins/aciitemeditor/pom.xml
[INFO] Adding repository
file:///Users/elecharny/apacheds/studio/eclipse-trgt-platform/target/repository
[INFO] Fetching p2.index from
http://download.eclipse.org/eclipse/updates/4.4/ (0B at 0B/s)
[INFO] Adding repository http://download.eclipse.org/eclipse/updates/4.4
[INFO] Fetching p2.index from
http://download.eclipse.org/tools/orbit/downloads/drops/R20140525021250/repository/
(0B at 0B/s)
[INFO] Adding repository
http://download.eclipse.org/tools/orbit/downloads/drops/R20140525021250/repository
[INFO] Adding repository
http://download.eclipse.org/technology/swtbot/releases/2.3.0
[INFO] Adding repository
http://download.eclipse.org/technology/babel/update-site/R0.12.1/luna
[INFO] Resolving dependencies of MavenProject:
org.apache.directory.studio:org.apache.directory.studio.aciitemeditor:2.0.0-SNAPSHOT
@ /Users/elecharny/apacheds/studio/plugins/aciitemeditor/pom.xml
...
[INFO] Resolving dependencies of MavenProject:
org.apache.directory.studio:org.apache.directory.studio.p2repositories.dependencies:2.0.0-SNAPSHOT
@ /Users/elecharny/apacheds/studio/p2repositories/dependencies/pom.xml
[INFO] {osgi.os=linux, osgi.ws=gtk,
org.eclipse.update.install.features=true, osgi.arch=x86}
[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed:
org.apache.directory.studio.p2repositories.dependencies
raw:2.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):2.0.0-SNAPSHOT
[ERROR]   Missing requirement:
org.apache.directory.studio.p2repositories.dependencies
raw:2.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):2.0.0-SNAPSHOT requires
'org.apache.directory.api.util [1.0.0.M30]' but it could not be found
[ERROR]
[ERROR] See
http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for
help.
[ERROR] Cannot resolve dependencies of MavenProject:
org.apache.directory.studio:org.apache.directory.studio.p2repositories.dependencies:2.0.0-SNAPSHOT
@ /Users/elecharny/apacheds/studio/p2repositories/dependencies/pom.xml:
See log for details -> [Help 1]


I was able to run the first part of the build (ie, pom-first), but the
mvn clean install fails with the error I shown. I have doomed
.m2/repositoy/p2, .m2/repository/org/apache/directory, deployed apacheds...

Any idea ?

Re: [Studio] Difficulties with API M31

Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 06/07/15 19:57, Stefan Seelmann a écrit :
> On 07/06/2015 06:46 PM, Stefan Seelmann wrote:
>> Fixed here: http://svn.apache.org/r1689453
>>
>> I replaced the version number 1.0.0-M30 with 0.0.0, so always the latest
>> version within the target platform is used.
>>
>> Kind Regards,
>> Stefan
>>
>> PS: I get some test failures in OpenLdapSchemaFileExporterTest, I'll
>> investigate.
> Ok, the OpenLdapSchemaFileExporterTest is fixed, it was due to changed
> formatting of OpenLDAP schema, see DIRSTUDIO-1060 and DIRAPI-240.
>
>
> But another test fails, is this an HashMap/HashSet ordering issue?
>
> testConstructor(org.apache.directory.studio.openldap.config.wrappers.DbIndexWrapperTest)
>  Time elapsed: 0.012 sec  <<< FAILURE!
> org.junit.ComparisonFailure: expected:<cn,objectclass,sn [eq,sub]> but
> was:<cn,objectclass,sn [sub,eq]>
>         at org.junit.Assert.assertEquals(Assert.java:115)
>         at org.junit.Assert.assertEquals(Assert.java:144)
>         at
> org.apache.directory.studio.openldap.config.wrappers.DbIndexWrapperTest.testConstructor(DbIndexWrapperTest.java:61)
>
>
Yes, most certainly. I have to get this fixed.

Re: [Studio] Difficulties with API M31

Posted by Stefan Seelmann <ma...@stefan-seelmann.de>.
On 07/06/2015 06:46 PM, Stefan Seelmann wrote:
> Fixed here: http://svn.apache.org/r1689453
> 
> I replaced the version number 1.0.0-M30 with 0.0.0, so always the latest
> version within the target platform is used.
> 
> Kind Regards,
> Stefan
> 
> PS: I get some test failures in OpenLdapSchemaFileExporterTest, I'll
> investigate.

Ok, the OpenLdapSchemaFileExporterTest is fixed, it was due to changed
formatting of OpenLDAP schema, see DIRSTUDIO-1060 and DIRAPI-240.


But another test fails, is this an HashMap/HashSet ordering issue?

testConstructor(org.apache.directory.studio.openldap.config.wrappers.DbIndexWrapperTest)
 Time elapsed: 0.012 sec  <<< FAILURE!
org.junit.ComparisonFailure: expected:<cn,objectclass,sn [eq,sub]> but
was:<cn,objectclass,sn [sub,eq]>
        at org.junit.Assert.assertEquals(Assert.java:115)
        at org.junit.Assert.assertEquals(Assert.java:144)
        at
org.apache.directory.studio.openldap.config.wrappers.DbIndexWrapperTest.testConstructor(DbIndexWrapperTest.java:61)



Re: [Studio] Difficulties with API M31

Posted by Stefan Seelmann <ma...@stefan-seelmann.de>.
Fixed here: http://svn.apache.org/r1689453

I replaced the version number 1.0.0-M30 with 0.0.0, so always the latest
version within the target platform is used.

Kind Regards,
Stefan

PS: I get some test failures in OpenLdapSchemaFileExporterTest, I'll
investigate.