cooperlyt / keycloak-phone-provider

A Keycloak provider for phone and SMS
MIT License
252 stars 147 forks source link

mvn package issue #61

Open maaariii opened 1 year ago

maaariii commented 1 year ago

When I put "mvn package" in home directory of project, I face following error, Can you please help me

"[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] keycloak-phone-provider [pom] [INFO] keycloak-phone-provider [jar] [INFO] keycloak-phone-provider.resources [jar] [INFO] keycloak-sms-provider-twilio [jar] [INFO] [INFO] ------------< cc.coopersoft:keycloak-phone-provider-parent >------------ [INFO] Building keycloak-phone-provider 2.3.4-snapshot [1/4] [INFO] --------------------------------[ pom ]--------------------------------- [WARNING] The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.10.0 is missing, no dependency information available [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for keycloak-phone-provider 2.3.4-snapshot: [INFO] [INFO] keycloak-phone-provider ............................ FAILURE [ 0.013 s] [INFO] keycloak-phone-provider ............................ SKIPPED [INFO] keycloak-phone-provider.resources .................. SKIPPED [INFO] keycloak-sms-provider-twilio ....................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.097 s [INFO] Finished at: 2023-06-27T16:05:54+05:30 [INFO] ------------------------------------------------------------------------ [ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.10.0 or one of its dependencies could not be resolved: Failure to find org.apache.maven.plugins:maven-resources-plugin:jar:2.10.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1] [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/PluginResolutionException "

cooperlyt commented 1 year ago

check your maven version . Apache Maven 3.8.6 is work for me.

maaariii commented 1 year ago

What is your java version.My java version is 11.0.19. and maven version is 3.6.3

maaariii commented 1 year ago

It's work for me after putting following changes mentioned below in attached images Screenshot from 2023-06-27 19-33-16 Screenshot from 2023-06-27 19-32-56

cooperlyt commented 1 year ago

keycloak 21.X.X need java 17 +

maaariii commented 1 year ago

keycloak 21.X.X need java 17 +

Yes, understood. But I've faced another Issue in DefaultPhoneVerificationCodeProvider file. So, I comment below code. Please find it in attachment. Screenshot from 2023-06-27 19-33-16

maaariii commented 1 year ago

keycloak 21.X.X need java 17 +

Yes, understood. But I've faced another Issue in DefaultPhoneVerificationCodeProvider file. So, I comment below code. Please find it in attachment. Screenshot from 2023-06-27 19-33-16

Screenshot from 2023-06-27 19-32-56