duosecurity / duo_java

Duo two-factor authentication for Java web applications
http://www.duosecurity.com/
Other
31 stars 32 forks source link

build duoWeb not working #21

Closed littlechicks closed 3 years ago

littlechicks commented 3 years ago

I am trying to build DuoWeb using tutorial at https://osc.github.io/ood-documentation/master/authentication/duo-2fa-with-keycloak.html

image

But I have theses errors...

[INFO] 
[INFO] -----------------------< com.duosecurity:DuoWeb >-----------------------
[INFO] Building DuoWeb 1.3
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ DuoWeb ---
[INFO] Deleting /home/abentabib/code/gitlab/abe/IAM-SSO-Projects/keycloak/spi/toto/keycloak-duo-spi/build/duo_java/DuoWeb/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ DuoWeb ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/abentabib/code/gitlab/abe/IAM-SSO-Projects/keycloak/spi/toto/keycloak-duo-spi/build/duo_java/DuoWeb/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ DuoWeb ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 4 source files to /home/abentabib/code/gitlab/abe/IAM-SSO-Projects/keycloak/spi/toto/keycloak-duo-spi/build/duo_java/DuoWeb/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] Source option 5 is no longer supported. Use 6 or later.
[ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
[INFO] 2 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.387 s
[INFO] Finished at: 2021-10-28T15:46:07+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project DuoWeb: Compilation failure: Compilation failure: 
[ERROR] Source option 5 is no longer supported. Use 6 or later.
[ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
[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

Maven env :

Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 11.0.12, vendor: Debian, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: fr_FR, platform encoding: UTF-8
OS name: "linux", version: "4.19.0-6-amd64", arch: "amd64", family: "unix"

Why the build work with your build box container ? Is the repo used in your buildbox container different from here ?