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
incompatible types: com.exadel.frs.core.trainservice.dto.FindFacesResultDto cannot be converted to com.exadel.frs.core.trainservice.dto.FacePredictionResultDto #828
Comments
Are you sure that versions of your dependencies are the same as on the master branch? There could be non-compatibilities between dependencies. For example, late versions of Lombok might be non-compatible with old versions of Mapstruct. |
i took master branch , then build with java 11 , api not building
|
for information for admin project i updated all depenencies with last version and project is working "just to test" |
Have you built the project from the ./CompreFace/java folder through the following command: mvn clean install? |
i launched from intellij java folder or api folder it is the same error, i have java18 installed and only on intellij i can switch easily java version. I f i launch on terminal command directly it is java 18 used |
You can try to reimport all dependencies and try to build the project again. |
I can reproduce the problem. It occurs for me when I change the Lombok version from 1.18.12 to 1.18.22 in root pom.xml (I'm using java 11). |
I tried to build the project with the same Java and it works too. |
it seems to be this, first java11 was not yet installed when i done test |
Describe the bug
incompatible types: com.exadel.frs.core.trainservice.dto.FindFacesResultDto cannot be converted to com.exadel.frs.core.trainservice.dto.FacePredictionResultDto
error occurs when we want to build the java project on this class : FacesMapperImpl
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project frs-core-app: Compilation failure
[ERROR] /workspace/compreface/api/target/generated-sources/annotations/com/exadel/frs/core/trainservice/mapper/FacesMapperImpl.java:[250,45] incompatible types: com.exadel.frs.core.trainservice.dto.FindFacesResultDto cannot be converted to com.exadel.frs.core.trainservice.dto.FacePredictionResultDto
it seems the map structur automatic mapper is not working
To Reproduce
Steps to reproduce the behavior:
clone master branch and try to build java project
java 11 or java 18
Expected behavior
Build works
The text was updated successfully, but these errors were encountered: