You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Daniëls, Tom <Da...@buas.nl> on 2020/06/26 10:40:01 UTC

1.2.0 WAR build issue guacamole-client

Hi Guys,

Today I tried to update to the newest 1.2.0 code but the Client won’t build. It errors out on guacamole-auth-jdbc-mysql:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project guacamole-auth-jdbc-mysql: Compilation failure
[ERROR] /home/user/git/guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/org/apache/guacamole/auth/mysql/conf/MySQLEnvironment.java:[390,4] error: method does not override or implement a method from a supertype
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :guacamole-auth-jdbc-mysql

Anyone have any insight on how to fix this?

Kind regards,
Tom Daniels

RE: 1.2.0 WAR build issue guacamole-client

Posted by Daniëls, Tom <Da...@buas.nl>.
Hi Mike,

Thanks for testing this!
By running
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
mvn clean package

I was able to build the war file successfully! No clue what was wrong here, but issue resolved.
Also a big thanks to Nick Couchman of course ;)

Grtz
Tom

From: Mike Jumper <mj...@apache.org>
Sent: maandag 29 juni 2020 08:38
To: user@guacamole.apache.org
Subject: Re: 1.2.0 WAR build issue guacamole-client

Retesting on a fresh Ubuntu 20.04 VM, the build still seems OK. I'm unsure what could be causing the error you're seeing. Other than having to manually set JAVA_HOME, a git clone of "staging/1.2.0" built without issue.

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install git maven openjdk-8-jdk
$ git clone https://github.com/apache/guacamole-client.git
$ cd guacamole-client/
$ git checkout staging/1.2.0
Here, "mvn package" would fail, being unable to properly find javac and javadoc, unless JAVA_HOME was manually set:

$ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
$ mvn package
...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] guacamole-common 1.1.0 ............................. SUCCESS [ 11.868 s]
[INFO] guacamole-ext 1.2.0 ................................ SUCCESS [ 13.151 s]
[INFO] guacamole-common-js 1.2.0 .......................... SUCCESS [  6.227 s]
[INFO] guacamole 1.2.0 .................................... SUCCESS [ 30.588 s]
[INFO] guacamole-auth-cas 1.2.0 ........................... SUCCESS [  6.805 s]
[INFO] guacamole-auth-duo 1.2.0 ........................... SUCCESS [  4.962 s]
[INFO] guacamole-auth-header 1.2.0 ........................ SUCCESS [  1.667 s]
[INFO] guacamole-auth-jdbc 1.2.0 .......................... SUCCESS [  0.087 s]
[INFO] guacamole-auth-jdbc-base 1.2.0 ..................... SUCCESS [  4.768 s]
[INFO] guacamole-auth-jdbc-mysql 1.2.0 .................... SUCCESS [  4.515 s]
[INFO] guacamole-auth-jdbc-postgresql 1.2.0 ............... SUCCESS [  4.083 s]
[INFO] guacamole-auth-jdbc-sqlserver 1.2.0 ................ SUCCESS [  3.761 s]
[INFO] guacamole-auth-jdbc-dist 1.2.0 ..................... SUCCESS [  1.670 s]
[INFO] guacamole-auth-ldap 1.2.0 .......................... SUCCESS [  8.037 s]
[INFO] guacamole-auth-openid 1.2.0 ........................ SUCCESS [  2.765 s]
[INFO] guacamole-auth-quickconnect 1.2.0 .................. SUCCESS [  4.810 s]
[INFO] guacamole-auth-saml 1.2.0 .......................... SUCCESS [  4.979 s]
[INFO] guacamole-auth-totp 1.2.0 .......................... SUCCESS [  7.098 s]
[INFO] guacamole-example 1.2.0 ............................ SUCCESS [  1.057 s]
[INFO] guacamole-playback-example 1.2.0 ................... SUCCESS [  0.621 s]
[INFO] guacamole-client 1.2.0 ............................. SUCCESS [  5.096 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:09 min
[INFO] Finished at: 2020-06-29T06:31:21Z
[INFO] ------------------------------------------------------------------------
$

- Mike


On Sun, Jun 28, 2020 at 11:06 PM Daniëls, Tom <Da...@buas.nl>> wrote:
That would be java-8-openjdk-amd64 On Ubuntu 20.04. Nothing changed on my end, just a git pull and then maven b0rked.

From: Sean Reid <se...@gmail.com>>
Sent: zaterdag 27 juni 2020 13:26
To: user@guacamole.apache.org<ma...@guacamole.apache.org>
Subject: Re: 1.2.0 WAR build issue guacamole-client

Hi Tom,

What version of the JDK are you using?

Sean

On Sat, Jun 27, 2020 at 4:06 AM Daniëls, Tom <Da...@buas.nl>> wrote:
Hi Nick,

Thanks for the quick response and advise!
Unfortunately the issue remains unresolved;
user@guac:/home/user/git/guacamole-client# git fetch
user@guac:/home/user/git/guacamole-client# git checkout staging/1.2.0​
Branch 'staging/1.2.0' set up to track remote branch 'staging/1.2.0' from 'origin'.​
Switched to a new branch 'staging/1.2.0'​
user@guac:/home/user/git/guacamole-client# git reset --hard origin/staging/1.2.0​
HEAD is now at 21ec5640a GUACAMOLE-728: Merge changes leveraging PostgreSQL's legacy "ssl" parameter only for disabling SSL.​
​
[INFO] Reactor Summary:​
[INFO]​
[INFO] guacamole-common 1.1.0 ............................. SUCCESS [  9.397 s]​
[INFO] guacamole-ext 1.2.0 ................................ SUCCESS [  9.934 s]​
[INFO] guacamole-common-js 1.2.0 .......................... SUCCESS [  1.422 s]​
[INFO] guacamole 1.2.0 .................................... SUCCESS [ 14.684 s]​
[INFO] guacamole-auth-cas 1.2.0 ........................... SUCCESS [  3.193 s]​
[INFO] guacamole-auth-duo 1.2.0 ........................... SUCCESS [  2.998 s]​
[INFO] guacamole-auth-header 1.2.0 ........................ SUCCESS [  0.359 s]​
[INFO] guacamole-auth-jdbc 1.2.0 .......................... SUCCESS [  0.293 s]​
[INFO] guacamole-auth-jdbc-base 1.2.0 ..................... SUCCESS [  3.441 s]​
[INFO] guacamole-auth-jdbc-mysql 1.2.0 .................... FAILURE [  1.647 s]​
[INFO] guacamole-auth-jdbc-postgresql 1.2.0 ............... SKIPPED​
[INFO] guacamole-auth-jdbc-sqlserver 1.2.0 ................ SKIPPED​
[INFO] guacamole-auth-jdbc-dist 1.2.0 ..................... SKIPPED​
[INFO] guacamole-auth-ldap 1.2.0 .......................... SKIPPED​
[INFO] guacamole-auth-openid 1.2.0 ........................ SKIPPED​
[INFO] guacamole-auth-quickconnect 1.2.0 .................. SKIPPED​
[INFO] guacamole-auth-saml 1.2.0 .......................... SKIPPED​
[INFO] guacamole-auth-totp 1.2.0 .......................... SKIPPED​
[INFO] guacamole-example 1.2.0 ............................ SKIPPED​
[INFO] guacamole-playback-example 1.2.0 ................... SKIPPED​
[INFO] guacamole-client 1.2.0 ............................. SKIPPED​
[INFO] ------------------------------------------------------------------------​
[INFO] BUILD FAILURE​
[INFO] ------------------------------------------------------------------------​
[INFO] Total time:  47.770 s​
[INFO] Finished at: 2020-06-27T07:47:50Z​
[INFO] ------------------------------------------------------------------------​
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project guacamole-auth-jdbc-mysql: Compilation failure​
[ERROR] /home/user/git/guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/org/apache/guacamole/auth/mysql/conf/MySQLEnvironment.java:[390,4] error: method does not override or implement a method from a supertype​
[ERROR]​ -> [Help 1]​
[ERROR]​
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.​
[ERROR] Re-run Maven using the -X switch to enable full debug logging.​
[ERROR]​
[ERROR] For more information about the errors and possible solutions, please read the following articles:​
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException​
[ERROR]​
[ERROR] After correcting the problems, you can resume the build with the command​
[ERROR]   mvn <args> -rf :guacamole-auth-jdbc-mysql​
​
Created debug info using command
mvn package -X -rf :guacamole-auth-jdbc-mysql​

I got these results;
[WARNING] The POM for org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0 is missing, no dependency information available​
[...]​
​
[ERROR] Failed to execute goal on project guacamole-auth-jdbc-mysql: Could not resolve dependencies for project org.apache.guacamole:guacamole-auth-jdbc-mysql:jar:1.2.0: The following artifacts could not be resolved: org.apache.guacamole:guacamole-ext:jar:1.2.0, org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (https://repo.maven.apache.org/maven2) -> [Help 1]​
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project guacamole-auth-jdbc-mysql: Could not resolve dependencies for project org.apache.guacamole:guacamole-auth-jdbc-mysql:jar:1.2.0: The following artifacts could not be resolved: org.apache.guacamole:guacamole-ext:jar:1.2.0, org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (https://repo.maven.apache.org/maven2)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:269)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:248)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:202)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)​
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)​
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)​
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)​
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)​
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)​
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)​
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)​
    at java.lang.reflect.Method.invoke (Method.java:564)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)​
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.apache.guacamole:guacamole-auth-jdbc-mysql:jar:1.2.0: The following artifacts could not be resolved: org.apache.guacamole:guacamole-ext:jar:1.2.0, org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (https://repo.maven.apache.org/maven2)​
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve (DefaultProjectDependenciesResolver.java:209)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:243)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:248)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:202)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)​
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)​
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)​
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)​
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)​
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)​
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)​
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)​
    at java.lang.reflect.Method.invoke (Method.java:564)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)​
