当前位置: 首页 > 知识库问答 >
问题:

MAVEN安装错误无法在本地创建jar文件[关闭]

宋飞文
2023-03-14

我试图克隆一个后端项目,并运行:mvn安装本地创建jar文件,并部署到aws之后,但它的错误甚至java和maven安装正确

[INFO] -------------------------< com.example:KnCare >---------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Users/bilal.ladoui/KnCare/KnCare-Rest/src/main/java/com/knits/kncare/mapper/GroupMapper.java:[35,11] The type of parameter "dto" has no property named "memberIds".
[ERROR] /C:/Users/bilal.ladoui/KnCare/KnCare-Rest/src/main/java/com/knits/kncare/mapper/GroupMapper.java:[35,11] Qualifier error. No method found annotated with @Named#value: [ toModelGroupMembership ]. See https://mapstruct.org/faq/#qualifier for more info.
[ERROR] /C:/Users/bilal.ladoui/KnCare/KnCare-Rest/src/main/java/com/knits/kncare/mapper/GroupMapper.java:[35,11] Can't map property "Set<GroupMembershipDto> groupMemberships" to "Set<GroupMembership> groupMemberships". Consider to declare/implement a mapping method: "Set<GroupMembership> map(Set<GroupMembershipDto> value)".
[ERROR] /C:/Users/bilal.ladoui/KnCare/KnCare-Rest/src/main/java/com/knits/kncare/mapper/GroupMapper.java:[42,10] Unknown property "memberIds" in result type Group. Did you mean "members"?
[INFO] 4 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.496 s
[INFO] Finished at: 2022-01-01T10:28:26+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project KnCare: Compilation failure: Compilation failure:
[ERROR] /C:/Users/bilal.ladoui/KnCare/KnCare-Rest/src/main/java/com/knits/kncare/mapper/GroupMapper.java:[35,11] The type of parameter "dto" has no property named "memberIds".
[ERROR] /C:/Users/bilal.ladoui/KnCare/KnCare-Rest/src/main/java/com/knits/kncare/mapper/GroupMapper.java:[35,11] Qualifier error. No method found annotated with @Named#value: [ toModelGroupMembership ]. See https://mapstruct.org/faq/#qualifier for more info.
[ERROR] /C:/Users/bilal.ladoui/KnCare/KnCare-Rest/src/main/java/com/knits/kncare/mapper/GroupMapper.java:[35,11] Can't map property "Set<GroupMembershipDto> groupMemberships" to "Set<GroupMembership> groupMemberships". Consider to declare/implement a mapping method: "Set<GroupMembership> map(Set<GroupMembershipDto> value)".
[ERROR] /C:/Users/bilal.ladoui/KnCare/KnCare-Rest/src/main/java/com/knits/kncare/mapper/GroupMapper.java:[42,10] Unknown property "memberIds" in result type Group. Did you mean "members"?
[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

共有3个答案

隆芷阳
2023-03-14

您在GroupM中得到一个编译错误apper.java.您能向我们展示这个类吗?你可能有一些运行时依赖问题,甚至铸造。

试着用完整的跟踪运行目标,并向我们展示它所说的:

mvn install -X

这样我们可以更准确地看到正在发生的事情。你能给我们看看你的pom吗。xml?

我们没有什么信息可以帮助您,请尝试为您的问题添加更多详细信息。

甄华清
2023-03-14

项目的GroupMapper类中存在编译错误。尝试修复它们或联系GIT存储库的所有者来修复损坏的分支。

颛孙子民
2023-03-14

您得到的是编译错误。首先修复编译错误,然后尝试构建项目。

 类似资料: