p2-inc / keycloak-magic-link

Magic Link Authentication for Keycloak
https://phasetwo.io
Other
222 stars 44 forks source link

`mvn clean install` fails on latest main commit #4

Closed tstec-polypoly closed 1 year ago

tstec-polypoly commented 1 year ago

Sorry in advance if this is an obvious issue on my side... I know nothing about Java.

I'm trying to build using homebrew's latest maven package to build the plugin.

On the (currently) penultimate commit f532f15 mvn clean install succeeds.

... but on current latest master commit aeae846, mvn clean install fails with the following:

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Volumes/dev/keycloak-magic-link/src/main/java/io/phasetwo/keycloak/magic/auth/MagicLinkAuthenticator.java:[57,5] cannot find symbol
  symbol:   class MagicLinkActionToken
  location: class io.phasetwo.keycloak.magic.auth.MagicLinkAuthenticator
[ERROR] /Volumes/dev/keycloak-magic-link/src/main/java/io/phasetwo/keycloak/magic/auth/MagicLinkAuthenticator.java:[65,12] cannot find symbol
  symbol:   method setAuthNote(java.lang.String,java.lang.String)
  location: variable context of type org.keycloak.authentication.AuthenticationFlowContext
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.547 s
[INFO] Finished at: 2022-08-26T17:26:42+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project keycloak-magic-link: Compilation failure: Compilation failure:
[ERROR] /Volumes/dev/keycloak-magic-link/src/main/java/io/phasetwo/keycloak/magic/auth/MagicLinkAuthenticator.java:[57,5] cannot find symbol
[ERROR]   symbol:   class MagicLinkActionToken
[ERROR]   location: class io.phasetwo.keycloak.magic.auth.MagicLinkAuthenticator
[ERROR] /Volumes/dev/keycloak-magic-link/src/main/java/io/phasetwo/keycloak/magic/auth/MagicLinkAuthenticator.java:[65,12] cannot find symbol
[ERROR]   symbol:   method setAuthNote(java.lang.String,java.lang.String)
[ERROR]   location: variable context of type org.keycloak.authentication.AuthenticationFlowContext
[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
tstec-polypoly commented 1 year ago

FYI, I get the same error when trying to build in the latest maven container.

xgp commented 1 year ago

@tstec-polypoly this should be fixed now.

tstec-polypoly commented 1 year ago

Sweet! Thanks for the quick response.