Caused by: org.eclipse.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: org.apache.guacamole:guacamole-ext:jar:1.2.0, org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (https://repo.maven.apache.org/maven2)​
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies (DefaultRepositorySystem.java:357)​
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve (DefaultProjectDependenciesResolver.java:202)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:243)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:248)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:202)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)​
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)​
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)​
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)​
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)​
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)​
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)​
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)​
    at java.lang.reflect.Method.invoke (Method.java:564)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)​
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: org.apache.guacamole:guacamole-ext:jar:1.2.0, org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (https://repo.maven.apache.org/maven2)​
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:424)​
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts (DefaultArtifactResolver.java:229)​
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies (DefaultRepositorySystem.java:340)​
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve (DefaultProjectDependenciesResolver.java:202)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:243)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:248)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:202)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)​
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)​
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)​
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)​
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)​
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)​
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)​
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)​
    at java.lang.reflect.Method.invoke (Method.java:564)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)​
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (https://repo.maven.apache.org/maven2)​
    at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed (ArtifactTransportListener.java:48)​
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run (BasicRepositoryConnector.java:369)​
    at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run (RunnableErrorForwarder.java:75)​
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1130)​
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:630)​
    at java.lang.Thread.run (Thread.java:832)​
[ERROR]​
[ERROR]​
[ERROR] For more information about the errors and possible solutions, please read the following articles:​
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException​

​ Server is running Ubuntu 20.04 fully patched.Hopefully someone can help me out of this bind.

Kind regards
Tom Daniels


From: Nick Couchman <vn...@apache.org>>
Sent: vrijdag 26 juni 2020 14:41
To: user@guacamole.apache.org<ma...@guacamole.apache.org>
Subject: Re: 1.2.0 WAR build issue guacamole-client

On Fri, Jun 26, 2020 at 6:40 AM Daniëls, Tom <Da...@buas.nl>> wrote:
Hi Guys,

Today I tried to update to the newest 1.2.0 code but the Client won’t build. It errors out on guacamole-auth-jdbc-mysql:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project guacamole-auth-jdbc-mysql: Compilation failure
[ERROR] /home/user/git/guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/org/apache/guacamole/auth/mysql/conf/MySQLEnvironment.java:[390,4] error: method does not override or implement a method from a supertype
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :guacamole-auth-jdbc-mysql

Anyone have any insight on how to fix this?

I suspect your git tree is not completely up-to-date, as we have done several builds of the 1.2.0 code over the past 24 hours in preparation for the upcoming release, and we're not seeing this build problem.  If you have your own fork of the code then please make sure it is updated with the Apache repos.  If you're using the Apache repos directly, then make sure you're doing the "git pull" and that you haven't made any direct changes to the code that would block it completely pulling down the remote changes.  The easiest thing to do, assuming you're on the Apache repos, would be:

git fetch
git checkout staging/1.2.0
git reset --hard origin/staging/1.2.0

and then try building, again.  Based on the error above it looks like you're missing the guacamole-auth-jdbc-base changes for GUACAMOLE-708, which defines the Interface for auto-creating missing users.

-Nick



Re: 1.2.0 WAR build issue guacamole-client

Posted by Mike Jumper <mj...@apache.org>.
Retesting on a fresh Ubuntu 20.04 VM, the build still seems OK. I'm unsure
what could be causing the error you're seeing. Other than having to
manually set JAVA_HOME, a git clone of "staging/1.2.0" built without issue.

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install git maven openjdk-8-jdk
$ git clone https://github.com/apache/guacamole-client.git
$ cd guacamole-client/
$ git checkout staging/1.2.0

Here, "mvn package" would fail, being unable to properly find javac and
javadoc, unless JAVA_HOME was manually set:

$ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
$ mvn package
...
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] guacamole-common 1.1.0 ............................. SUCCESS [
11.868 s]
[INFO] guacamole-ext 1.2.0 ................................ SUCCESS [
13.151 s]
[INFO] guacamole-common-js 1.2.0 .......................... SUCCESS [
 6.227 s]
[INFO] guacamole 1.2.0 .................................... SUCCESS [
30.588 s]
[INFO] guacamole-auth-cas 1.2.0 ........................... SUCCESS [
 6.805 s]
[INFO] guacamole-auth-duo 1.2.0 ........................... SUCCESS [
 4.962 s]
[INFO] guacamole-auth-header 1.2.0 ........................ SUCCESS [
 1.667 s]
[INFO] guacamole-auth-jdbc 1.2.0 .......................... SUCCESS [
 0.087 s]
[INFO] guacamole-auth-jdbc-base 1.2.0 ..................... SUCCESS [
 4.768 s]
[INFO] guacamole-auth-jdbc-mysql 1.2.0 .................... SUCCESS [
 4.515 s]
[INFO] guacamole-auth-jdbc-postgresql 1.2.0 ............... SUCCESS [
 4.083 s]
[INFO] guacamole-auth-jdbc-sqlserver 1.2.0 ................ SUCCESS [
 3.761 s]
[INFO] guacamole-auth-jdbc-dist 1.2.0 ..................... SUCCESS [
 1.670 s]
[INFO] guacamole-auth-ldap 1.2.0 .......................... SUCCESS [
 8.037 s]
[INFO] guacamole-auth-openid 1.2.0 ........................ SUCCESS [
 2.765 s]
[INFO] guacamole-auth-quickconnect 1.2.0 .................. SUCCESS [
 4.810 s]
[INFO] guacamole-auth-saml 1.2.0 .......................... SUCCESS [
 4.979 s]
[INFO] guacamole-auth-totp 1.2.0 .......................... SUCCESS [
 7.098 s]
[INFO] guacamole-example 1.2.0 ............................ SUCCESS [
 1.057 s]
[INFO] guacamole-playback-example 1.2.0 ................... SUCCESS [
 0.621 s]
[INFO] guacamole-client 1.2.0 ............................. SUCCESS [
 5.096 s]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time:  02:09 min
[INFO] Finished at: 2020-06-29T06:31:21Z
[INFO]
------------------------------------------------------------------------
$

- Mike


On Sun, Jun 28, 2020 at 11:06 PM Daniëls, Tom <Da...@buas.nl> wrote:

