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

Unable to build the project #3

Open
gvsrini opened this issue Sep 26, 2021 · 4 comments
Open

Unable to build the project #3

gvsrini opened this issue Sep 26, 2021 · 4 comments

Comments

@gvsrini
Copy link

gvsrini commented Sep 26, 2021

I have setup JCO3 and run the example from Hibersap successfully.

But I am unable to build your project. I had to change the pom to suit my requirement:

This is my pom.xml: pom.xml.txt

This is the error I am getting right now:

[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ generator ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 9 source files to D:\Projects\hibersap-maven-plugin\target\classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] /D:/Projects/hibersap-maven-plugin/src/main/java/org/hibersap/plugin/GenerateEntitiesMojo.java: D:\Projects\hibersap-maven-plugin\src\main\java\org\hibersap\plugin\GenerateEntitiesMojo.java uses or overrides a deprecated API.
[WARNING] /D:/Projects/hibersap-maven-plugin/src/main/java/org/hibersap/plugin/GenerateEntitiesMojo.java: Recompile with -Xlint:deprecation for details.
[WARNING] Some messages have been simplified; recompile with -Xdiags:verbose to get full output
[INFO] 3 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /D:/Projects/hibersap-maven-plugin/src/main/java/org/hibersap/generator/sap/SAPEntityBuilder.java:[251,77] incompatible types: java.util.Set<org.hibersap.mapping.model.FieldMapping> cannot be converted to java.util.Set<org.hibersap.mapping.model.ParameterMapping>
[ERROR] /D:/Projects/hibersap-maven-plugin/src/main/java/org/hibersap/generator/sap/SAPEntityBuilder.java:[255,96] incompatible types: java.util.Set<org.hibersap.mapping.model.FieldMapping> cannot be converted to java.util.Set<org.hibersap.mapping.model.ParameterMapping>
[INFO] 2 errors

Could you help me, please.

@cerker
Copy link

cerker commented Sep 27, 2021

Which Java version are you using?

@hurzelpurzel
Copy link
Owner

hurzelpurzel commented Sep 27, 2021

Refer to the given pom.xml it sems to be Java 8

@hurzelpurzel
Copy link
Owner

@gvsrini : I did a change on the development branch. It was updated to Hibersap 1.2.0, and the unnecessary cast was disabled by me. Since I currently don't have access to any SAP system, I'm not able to test it.
So please feel free to try it out.

@hurzelpurzel
Copy link
Owner

@cerker : I would like to donate this plugin to the main hibersap project, since it was inspired by your forge stuff. Do you have interest ? And how can I hand it over to you ?

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

3 participants