On Fri, Aug 30, 2019 at 3:07 PM surfrock66 <[email protected]> wrote:
> I'm trying to test some of the new LDAP work, but running "mvn package" to > build the jdbc and ldap extension jars fails with dependency errors. Is > there a guide out there for building these? > > If you try to just run mvn package on them, the dependencies aren't pulled > down, you get this error: > > [ERROR] Failed to execute goal on project guacamole-ext: Could not resolve > dependencies for project org.apache.guacamole:guacamole-ext:jar:1.1.0: > Failure to find org.apache.guacamole:guacamole-common:jar:1.1.0 in > https://repo.maven.apache.org/maven2 was cached in the local repository, > resolution will not be reattempted until the update interval of central has > elapsed or updates are forced -> [Help 1] > > Compiling with maven is a little over my head, but if you first build > guacamole-common.1.1.0.jar (and rename it to guacamole-common.jar) then to > build guacamole-ext.jar modify your pom.xml file to point to it as a system > scope, you get this error: > > [ERROR] COMPILATION ERROR : > [INFO] ------------------------------------------------------------- > [ERROR] > > /root/guacamole-client/guacamole-ext/src/main/java/org/apache/guacamole/environment/LocalEnvironment.java:[37,16] > error: package org.slf4j does not exist > [ERROR] > > /root/guacamole-client/guacamole-ext/src/main/java/org/apache/guacamole/environment/LocalEnvironment.java:[38,16] > error: package org.slf4j does not exist > [ERROR] > > /root/guacamole-client/guacamole-ext/src/main/java/org/apache/guacamole/environment/LocalEnvironment.java:[50,25] > error: cannot find symbol > [ERROR] symbol: class Logger > location: class LocalEnvironment > > I figure I should be able to build guacamole-common.jar, then build > guacamole-ext.jar, then build the extension jars, but something is wrong > with my dependency pointing and I'm a bit in over my head. > I would build at the top level and just let it build the whole package. There are ways to build the components individually, but you have to do it in the correct order, and it's just easier to build from the top. -Nick