> That would be java-8-openjdk-amd64 On Ubuntu 20.04. Nothing changed on my
> end, just a git pull and then maven b0rked.
>
>
>
> *From:* Sean Reid <se...@gmail.com>
> *Sent:* zaterdag 27 juni 2020 13:26
> *To:* user@guacamole.apache.org
> *Subject:* Re: 1.2.0 WAR build issue guacamole-client
>
>
>
> Hi Tom,
>
>
>
> What version of the JDK are you using?
>
>
>
> Sean
>
>
>
> On Sat, Jun 27, 2020 at 4:06 AM Daniëls, Tom <Da...@buas.nl> wrote:
>
> Hi Nick,
>
>
>
> Thanks for the quick response and advise!
>
> Unfortunately the issue remains unresolved;
>
> user@guac:/home/user/git/guacamole-client# git fetch
>
> user@guac:/home/user/git/guacamole-client# git checkout staging/1.2.0​
>
> Branch 'staging/1.2.0' set up to track remote branch 'staging/1.2.0' from
> 'origin'.​
>
> Switched to a new branch 'staging/1.2.0'​
>
> user@guac:/home/user/git/guacamole-client# git reset --hard
> origin/staging/1.2.0​
>
> HEAD is now at 21ec5640a GUACAMOLE-728: Merge changes leveraging
> PostgreSQL's legacy "ssl" parameter only for disabling SSL.​
>
> ​
>
> [INFO] Reactor Summary:​
>
> [INFO]​
>
> [INFO] guacamole-common 1.1.0 ............................. SUCCESS [
>  9.397 s]​
>
> [INFO] guacamole-ext 1.2.0 ................................ SUCCESS [
>  9.934 s]​
>
> [INFO] guacamole-common-js 1.2.0 .......................... SUCCESS [
>  1.422 s]​
>
> [INFO] guacamole 1.2.0 .................................... SUCCESS [
> 14.684 s]​
>
> [INFO] guacamole-auth-cas 1.2.0 ........................... SUCCESS [
>  3.193 s]​
>
> [INFO] guacamole-auth-duo 1.2.0 ........................... SUCCESS [
>  2.998 s]​
>
> [INFO] guacamole-auth-header 1.2.0 ........................ SUCCESS [
>  0.359 s]​
>
> [INFO] guacamole-auth-jdbc 1.2.0 .......................... SUCCESS [
>  0.293 s]​
>
> [INFO] guacamole-auth-jdbc-base 1.2.0 ..................... SUCCESS [
>  3.441 s]​
>
> [INFO] guacamole-auth-jdbc-mysql 1.2.0 .................... FAILURE [
>  1.647 s]​
>
> [INFO] guacamole-auth-jdbc-postgresql 1.2.0 ............... SKIPPED​
>
> [INFO] guacamole-auth-jdbc-sqlserver 1.2.0 ................ SKIPPED​
>
> [INFO] guacamole-auth-jdbc-dist 1.2.0 ..................... SKIPPED​
>
> [INFO] guacamole-auth-ldap 1.2.0 .......................... SKIPPED​
>
> [INFO] guacamole-auth-openid 1.2.0 ........................ SKIPPED​
>
> [INFO] guacamole-auth-quickconnect 1.2.0 .................. SKIPPED​
>
> [INFO] guacamole-auth-saml 1.2.0 .......................... SKIPPED​
>
> [INFO] guacamole-auth-totp 1.2.0 .......................... SKIPPED​
>
> [INFO] guacamole-example 1.2.0 ............................ SKIPPED​
>
> [INFO] guacamole-playback-example 1.2.0 ................... SKIPPED​
>
> [INFO] guacamole-client 1.2.0 ............................. SKIPPED​
>
> [INFO]
> ------------------------------------------------------------------------​
>
> [INFO] BUILD FAILURE​
>
> [INFO]
> ------------------------------------------------------------------------​
>
> [INFO] Total time:  47.770 s​
>
> [INFO] Finished at: 2020-06-27T07:47:50Z​
>
> [INFO]
> ------------------------------------------------------------------------​
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.3:compile
> (default-compile) on project guacamole-auth-jdbc-mysql: Compilation failure
> ​
>
> [ERROR] /home/user/git/guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/org/apache/guacamole/auth/mysql/conf/MySQLEnvironment.java:[390,4]
> error: method does not override or implement a method from a supertype​
>
> [ERROR]​ -> [Help 1]​
>
> [ERROR]​
>
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.​
>
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.​
>
> [ERROR]​
>
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:​
>
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException​
>
> [ERROR]​
>
> [ERROR] After correcting the problems, you can resume the build with the
> command​
>
> [ERROR]   mvn <args> -rf :guacamole-auth-jdbc-mysql​
>
> ​
>
> Created debug info using command
>
> mvn package -X -rf :guacamole-auth-jdbc-mysql​
>
>
>
> I got these results;
>
> [WARNING] The POM for
> org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0 is missing, no
> dependency information available​
>
> [...]​
>
> ​
>
> [ERROR] Failed to execute goal on project guacamole-auth-jdbc-mysql:
> Could not resolve dependencies for project
> org.apache.guacamole:guacamole-auth-jdbc-mysql:jar:1.2.0: The following
> artifacts could not be resolved:
> org.apache.guacamole:guacamole-ext:jar:1.2.0,
> org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find
> artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (
> https://repo.maven.apache.org/maven2) -> [Help 1]​
>
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal on project guacamole-auth-jdbc-mysql: Could not resolve dependencies
> for project org.apache.guacamole:guacamole-auth-jdbc-mysql:jar:1.2.0: The
> following artifacts could not be resolved:
> org.apache.guacamole:guacamole-ext:jar:1.2.0,
> org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find
> artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (
> https://repo.maven.apache.org/maven2)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies
> (LifecycleDependencyResolver.java:269)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies
> (LifecycleDependencyResolver.java:147)​
>
>     at
> org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved
> (MojoExecutor.java:248)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:202)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:156)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:148)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:117)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:81)​
>
>     at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> (SingleThreadedBuilder.java:56)​
>
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> (LifecycleStarter.java:128)​
>
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)​
>
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)​
>
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)​
>
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)​
>
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)​
>
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)​
>
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native
> Method)​
>
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:62)​
>
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)​
>
>     at java.lang.reflect.Method.invoke (Method.java:564)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> (Launcher.java:282)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch
> (Launcher.java:225)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> (Launcher.java:406)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main
> (Launcher.java:347)​
>
> Caused by: org.apache.maven.project.DependencyResolutionException: Could
> not resolve dependencies for project
> org.apache.guacamole:guacamole-auth-jdbc-mysql:jar:1.2.0: The following
> artifacts could not be resolved:
> org.apache.guacamole:guacamole-ext:jar:1.2.0,
> org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find
> artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (
> https://repo.maven.apache.org/maven2)​
>
>     at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve
> (DefaultProjectDependenciesResolver.java:209)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies
> (LifecycleDependencyResolver.java:243)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies
> (LifecycleDependencyResolver.java:147)​
>
>     at
> org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved
> (MojoExecutor.java:248)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:202)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:156)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:148)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:117)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:81)​
>
>     at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> (SingleThreadedBuilder.java:56)​
>
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> (LifecycleStarter.java:128)​
>
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)​
>
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)​
>
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)​
>
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)​
>
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)​
>
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)​
>
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native
> Method)​
>
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:62)​
>
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)​
>
>     at java.lang.reflect.Method.invoke (Method.java:564)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> (Launcher.java:282)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch
> (Launcher.java:225)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> (Launcher.java:406)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main
> (Launcher.java:347)​
>
> Caused by: org.eclipse.aether.resolution.DependencyResolutionException:
> The following artifacts could not be resolved:
> org.apache.guacamole:guacamole-ext:jar:1.2.0,
> org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find
> artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (
> https://repo.maven.apache.org/maven2)​
>
>     at
> org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies
> (DefaultRepositorySystem.java:357)​
>
>     at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve
> (DefaultProjectDependenciesResolver.java:202)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies
> (LifecycleDependencyResolver.java:243)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies
> (LifecycleDependencyResolver.java:147)​
>
>     at
> org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved
> (MojoExecutor.java:248)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:202)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:156)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:148)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:117)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:81)​
>
>     at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> (SingleThreadedBuilder.java:56)​
>
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> (LifecycleStarter.java:128)​
>
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)​
>
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)​
>
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)​
>
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)​
>
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)​
>
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)​
>
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native
> Method)​
>
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:62)​
>
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)​
>
>     at java.lang.reflect.Method.invoke (Method.java:564)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> (Launcher.java:282)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch
> (Launcher.java:225)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> (Launcher.java:406)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main
> (Launcher.java:347)​
>
> Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The
> following artifacts could not be resolved:
> org.apache.guacamole:guacamole-ext:jar:1.2.0,
> org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find
> artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (
> https://repo.maven.apache.org/maven2)​
>
>     at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve
> (DefaultArtifactResolver.java:424)​
>
>     at
> org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts
> (DefaultArtifactResolver.java:229)​
>
>     at
> org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies
> (DefaultRepositorySystem.java:340)​
>
>     at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve
> (DefaultProjectDependenciesResolver.java:202)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies
> (LifecycleDependencyResolver.java:243)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies
> (LifecycleDependencyResolver.java:147)​
>
>     at
> org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved
> (MojoExecutor.java:248)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:202)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:156)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:148)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:117)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:81)​
>
>     at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> (SingleThreadedBuilder.java:56)​
>
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> (LifecycleStarter.java:128)​
>
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)​
>
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)​
>
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)​
>
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)​
>
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)​
>
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)​
>
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native
> Method)​
>
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:62)​
>
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)​
>
>     at java.lang.reflect.Method.invoke (Method.java:564)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> (Launcher.java:282)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch
> (Launcher.java:225)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> (Launcher.java:406)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main
> (Launcher.java:347)​
>
> Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could
> not find artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (
> https://repo.maven.apache.org/maven2)​
>
>     at
> org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed
> (ArtifactTransportListener.java:48)​
>
>     at
> org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run
> (BasicRepositoryConnector.java:369)​
>
>     at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run
> (RunnableErrorForwarder.java:75)​
>
>     at java.util.concurrent.ThreadPoolExecutor.runWorker
> (ThreadPoolExecutor.java:1130)​
>
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run
> (ThreadPoolExecutor.java:630)​
>
>     at java.lang.Thread.run (Thread.java:832)​
>
> [ERROR]​
>
> [ERROR]​
>
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:​
>
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
> ​
>
>
>
> ​ Server is running Ubuntu 20.04 fully patched.Hopefully someone can help
> me out of this bind.
>
>
>
> Kind regards
>
> Tom Daniels
>
>
>
>
>
> *From:* Nick Couchman <vn...@apache.org>
> *Sent:* vrijdag 26 juni 2020 14:41
> *To:* user@guacamole.apache.org
> *Subject:* Re: 1.2.0 WAR build issue guacamole-client
>
>
>
> On Fri, Jun 26, 2020 at 6:40 AM Daniëls, Tom <Da...@buas.nl> wrote:
>
> Hi Guys,
>
>
>
> Today I tried to update to the newest 1.2.0 code but the Client won’t
> build. It errors out on guacamole-auth-jdbc-mysql:
>
>
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.3:compile
> (default-compile) on project guacamole-auth-jdbc-mysql: Compilation failure
>
> [ERROR]
> /home/user/git/guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/org/apache/guacamole/auth/mysql/conf/MySQLEnvironment.java:[390,4]
> error: method does not override or implement a method from a supertype
>
> [ERROR]
>
> [ERROR] -> [Help 1]
>
> [ERROR]
>
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
>
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>
> [ERROR]
>
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
>
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>
> [ERROR]
>
> [ERROR] After correcting the problems, you can resume the build with the
> command
>
> [ERROR]   mvn <args> -rf :guacamole-auth-jdbc-mysql
>
>
>
> Anyone have any insight on how to fix this?
>
>
>
> I suspect your git tree is not completely up-to-date, as we have done
> several builds of the 1.2.0 code over the past 24 hours in preparation for
> the upcoming release, and we're not seeing this build problem.  If you have
> your own fork of the code then please make sure it is updated with the
> Apache repos.  If you're using the Apache repos directly, then make sure
> you're doing the "git pull" and that you haven't made any direct changes to
> the code that would block it completely pulling down the remote changes.
> The easiest thing to do, assuming you're on the Apache repos, would be:
>
>
>
> git fetch
>
> git checkout staging/1.2.0
>
> git reset --hard origin/staging/1.2.0
>
>
>
> and then try building, again.  Based on the error above it looks like
> you're missing the guacamole-auth-jdbc-base changes for GUACAMOLE-708,
> which defines the Interface for auto-creating missing users.
>
>
>
> -Nick
>
>
>
>
>
>

RE: 1.2.0 WAR build issue guacamole-client

Posted by Daniëls, Tom <Da...@buas.nl>.
That would be java-8-openjdk-amd64 On Ubuntu 20.04. Nothing changed on my end, just a git pull and then maven b0rked.

From: Sean Reid <se...@gmail.com>
Sent: zaterdag 27 juni 2020 13:26
To: user@guacamole.apache.org
Subject: Re: 1.2.0 WAR build issue guacamole-client

Hi Tom,

What version of the JDK are you using?

Sean

On Sat, Jun 27, 2020 at 4:06 AM Daniëls, Tom <Da...@buas.nl>> wrote:
Hi Nick,

Thanks for the quick response and advise!
Unfortunately the issue remains unresolved;
user@guac:/home/user/git/guacamole-client# git fetch
user@guac:/home/user/git/guacamole-client# git checkout staging/1.2.0​
Branch 'staging/1.2.0' set up to track remote branch 'staging/1.2.0' from 'origin'.​
Switched to a new branch 'staging/1.2.0'​
user@guac:/home/user/git/guacamole-client# git reset --hard origin/staging/1.2.0​
HEAD is now at 21ec5640a GUACAMOLE-728: Merge changes leveraging PostgreSQL's legacy "ssl" parameter only for disabling SSL.​
​
[INFO] Reactor Summary:​
[INFO]​
[INFO] guacamole-common 1.1.0 ............................. SUCCESS [  9.397 s]​
[INFO] guacamole-ext 1.2.0 ................................ SUCCESS [  9.934 s]​
[INFO] guacamole-common-js 1.2.0 .......................... SUCCESS [  1.422 s]​
[INFO] guacamole 1.2.0 .................................... SUCCESS [ 14.684 s]​
[INFO] guacamole-auth-cas 1.2.0 ........................... SUCCESS [  3.193 s]​
[INFO] guacamole-auth-duo 1.2.0 ........................... SUCCESS [  2.998 s]​
[INFO] guacamole-auth-header 1.2.0 ........................ SUCCESS [  0.359 s]​
[INFO] guacamole-auth-jdbc 1.2.0 .......................... SUCCESS [  0.293 s]​
[INFO] guacamole-auth-jdbc-base 1.2.0 ..................... SUCCESS [  3.441 s]​
[INFO] guacamole-auth-jdbc-mysql 1.2.0 .................... FAILURE [  1.647 s]​
[INFO] guacamole-auth-jdbc-postgresql 1.2.0 ............... SKIPPED​
[INFO] guacamole-auth-jdbc-sqlserver 1.2.0 ................ SKIPPED​
[INFO] guacamole-auth-jdbc-dist 1.2.0 ..................... SKIPPED​
[INFO] guacamole-auth-ldap 1.2.0 .......................... SKIPPED​
[INFO] guacamole-auth-openid 1.2.0 ........................ SKIPPED​
[INFO] guacamole-auth-quickconnect 1.2.0 .................. SKIPPED​
[INFO] guacamole-auth-saml 1.2.0 .......................... SKIPPED​
[INFO] guacamole-auth-totp 1.2.0 .......................... SKIPPED​
[INFO] guacamole-example 1.2.0 ............................ SKIPPED​
[INFO] guacamole-playback-example 1.2.0 ................... SKIPPED​
[INFO] guacamole-client 1.2.0 ............................. SKIPPED​
[INFO] ------------------------------------------------------------------------​
[INFO] BUILD FAILURE​
[INFO] ------------------------------------------------------------------------​
[INFO] Total time:  47.770 s​
[INFO] Finished at: 2020-06-27T07:47:50Z​
[INFO] ------------------------------------------------------------------------​
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project guacamole-auth-jdbc-mysql: Compilation failure​
[ERROR] /home/user/git/guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/org/apache/guacamole/auth/mysql/conf/MySQLEnvironment.java:[390,4] error: method does not override or implement a method from a supertype​
[ERROR]​ -> [Help 1]​
[ERROR]​
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.​
[ERROR] Re-run Maven using the -X switch to enable full debug logging.​
[ERROR]​
[ERROR] For more information about the errors and possible solutions, please read the following articles:​
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException​
[ERROR]​
[ERROR] After correcting the problems, you can resume the build with the command​
[ERROR]   mvn <args> -rf :guacamole-auth-jdbc-mysql​
​
Created debug info using command
mvn package -X -rf :guacamole-auth-jdbc-mysql​

I got these results;
[WARNING] The POM for org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0 is missing, no dependency information available​
[...]​
​
[ERROR] Failed to execute goal on project guacamole-auth-jdbc-mysql: Could not resolve dependencies for project org.apache.guacamole:guacamole-auth-jdbc-mysql:jar:1.2.0: The following artifacts could not be resolved: org.apache.guacamole:guacamole-ext:jar:1.2.0, org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (https://repo.maven.apache.org/maven2) -> [Help 1]​
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project guacamole-auth-jdbc-mysql: Could not resolve dependencies for project org.apache.guacamole:guacamole-auth-jdbc-mysql:jar:1.2.0: The following artifacts could not be resolved: org.apache.guacamole:guacamole-ext:jar:1.2.0, org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (https://repo.maven.apache.org/maven2)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:269)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:248)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:202)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)​
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)​
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)​
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)​
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)​
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)​
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)​
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)​
    at java.lang.reflect.Method.invoke (Method.java:564)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)​
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.apache.guacamole:guacamole-auth-jdbc-mysql:jar:1.2.0: The following artifacts could not be resolved: org.apache.guacamole:guacamole-ext:jar:1.2.0, org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (https://repo.maven.apache.org/maven2)​
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve (DefaultProjectDependenciesResolver.java:209)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:243)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:248)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:202)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)​
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)​
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)​
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)​
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)​
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)​
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)​
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)​
    at java.lang.reflect.Method.invoke (Method.java:564)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)​
