directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel L├ęcharny <elecha...@gmail.com>
Subject [Tycho] Mysteries...
Date Sat, 10 Jan 2015 14:55:18 GMT
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.



Mime
View raw message