I' ll try that. Before doing a sudo rm -rf / in the last resort :-) Le samedi 10 janvier 2015, Stefan Seelmann <[email protected]> a écrit :
> Hi Emmanuel, > > you know, OSGi and Snapshots are no good friends... > > Both Tycho and Eclipse cache artifacts in various places, based on the > artifact name, so if version "1.0.0.M29-SNAPSHOT" is used once it is > never updated. > > Did you doom the whole local maven repo? Because Tycho caches them to > ~/.m2/repository/p2, so make sure to delete that too. > > Additionally Eclipse caches them in > <workspace>/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool. But > this location should not be relevant for Tycho, but I'm not 100% sure. > > Last not least, I use the brute force method to find and delete all of > them: sudo find / -name "org.apache.directory.api.ldap.model*" > > HTH, > Stefan > > > repository/p2/osgi/bundle/org.apache.directory.api.ldap.model > > > On 01/10/2015 03:55 PM, Emmanuel Lécharny wrote: > > Hi ! > > > > so I was able to build everything and started to fix some code. Now, I'm > > trying something a bit more evolved : using some new constants I have > > just declared in LDAP API 1.0.0-M29-SNAPSHOT. It does not compile :/ > > > > [ERROR] Failed to execute goal > > org.eclipse.tycho:tycho-compiler-plugin:0.22.0:compile (default-compile) > > on project org.apache.directory.studio.apacheds.configuration.v2: > > Compilation failure: Compilation failure: > > [ERROR] > > > /Users/elecharny/apacheds/stycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/jobs/LoadConfigurationRunnable.java:[33] > > [ERROR] import > org.apache.directory.api.ldap.model.constants.LdapConstants; > > [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > [ERROR] The import > > org.apache.directory.api.ldap.model.constants.LdapConstants cannot be > > resolved > > [ERROR] > > > /Users/elecharny/apacheds/stycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/jobs/LoadConfigurationRunnable.java:[291] > > [ERROR] configSearchParameter.setFilter( LdapConstants.OBJECT_CLASS_STAR > > ); //$NON-NLS-1$ > > [ERROR] ^^^^^^^^^^^^^ > > [ERROR] LdapConstants cannot be resolved to a variable > > > > > > I have tried may things, the last one being dooming my maven repo, > > building the LDAP API, mvn deploy it, re-run the build.sh script, to no > > avail. > > > > FTR, the repo jar for ldap-api-model contains the class (here is the jar > > -xvf of the api-ldap-model-1.0.0-M29-SNAPSHOT.jar ): > > localhost:t elecharny$ ll org/apache/directory/api/ldap/model/constants/ > > total 184 > > -rw-r--r-- 1 elecharny staff 639 Jan 10 13:54 > > SupportedSaslMechanisms.class > > -rw-r--r-- 1 elecharny staff 42058 Jan 10 13:54 SchemaConstants.class > > -rw-r--r-- 1 elecharny staff 1528 Jan 10 13:54 > > SaslSecurityStrength.class > > -rw-r--r-- 1 elecharny staff 1453 Jan 10 13:54 SaslQoP.class > > -rw-r--r-- 1 elecharny staff 4463 Jan 10 13:54 > > PasswordPolicySchemaConstants.class > > -rw-r--r-- 1 elecharny staff 6234 Jan 10 13:54 > > MetaSchemaConstants.class > > -rw-r--r-- 1 elecharny staff 2187 Jan 10 13:54 Loggers.class > > -rw-r--r-- 1 elecharny staff 3751 Jan 10 13:54 > > LdapSecurityConstants.class > > -rw-r--r-- 1 elecharny staff 450 Jan 10 13:54 > > LdapConstants.class <<----- It's there ! > > > > FTR, this class manifest correctly export the constants package : > > > > Export-Package: org.apache.directory.api.ldap.model.constants;version="1 > > .0.0.M29-SNAPSHOT"... > > > > There is also another jar , > > api-ldap-model-1.0.0-M29-20150110.141255-5.jar, which also contains the > > very same thing. > > > > The > > > eclipse-target-platform/target/repository/plugins/org.apache.directory.api.ldap.model_1.0.0.M29-SNAPSHOT.jar > > also contains the LdapConstants class. > > > > At this point, I have no idea what can be wrong... > > > > > > Any help would be appreciated. > > > > > > -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