Caused by: org.eclipse.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: org.apache.guacamole:guacamole-ext:jar:1.2.0, org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (https://repo.maven.apache.org/maven2)​
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies (DefaultRepositorySystem.java:357)​
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve (DefaultProjectDependenciesResolver.java:202)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:243)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:248)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:202)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)​
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)​
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)​
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)​
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)​
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)​
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)​
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)​
    at java.lang.reflect.Method.invoke (Method.java:564)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)​
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: org.apache.guacamole:guacamole-ext:jar:1.2.0, org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (https://repo.maven.apache.org/maven2)​
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:424)​
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts (DefaultArtifactResolver.java:229)​
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies (DefaultRepositorySystem.java:340)​
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve (DefaultProjectDependenciesResolver.java:202)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:243)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:248)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:202)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)​
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)​
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)​
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)​
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)​
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)​
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)​
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)​
    at java.lang.reflect.Method.invoke (Method.java:564)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)​
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (https://repo.maven.apache.org/maven2)​
    at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed (ArtifactTransportListener.java:48)​
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run (BasicRepositoryConnector.java:369)​
    at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run (RunnableErrorForwarder.java:75)​
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1130)​
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:630)​
    at java.lang.Thread.run (Thread.java:832)​
[ERROR]​
[ERROR]​
[ERROR] For more information about the errors and possible solutions, please read the following articles:​
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException​

​ Server is running Ubuntu 20.04 fully patched.Hopefully someone can help me out of this bind.

Kind regards
Tom Daniels


From: Nick Couchman <vn...@apache.org>>
Sent: vrijdag 26 juni 2020 14:41
To: user@guacamole.apache.org<ma...@guacamole.apache.org>
Subject: Re: 1.2.0 WAR build issue guacamole-client

On Fri, Jun 26, 2020 at 6:40 AM Daniëls, Tom <Da...@buas.nl>> wrote:
Hi Guys,

Today I tried to update to the newest 1.2.0 code but the Client won’t build. It errors out on guacamole-auth-jdbc-mysql:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project guacamole-auth-jdbc-mysql: Compilation failure
[ERROR] /home/user/git/guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/org/apache/guacamole/auth/mysql/conf/MySQLEnvironment.java:[390,4] error: method does not override or implement a method from a supertype
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :guacamole-auth-jdbc-mysql

Anyone have any insight on how to fix this?

I suspect your git tree is not completely up-to-date, as we have done several builds of the 1.2.0 code over the past 24 hours in preparation for the upcoming release, and we're not seeing this build problem.  If you have your own fork of the code then please make sure it is updated with the Apache repos.  If you're using the Apache repos directly, then make sure you're doing the "git pull" and that you haven't made any direct changes to the code that would block it completely pulling down the remote changes.  The easiest thing to do, assuming you're on the Apache repos, would be:

git fetch
git checkout staging/1.2.0
git reset --hard origin/staging/1.2.0

