Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java SDK: BUILD FAILURE #90

Open
semigreeny opened this issue Aug 15, 2023 · 1 comment
Open

Java SDK: BUILD FAILURE #90

semigreeny opened this issue Aug 15, 2023 · 1 comment

Comments

@semigreeny
Copy link

[INFO] Changes detected - recompiling the module!
[INFO] Compiling 179 source files to /private/var/tmp/rest-api-sdk/Java/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /private/var/tmp/rest-api-sdk/Java/src/main/java/localhost/http/client/HttpClientConfiguration.java:[45,29] cannot find symbol
  symbol:   method isSkipSslCertVerification()
  location: variable configuration of type io.apimatic.coreinterfaces.http.ClientConfiguration
[ERROR] /private/var/tmp/rest-api-sdk/Java/src/main/java/localhost/http/client/HttpClientConfiguration.java:[207,33] cannot find symbol
  symbol:   method isSkipSslCertVerification(boolean)
  location: variable configurationBuilder of type io.apimatic.core.configurations.http.client.CoreHttpClientConfiguration.Builder
[INFO] 2 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  9.830 s
[INFO] Finished at: 2023-08-15T09:48:58+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project rest-api-sdk-lib: Compilation failure: Compilation failure: 
[ERROR] /private/var/tmp/rest-api-sdk/Java/src/main/java/localhost/http/client/HttpClientConfiguration.java:[45,29] cannot find symbol
[ERROR]   symbol:   method isSkipSslCertVerification()
[ERROR]   location: variable configuration of type io.apimatic.coreinterfaces.http.ClientConfiguration
[ERROR] /private/var/tmp/rest-api-sdk/Java/src/main/java/localhost/http/client/HttpClientConfiguration.java:[207,33] cannot find symbol
[ERROR]   symbol:   method isSkipSslCertVerification(boolean)
[ERROR]   location: variable configurationBuilder of type io.apimatic.core.configurations.http.client.CoreHttpClientConfiguration.Builder
[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

I simply ran mvn clean package and I'm using JDK11.

Let me know if you need more information to troubleshoot the issue.

@alim117
Copy link

alim117 commented Jan 17, 2024

You may want to try Speakeasy (https://www.speakeasyapi.dev/) to generate Java SDKs without compilation errors like the one reported above.

cc Speakeasy team to see if they can provide some good starting points: @ThomasRooney @simplesagar @chase-crumbaugh @TristanSpeakEasy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants