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 <[email protected]> wrote:
>
>
> On Sat, Jun 27, 2020 at 4:06 AM Daniëls, Tom <[email protected]> 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
>
>>