and then try building, again.  Based on the error above it looks like you're missing the guacamole-auth-jdbc-base changes for GUACAMOLE-708, which defines the Interface for auto-creating missing users.

-Nick



Re: 1.2.0 WAR build issue guacamole-client

Posted by Sean Reid <se...@gmail.com>.
Hi Tom,

What version of the JDK are you using?

Sean

On Sat, Jun 27, 2020 at 4:06 AM Daniëls, Tom <Da...@buas.nl> wrote:

> Hi Nick,
>
>
>
> Thanks for the quick response and advise!
>
> Unfortunately the issue remains unresolved;
>
> user@guac:/home/user/git/guacamole-client# git fetch
>
> user@guac:/home/user/git/guacamole-client# git checkout staging/1.2.0​
>
> Branch 'staging/1.2.0' set up to track remote branch 'staging/1.2.0' from
> 'origin'.​
>
> Switched to a new branch 'staging/1.2.0'​
>
> user@guac:/home/user/git/guacamole-client# git reset --hard
> origin/staging/1.2.0​
>
> HEAD is now at 21ec5640a GUACAMOLE-728: Merge changes leveraging
> PostgreSQL's legacy "ssl" parameter only for disabling SSL.​
>
> ​
>
> [INFO] Reactor Summary:​
>
> [INFO]​
>
> [INFO] guacamole-common 1.1.0 ............................. SUCCESS [
>  9.397 s]​
>
> [INFO] guacamole-ext 1.2.0 ................................ SUCCESS [
>  9.934 s]​
>
> [INFO] guacamole-common-js 1.2.0 .......................... SUCCESS [
>  1.422 s]​
>
> [INFO] guacamole 1.2.0 .................................... SUCCESS [
> 14.684 s]​
>
> [INFO] guacamole-auth-cas 1.2.0 ........................... SUCCESS [
>  3.193 s]​
>
> [INFO] guacamole-auth-duo 1.2.0 ........................... SUCCESS [
>  2.998 s]​
>
> [INFO] guacamole-auth-header 1.2.0 ........................ SUCCESS [
>  0.359 s]​
>
> [INFO] guacamole-auth-jdbc 1.2.0 .......................... SUCCESS [
>  0.293 s]​
>
> [INFO] guacamole-auth-jdbc-base 1.2.0 ..................... SUCCESS [
>  3.441 s]​
>
> [INFO] guacamole-auth-jdbc-mysql 1.2.0 .................... FAILURE [
>  1.647 s]​
>
> [INFO] guacamole-auth-jdbc-postgresql 1.2.0 ............... SKIPPED​
>
> [INFO] guacamole-auth-jdbc-sqlserver 1.2.0 ................ SKIPPED​
>
> [INFO] guacamole-auth-jdbc-dist 1.2.0 ..................... SKIPPED​
>
> [INFO] guacamole-auth-ldap 1.2.0 .......................... SKIPPED​
>
> [INFO] guacamole-auth-openid 1.2.0 ........................ SKIPPED​
>
> [INFO] guacamole-auth-quickconnect 1.2.0 .................. SKIPPED​
>
> [INFO] guacamole-auth-saml 1.2.0 .......................... SKIPPED​
>
> [INFO] guacamole-auth-totp 1.2.0 .......................... SKIPPED​
>
> [INFO] guacamole-example 1.2.0 ............................ SKIPPED​
>
> [INFO] guacamole-playback-example 1.2.0 ................... SKIPPED​
>
> [INFO] guacamole-client 1.2.0 ............................. SKIPPED​
>
> [INFO]
> ------------------------------------------------------------------------​
>
> [INFO] BUILD FAILURE​
>
> [INFO]
> ------------------------------------------------------------------------​
>
> [INFO] Total time:  47.770 s​
>
> [INFO] Finished at: 2020-06-27T07:47:50Z​
>
> [INFO]
> ------------------------------------------------------------------------​
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.3:compile
> (default-compile) on project guacamole-auth-jdbc-mysql: Compilation failure
> ​
>
> [ERROR] /home/user/git/guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/org/apache/guacamole/auth/mysql/conf/MySQLEnvironment.java:[390,4]
> error: method does not override or implement a method from a supertype​
>
> [ERROR]​ -> [Help 1]​
>
> [ERROR]​
>
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.​
>
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.​
>
> [ERROR]​
>
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:​
>
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException​
>
> [ERROR]​
>
> [ERROR] After correcting the problems, you can resume the build with the
> command​
>
> [ERROR]   mvn <args> -rf :guacamole-auth-jdbc-mysql​
>
> ​
>
> Created debug info using command
>
> mvn package -X -rf :guacamole-auth-jdbc-mysql​
>
>
>
> I got these results;
>
> [WARNING] The POM for
> org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0 is missing, no
> dependency information available​
>
> [...]​
>
> ​
>
> [ERROR] Failed to execute goal on project guacamole-auth-jdbc-mysql:
> Could not resolve dependencies for project
> org.apache.guacamole:guacamole-auth-jdbc-mysql:jar:1.2.0: The following
> artifacts could not be resolved:
> org.apache.guacamole:guacamole-ext:jar:1.2.0,
> org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find
> artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (
> https://repo.maven.apache.org/maven2) -> [Help 1]​
>
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal on project guacamole-auth-jdbc-mysql: Could not resolve dependencies
> for project org.apache.guacamole:guacamole-auth-jdbc-mysql:jar:1.2.0: The
> following artifacts could not be resolved:
> org.apache.guacamole:guacamole-ext:jar:1.2.0,
> org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find
> artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (
> https://repo.maven.apache.org/maven2)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies
> (LifecycleDependencyResolver.java:269)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies
> (LifecycleDependencyResolver.java:147)​
>
>     at
> org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved
> (MojoExecutor.java:248)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:202)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:156)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:148)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:117)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:81)​
>
>     at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> (SingleThreadedBuilder.java:56)​
>
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> (LifecycleStarter.java:128)​
>
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)​
>
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)​
>
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)​
>
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)​
>
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)​
>
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)​
>
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native
> Method)​
>
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:62)​
>
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)​
>
>     at java.lang.reflect.Method.invoke (Method.java:564)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> (Launcher.java:282)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch
> (Launcher.java:225)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> (Launcher.java:406)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main
> (Launcher.java:347)​
>
> Caused by: org.apache.maven.project.DependencyResolutionException: Could
> not resolve dependencies for project
> org.apache.guacamole:guacamole-auth-jdbc-mysql:jar:1.2.0: The following
> artifacts could not be resolved:
> org.apache.guacamole:guacamole-ext:jar:1.2.0,
> org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find
> artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (
> https://repo.maven.apache.org/maven2)​
>
>     at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve
> (DefaultProjectDependenciesResolver.java:209)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies
> (LifecycleDependencyResolver.java:243)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies
> (LifecycleDependencyResolver.java:147)​
>
>     at
> org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved
> (MojoExecutor.java:248)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:202)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:156)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:148)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:117)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:81)​
>
>     at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> (SingleThreadedBuilder.java:56)​
>
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> (LifecycleStarter.java:128)​
>
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)​
>
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)​
>
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)​
>
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)​
>
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)​
>
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)​
>
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native
> Method)​
>
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:62)​
>
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)​
>
>     at java.lang.reflect.Method.invoke (Method.java:564)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> (Launcher.java:282)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch
> (Launcher.java:225)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> (Launcher.java:406)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main
> (Launcher.java:347)​
>
> Caused by: org.eclipse.aether.resolution.DependencyResolutionException:
> The following artifacts could not be resolved:
> org.apache.guacamole:guacamole-ext:jar:1.2.0,
> org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find
> artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (
> https://repo.maven.apache.org/maven2)​
>
>     at
> org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies
> (DefaultRepositorySystem.java:357)​
>
>     at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve
> (DefaultProjectDependenciesResolver.java:202)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies
> (LifecycleDependencyResolver.java:243)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies
> (LifecycleDependencyResolver.java:147)​
>
>     at
> org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved
> (MojoExecutor.java:248)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:202)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:156)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:148)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:117)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:81)​
>
>     at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> (SingleThreadedBuilder.java:56)​
>
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> (LifecycleStarter.java:128)​
>
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)​
>
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)​
>
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)​
>
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)​
>
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)​
>
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)​
>
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native
> Method)​
>
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:62)​
>
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)​
>
>     at java.lang.reflect.Method.invoke (Method.java:564)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> (Launcher.java:282)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch
> (Launcher.java:225)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> (Launcher.java:406)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main
> (Launcher.java:347)​
>
> Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The
> following artifacts could not be resolved:
> org.apache.guacamole:guacamole-ext:jar:1.2.0,
> org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find
> artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (
> https://repo.maven.apache.org/maven2)​
>
>     at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve
> (DefaultArtifactResolver.java:424)​
>
>     at
> org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts
> (DefaultArtifactResolver.java:229)​
>
>     at
> org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies
> (DefaultRepositorySystem.java:340)​
>
>     at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve
> (DefaultProjectDependenciesResolver.java:202)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies
> (LifecycleDependencyResolver.java:243)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies
> (LifecycleDependencyResolver.java:147)​
>
>     at
> org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved
> (MojoExecutor.java:248)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:202)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:156)​
>
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:148)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:117)​
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:81)​
>
>     at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> (SingleThreadedBuilder.java:56)​
>
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> (LifecycleStarter.java:128)​
>
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)​
>
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)​
>
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)​
>
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)​
>
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)​
>
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)​
>
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native
> Method)​
>
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:62)​
>
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)​
>
>     at java.lang.reflect.Method.invoke (Method.java:564)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> (Launcher.java:282)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch
> (Launcher.java:225)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> (Launcher.java:406)​
>
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main
> (Launcher.java:347)​
>
> Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could
> not find artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (
> https://repo.maven.apache.org/maven2)​
>
>     at
> org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed
> (ArtifactTransportListener.java:48)​
>
>     at
> org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run
> (BasicRepositoryConnector.java:369)​
>
>     at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run
> (RunnableErrorForwarder.java:75)​
>
>     at java.util.concurrent.ThreadPoolExecutor.runWorker
> (ThreadPoolExecutor.java:1130)​
>
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run
> (ThreadPoolExecutor.java:630)​
>
>     at java.lang.Thread.run (Thread.java:832)​
>
> [ERROR]​
>
> [ERROR]​
>
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:​
>
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
> ​
>
>
>
> ​ Server is running Ubuntu 20.04 fully patched.Hopefully someone can help
> me out of this bind.
>
>
>
> Kind regards
>
> Tom Daniels
>
>
>
>
>
> *From:* Nick Couchman <vn...@apache.org>
> *Sent:* vrijdag 26 juni 2020 14:41
> *To:* user@guacamole.apache.org
> *Subject:* Re: 1.2.0 WAR build issue guacamole-client
>
>
>
> On Fri, Jun 26, 2020 at 6:40 AM Daniëls, Tom <Da...@buas.nl> wrote:
>
> Hi Guys,
>
>
>
> Today I tried to update to the newest 1.2.0 code but the Client won’t
> build. It errors out on guacamole-auth-jdbc-mysql:
>
>
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.3:compile
> (default-compile) on project guacamole-auth-jdbc-mysql: Compilation failure
>
> [ERROR]
> /home/user/git/guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/org/apache/guacamole/auth/mysql/conf/MySQLEnvironment.java:[390,4]
> error: method does not override or implement a method from a supertype
>
> [ERROR]
>
> [ERROR] -> [Help 1]
>
> [ERROR]
>
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
>
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>
> [ERROR]
>
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
>
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>
> [ERROR]
>
> [ERROR] After correcting the problems, you can resume the build with the
> command
>
> [ERROR]   mvn <args> -rf :guacamole-auth-jdbc-mysql
>
>
>
> Anyone have any insight on how to fix this?
>
>
>
> I suspect your git tree is not completely up-to-date, as we have done
> several builds of the 1.2.0 code over the past 24 hours in preparation for
> the upcoming release, and we're not seeing this build problem.  If you have
> your own fork of the code then please make sure it is updated with the
> Apache repos.  If you're using the Apache repos directly, then make sure
> you're doing the "git pull" and that you haven't made any direct changes to
> the code that would block it completely pulling down the remote changes.
> The easiest thing to do, assuming you're on the Apache repos, would be:
>
>
>
> git fetch
>
> git checkout staging/1.2.0
>
> git reset --hard origin/staging/1.2.0
>
>
>
> and then try building, again.  Based on the error above it looks like
> you're missing the guacamole-auth-jdbc-base changes for GUACAMOLE-708,
> which defines the Interface for auto-creating missing users.
>
>
>
> -Nick
>
>
>
>
>

Re: 1.2.0 WAR build issue guacamole-client

Posted by Mike Jumper <mj...@apache.org>.
I think that second build attempt of just a single project fails because
it's executed out of context of the larger guacamole-client build, and thus
is unaware that guacamole-ext is there.

Regarding the original error:

"[ERROR]
/home/user/git/guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/org/apache/guacamole/auth/mysql/conf/MySQLEnvironment.java:[390,4]
error: method does not override or implement a method from a supertype"

Line 390 is:

    @Override
    public boolean autoCreateAbsentAccounts() throws GuacamoleException {
        return
getProperty(MySQLGuacamoleProperties.MYSQL_AUTO_CREATE_ACCOUNTS,
                false);
    }

https://github.com/apache/guacamole-client/blob/21ec5640a560f95725c081391d9943d5d0beb88d/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/org/apache/guacamole/auth/mysql/conf/MySQLEnvironment.java#L390-L394

which is a method of that class' direct supertype (JDBCEnvironment):

    public abstract boolean autoCreateAbsentAccounts() throws
GuacamoleException;

https://github.com/apache/guacamole-client/blob/21ec5640a560f95725c081391d9943d5d0beb88d/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/JDBCEnvironment.java#L169

I don't have any idea what could be happening here given that "git reset"
should have ensured any local modifications were wiped away. It may be
worth checking "git status" just in case, but the error makes no sense
given the relevant code. Besides not occurring when I did my own
pre-release-candidate rebuild and tests, our Jenkins job has been building
things successfully.

- Mike

On Sat, Jun 27, 2020, 07:11 Nick Couchman <vn...@apache.org> wrote:

>
>
> On Sat, Jun 27, 2020 at 4:06 AM Daniëls, Tom <Da...@buas.nl> wrote:
>
>> Hi Nick,
>>
>>
>>
>> Thanks for the quick response and advise!
>>
>> Unfortunately the issue remains unresolved;
>>
>> user@guac:/home/user/git/guacamole-client# git fetch
>>
>> user@guac:/home/user/git/guacamole-client# git checkout staging/1.2.0
>>
>> Branch 'staging/1.2.0' set up to track remote branch 'staging/1.2.0' from
>> 'origin'.
>>
>> Switched to a new branch 'staging/1.2.0'
>>
>> user@guac:/home/user/git/guacamole-client# git reset --hard
>> origin/staging/1.2.0
>>
>> HEAD is now at 21ec5640a GUACAMOLE-728: Merge changes leveraging
>> PostgreSQL's legacy "ssl" parameter only for disabling SSL.
>>
>> [INFO] Reactor Summary:
>>
>> [INFO]
>>
>> [INFO] guacamole-common 1.1.0 ............................. SUCCESS [
>>  9.397 s]
>>
>> [INFO] guacamole-ext 1.2.0 ................................ SUCCESS [
>>  9.934 s]
>>
>> [INFO] guacamole-common-js 1.2.0 .......................... SUCCESS [
>>  1.422 s]
>>
>> [INFO] guacamole 1.2.0 .................................... SUCCESS [
>> 14.684 s]
>>
>> [INFO] guacamole-auth-cas 1.2.0 ........................... SUCCESS [
>>  3.193 s]
>>
>> [INFO] guacamole-auth-duo 1.2.0 ........................... SUCCESS [
>>  2.998 s]
>>
>> [INFO] guacamole-auth-header 1.2.0 ........................ SUCCESS [
>>  0.359 s]
>>
>> [INFO] guacamole-auth-jdbc 1.2.0 .......................... SUCCESS [
>>  0.293 s]
>>
>> [INFO] guacamole-auth-jdbc-base 1.2.0 ..................... SUCCESS [
>>  3.441 s]
>>
>> [INFO] guacamole-auth-jdbc-mysql 1.2.0 .................... FAILURE [
>>  1.647 s]
>>
>> [INFO] guacamole-auth-jdbc-postgresql 1.2.0 ............... SKIPPED
>>
>> [INFO] guacamole-auth-jdbc-sqlserver 1.2.0 ................ SKIPPED
>>
>> [INFO] guacamole-auth-jdbc-dist 1.2.0 ..................... SKIPPED
>>
>> [INFO] guacamole-auth-ldap 1.2.0 .......................... SKIPPED
>>
>> [INFO] guacamole-auth-openid 1.2.0 ........................ SKIPPED
>>
>> [INFO] guacamole-auth-quickconnect 1.2.0 .................. SKIPPED
>>
>> [INFO] guacamole-auth-saml 1.2.0 .......................... SKIPPED
>>
>> [INFO] guacamole-auth-totp 1.2.0 .......................... SKIPPED
>>
>> [INFO] guacamole-example 1.2.0 ............................ SKIPPED
>>
>> [INFO] guacamole-playback-example 1.2.0 ................... SKIPPED
>>
>> [INFO] guacamole-client 1.2.0 ............................. SKIPPED
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> [INFO] BUILD FAILURE
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> [INFO] Total time:  47.770 s
>>
>> [INFO] Finished at: 2020-06-27T07:47:50Z
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-compiler-plugin:3.3:compile
>> (default-compile) on project guacamole-auth-jdbc-mysql: Compilation failure
>>
>> [ERROR] /home/user/git/guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/org/apache/guacamole/auth/mysql/conf/MySQLEnvironment.java:[390,4]
>> error: method does not override or implement a method from a supertype
>>
>> [ERROR] -> [Help 1]
>>
>> [ERROR]
>>
>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>> -e switch.
>>
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>
>> [ERROR]
>>
>> [ERROR] For more information about the errors and possible solutions,
>> please read the following articles:
>>
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>>
>> [ERROR]
>>
>> [ERROR] After correcting the problems, you can resume the build with the
>> command
>>
>> [ERROR]   mvn <args> -rf :guacamole-auth-jdbc-mysql
>>
>> Created debug info using command
>>
>> mvn package -X -rf :guacamole-auth-jdbc-mysql
>>
>>
>>
>> I got these results;
>>
>> [WARNING] The POM for
>> org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0 is missing, no
>> dependency information available
>>
>> [...]
>>
>>
> This is strange - it should have just built this.  Almost certainly the
> cause of the issues you're seeing.  Can you try building with:
>
> mvn clean package
>
> and see if that works?
>
> -NIck
>
>>

RE: 1.2.0 WAR build issue guacamole-client

Posted by Daniëls, Tom <Da...@buas.nl>.
Yeah it’s really weird. I have build a couple of 1.2.0 Wars without issue.
git status
On branch staging/1.2.0
Your branch is up to date with 'origin/staging/1.2.0'.

nothing to commit, working tree clean

when running maven clean package it tries to use the also installed JDK14 and errors out, is there any way to force it to use JDK8 like with a normal run?

From: Nick Couchman <vn...@apache.org>
Sent: zaterdag 27 juni 2020 16:11
To: user@guacamole.apache.org
Subject: Re: 1.2.0 WAR build issue guacamole-client



On Sat, Jun 27, 2020 at 4:06 AM Daniëls, Tom <Da...@buas.nl>> wrote:
Hi Nick,

Thanks for the quick response and advise!
Unfortunately the issue remains unresolved;
user@guac:/home/user/git/guacamole-client# git fetch
user@guac:/home/user/git/guacamole-client# git checkout staging/1.2.0
Branch 'staging/1.2.0' set up to track remote branch 'staging/1.2.0' from 'origin'.
Switched to a new branch 'staging/1.2.0'
user@guac:/home/user/git/guacamole-client# git reset --hard origin/staging/1.2.0
HEAD is now at 21ec5640a GUACAMOLE-728: Merge changes leveraging PostgreSQL's legacy "ssl" parameter only for disabling SSL.
[INFO] Reactor Summary:
[INFO]
[INFO] guacamole-common 1.1.0 ............................. SUCCESS [  9.397 s]
[INFO] guacamole-ext 1.2.0 ................................ SUCCESS [  9.934 s]
[INFO] guacamole-common-js 1.2.0 .......................... SUCCESS [  1.422 s]
[INFO] guacamole 1.2.0 .................................... SUCCESS [ 14.684 s]
[INFO] guacamole-auth-cas 1.2.0 ........................... SUCCESS [  3.193 s]
[INFO] guacamole-auth-duo 1.2.0 ........................... SUCCESS [  2.998 s]
[INFO] guacamole-auth-header 1.2.0 ........................ SUCCESS [  0.359 s]
[INFO] guacamole-auth-jdbc 1.2.0 .......................... SUCCESS [  0.293 s]
[INFO] guacamole-auth-jdbc-base 1.2.0 ..................... SUCCESS [  3.441 s]
[INFO] guacamole-auth-jdbc-mysql 1.2.0 .................... FAILURE [  1.647 s]
[INFO] guacamole-auth-jdbc-postgresql 1.2.0 ............... SKIPPED
[INFO] guacamole-auth-jdbc-sqlserver 1.2.0 ................ SKIPPED
[INFO] guacamole-auth-jdbc-dist 1.2.0 ..................... SKIPPED
[INFO] guacamole-auth-ldap 1.2.0 .......................... SKIPPED
[INFO] guacamole-auth-openid 1.2.0 ........................ SKIPPED
[INFO] guacamole-auth-quickconnect 1.2.0 .................. SKIPPED
[INFO] guacamole-auth-saml 1.2.0 .......................... SKIPPED
[INFO] guacamole-auth-totp 1.2.0 .......................... SKIPPED
[INFO] guacamole-example 1.2.0 ............................ SKIPPED
[INFO] guacamole-playback-example 1.2.0 ................... SKIPPED
[INFO] guacamole-client 1.2.0 ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  47.770 s
[INFO] Finished at: 2020-06-27T07:47:50Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project guacamole-auth-jdbc-mysql: Compilation failure
[ERROR] /home/user/git/guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/org/apache/guacamole/auth/mysql/conf/MySQLEnvironment.java:[390,4] error: method does not override or implement a method from a supertype
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :guacamole-auth-jdbc-mysql
Created debug info using command
mvn package -X -rf :guacamole-auth-jdbc-mysql

I got these results;
[WARNING] The POM for org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0 is missing, no dependency information available
[...]

This is strange - it should have just built this.  Almost certainly the cause of the issues you're seeing.  Can you try building with:

mvn clean package

and see if that works?

-NIck

Re: 1.2.0 WAR build issue guacamole-client

Posted by Nick Couchman <vn...@apache.org>.
On Sat, Jun 27, 2020 at 4:06 AM Daniëls, Tom <Da...@buas.nl> wrote:

> Hi Nick,
>
>
>
> Thanks for the quick response and advise!
>
> Unfortunately the issue remains unresolved;
>
> user@guac:/home/user/git/guacamole-client# git fetch
>
> user@guac:/home/user/git/guacamole-client# git checkout staging/1.2.0
>
> Branch 'staging/1.2.0' set up to track remote branch 'staging/1.2.0' from
> 'origin'.
>
> Switched to a new branch 'staging/1.2.0'
>
> user@guac:/home/user/git/guacamole-client# git reset --hard
> origin/staging/1.2.0
>
> HEAD is now at 21ec5640a GUACAMOLE-728: Merge changes leveraging
> PostgreSQL's legacy "ssl" parameter only for disabling SSL.
>
> [INFO] Reactor Summary:
>
> [INFO]
>
> [INFO] guacamole-common 1.1.0 ............................. SUCCESS [
>  9.397 s]
>
> [INFO] guacamole-ext 1.2.0 ................................ SUCCESS [
>  9.934 s]
>
> [INFO] guacamole-common-js 1.2.0 .......................... SUCCESS [
>  1.422 s]
>
> [INFO] guacamole 1.2.0 .................................... SUCCESS [
> 14.684 s]
>
> [INFO] guacamole-auth-cas 1.2.0 ........................... SUCCESS [
>  3.193 s]
>
> [INFO] guacamole-auth-duo 1.2.0 ........................... SUCCESS [
>  2.998 s]
>
> [INFO] guacamole-auth-header 1.2.0 ........................ SUCCESS [
>  0.359 s]
>
> [INFO] guacamole-auth-jdbc 1.2.0 .......................... SUCCESS [
>  0.293 s]
>
> [INFO] guacamole-auth-jdbc-base 1.2.0 ..................... SUCCESS [
>  3.441 s]
>
> [INFO] guacamole-auth-jdbc-mysql 1.2.0 .................... FAILURE [
>  1.647 s]
>
> [INFO] guacamole-auth-jdbc-postgresql 1.2.0 ............... SKIPPED
>
> [INFO] guacamole-auth-jdbc-sqlserver 1.2.0 ................ SKIPPED
>
> [INFO] guacamole-auth-jdbc-dist 1.2.0 ..................... SKIPPED
>
> [INFO] guacamole-auth-ldap 1.2.0 .......................... SKIPPED
>
> [INFO] guacamole-auth-openid 1.2.0 ........................ SKIPPED
>
> [INFO] guacamole-auth-quickconnect 1.2.0 .................. SKIPPED
>
> [INFO] guacamole-auth-saml 1.2.0 .......................... SKIPPED
>
> [INFO] guacamole-auth-totp 1.2.0 .......................... SKIPPED
>
> [INFO] guacamole-example 1.2.0 ............................ SKIPPED
>
> [INFO] guacamole-playback-example 1.2.0 ................... SKIPPED
>
> [INFO] guacamole-client 1.2.0 ............................. SKIPPED
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] BUILD FAILURE
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Total time:  47.770 s
>
> [INFO] Finished at: 2020-06-27T07:47:50Z
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.3:compile
> (default-compile) on project guacamole-auth-jdbc-mysql: Compilation failure
>
> [ERROR] /home/user/git/guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/org/apache/guacamole/auth/mysql/conf/MySQLEnvironment.java:[390,4]
> error: method does not override or implement a method from a supertype
>
> [ERROR] -> [Help 1]
>
> [ERROR]
>
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
>
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>
> [ERROR]
>
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
>
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>
> [ERROR]
>
> [ERROR] After correcting the problems, you can resume the build with the
> command
>
> [ERROR]   mvn <args> -rf :guacamole-auth-jdbc-mysql
>
> Created debug info using command
>
> mvn package -X -rf :guacamole-auth-jdbc-mysql
>
>
>
> I got these results;
>
> [WARNING] The POM for
> org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0 is missing, no
> dependency information available
>
> [...]
>
>
This is strange - it should have just built this.  Almost certainly the
cause of the issues you're seeing.  Can you try building with:

mvn clean package

and see if that works?

-NIck

>

RE: 1.2.0 WAR build issue guacamole-client

Posted by Daniëls, Tom <Da...@buas.nl>.
Hi Nick,

Thanks for the quick response and advise!
Unfortunately the issue remains unresolved;
user@guac:/home/user/git/guacamole-client# git fetch
user@guac:/home/user/git/guacamole-client# git checkout staging/1.2.0​
Branch 'staging/1.2.0' set up to track remote branch 'staging/1.2.0' from 'origin'.​
Switched to a new branch 'staging/1.2.0'​
user@guac:/home/user/git/guacamole-client# git reset --hard origin/staging/1.2.0​
HEAD is now at 21ec5640a GUACAMOLE-728: Merge changes leveraging PostgreSQL's legacy "ssl" parameter only for disabling SSL.​
​
[INFO] Reactor Summary:​
[INFO]​
[INFO] guacamole-common 1.1.0 ............................. SUCCESS [  9.397 s]​
[INFO] guacamole-ext 1.2.0 ................................ SUCCESS [  9.934 s]​
[INFO] guacamole-common-js 1.2.0 .......................... SUCCESS [  1.422 s]​
[INFO] guacamole 1.2.0 .................................... SUCCESS [ 14.684 s]​
[INFO] guacamole-auth-cas 1.2.0 ........................... SUCCESS [  3.193 s]​
[INFO] guacamole-auth-duo 1.2.0 ........................... SUCCESS [  2.998 s]​
[INFO] guacamole-auth-header 1.2.0 ........................ SUCCESS [  0.359 s]​
[INFO] guacamole-auth-jdbc 1.2.0 .......................... SUCCESS [  0.293 s]​
[INFO] guacamole-auth-jdbc-base 1.2.0 ..................... SUCCESS [  3.441 s]​
[INFO] guacamole-auth-jdbc-mysql 1.2.0 .................... FAILURE [  1.647 s]​
[INFO] guacamole-auth-jdbc-postgresql 1.2.0 ............... SKIPPED​
[INFO] guacamole-auth-jdbc-sqlserver 1.2.0 ................ SKIPPED​
[INFO] guacamole-auth-jdbc-dist 1.2.0 ..................... SKIPPED​
[INFO] guacamole-auth-ldap 1.2.0 .......................... SKIPPED​
[INFO] guacamole-auth-openid 1.2.0 ........................ SKIPPED​
[INFO] guacamole-auth-quickconnect 1.2.0 .................. SKIPPED​
[INFO] guacamole-auth-saml 1.2.0 .......................... SKIPPED​
[INFO] guacamole-auth-totp 1.2.0 .......................... SKIPPED​
[INFO] guacamole-example 1.2.0 ............................ SKIPPED​
[INFO] guacamole-playback-example 1.2.0 ................... SKIPPED​
[INFO] guacamole-client 1.2.0 ............................. SKIPPED​
[INFO] ------------------------------------------------------------------------​
[INFO] BUILD FAILURE​
[INFO] ------------------------------------------------------------------------​
[INFO] Total time:  47.770 s​
[INFO] Finished at: 2020-06-27T07:47:50Z​
[INFO] ------------------------------------------------------------------------​
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project guacamole-auth-jdbc-mysql: Compilation failure​
[ERROR] /home/user/git/guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/org/apache/guacamole/auth/mysql/conf/MySQLEnvironment.java:[390,4] error: method does not override or implement a method from a supertype​
[ERROR]​ -> [Help 1]​
[ERROR]​
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.​
[ERROR] Re-run Maven using the -X switch to enable full debug logging.​
[ERROR]​
[ERROR] For more information about the errors and possible solutions, please read the following articles:​
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException​
[ERROR]​
[ERROR] After correcting the problems, you can resume the build with the command​
[ERROR]   mvn <args> -rf :guacamole-auth-jdbc-mysql​
​
Created debug info using command
mvn package -X -rf :guacamole-auth-jdbc-mysql​

I got these results;
[WARNING] The POM for org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0 is missing, no dependency information available​
[...]​
​
[ERROR] Failed to execute goal on project guacamole-auth-jdbc-mysql: Could not resolve dependencies for project org.apache.guacamole:guacamole-auth-jdbc-mysql:jar:1.2.0: The following artifacts could not be resolved: org.apache.guacamole:guacamole-ext:jar:1.2.0, org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (https://repo.maven.apache.org/maven2) -> [Help 1]​
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project guacamole-auth-jdbc-mysql: Could not resolve dependencies for project org.apache.guacamole:guacamole-auth-jdbc-mysql:jar:1.2.0: The following artifacts could not be resolved: org.apache.guacamole:guacamole-ext:jar:1.2.0, org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (https://repo.maven.apache.org/maven2)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:269)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:248)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:202)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)​
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)​
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)​
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)​
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)​
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)​
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)​
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)​
    at java.lang.reflect.Method.invoke (Method.java:564)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)​
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.apache.guacamole:guacamole-auth-jdbc-mysql:jar:1.2.0: The following artifacts could not be resolved: org.apache.guacamole:guacamole-ext:jar:1.2.0, org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (https://repo.maven.apache.org/maven2)​
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve (DefaultProjectDependenciesResolver.java:209)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:243)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:248)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:202)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)​
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)​
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)​
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)​
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)​
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)​
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)​
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)​
    at java.lang.reflect.Method.invoke (Method.java:564)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)​
Caused by: org.eclipse.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: org.apache.guacamole:guacamole-ext:jar:1.2.0, org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (https://repo.maven.apache.org/maven2)​
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies (DefaultRepositorySystem.java:357)​
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve (DefaultProjectDependenciesResolver.java:202)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:243)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:248)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:202)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)​
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)​
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)​
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)​
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)​
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)​
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)​
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)​
    at java.lang.reflect.Method.invoke (Method.java:564)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)​
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: org.apache.guacamole:guacamole-ext:jar:1.2.0, org.apache.guacamole:guacamole-auth-jdbc-base:jar:1.2.0: Could not find artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (https://repo.maven.apache.org/maven2)​
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:424)​
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts (DefaultArtifactResolver.java:229)​
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies (DefaultRepositorySystem.java:340)​
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve (DefaultProjectDependenciesResolver.java:202)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:243)​
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:248)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:202)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)​
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)​
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)​
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)​
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)​
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)​
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)​
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)​
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)​
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)​
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)​
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)​
    at java.lang.reflect.Method.invoke (Method.java:564)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)​
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)​
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.apache.guacamole:guacamole-ext:jar:1.2.0 in central (https://repo.maven.apache.org/maven2)​
    at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed (ArtifactTransportListener.java:48)​
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run (BasicRepositoryConnector.java:369)​
    at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run (RunnableErrorForwarder.java:75)​
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1130)​
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:630)​
    at java.lang.Thread.run (Thread.java:832)​
[ERROR]​
[ERROR]​
[ERROR] For more information about the errors and possible solutions, please read the following articles:​
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException​

​ Server is running Ubuntu 20.04 fully patched.Hopefully someone can help me out of this bind.

Kind regards
Tom Daniels


From: Nick Couchman <vn...@apache.org>
Sent: vrijdag 26 juni 2020 14:41
To: user@guacamole.apache.org
Subject: Re: 1.2.0 WAR build issue guacamole-client

On Fri, Jun 26, 2020 at 6:40 AM Daniëls, Tom <Da...@buas.nl>> wrote:
Hi Guys,

Today I tried to update to the newest 1.2.0 code but the Client won’t build. It errors out on guacamole-auth-jdbc-mysql:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project guacamole-auth-jdbc-mysql: Compilation failure
[ERROR] /home/user/git/guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/org/apache/guacamole/auth/mysql/conf/MySQLEnvironment.java:[390,4] error: method does not override or implement a method from a supertype
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :guacamole-auth-jdbc-mysql

Anyone have any insight on how to fix this?

I suspect your git tree is not completely up-to-date, as we have done several builds of the 1.2.0 code over the past 24 hours in preparation for the upcoming release, and we're not seeing this build problem.  If you have your own fork of the code then please make sure it is updated with the Apache repos.  If you're using the Apache repos directly, then make sure you're doing the "git pull" and that you haven't made any direct changes to the code that would block it completely pulling down the remote changes.  The easiest thing to do, assuming you're on the Apache repos, would be:

git fetch
git checkout staging/1.2.0
git reset --hard origin/staging/1.2.0

and then try building, again.  Based on the error above it looks like you're missing the guacamole-auth-jdbc-base changes for GUACAMOLE-708, which defines the Interface for auto-creating missing users.

-Nick



Re: 1.2.0 WAR build issue guacamole-client

Posted by Nick Couchman <vn...@apache.org>.
On Fri, Jun 26, 2020 at 6:40 AM Daniëls, Tom <Da...@buas.nl> wrote:

> Hi Guys,
>
>
>
> Today I tried to update to the newest 1.2.0 code but the Client won’t
> build. It errors out on guacamole-auth-jdbc-mysql:
>
>
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.3:compile
> (default-compile) on project guacamole-auth-jdbc-mysql: Compilation failure
>
> [ERROR]
> /home/user/git/guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/org/apache/guacamole/auth/mysql/conf/MySQLEnvironment.java:[390,4]
> error: method does not override or implement a method from a supertype
>
> [ERROR]
>
> [ERROR] -> [Help 1]
>
> [ERROR]
>
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
>
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>
> [ERROR]
>
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
>
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>
> [ERROR]
>
> [ERROR] After correcting the problems, you can resume the build with the
> command
>
> [ERROR]   mvn <args> -rf :guacamole-auth-jdbc-mysql
>
>
>
> Anyone have any insight on how to fix this?
>
>
I suspect your git tree is not completely up-to-date, as we have done
several builds of the 1.2.0 code over the past 24 hours in preparation for
the upcoming release, and we're not seeing this build problem.  If you have
your own fork of the code then please make sure it is updated with the
Apache repos.  If you're using the Apache repos directly, then make sure
you're doing the "git pull" and that you haven't made any direct changes to
the code that would block it completely pulling down the remote changes.
The easiest thing to do, assuming you're on the Apache repos, would be:

git fetch
git checkout staging/1.2.0
git reset --hard origin/staging/1.2.0

and then try building, again.  Based on the error above it looks like
you're missing the guacamole-auth-jdbc-base changes for GUACAMOLE-708,
which defines the Interface for auto-creating missing users.

-Nick