问答详情
源自:5-1 6课程总结

为啥发布项目OK,发布模块失败

> Task :model:jar UP-TO-DATE
> Task :model:publishMyPublishPublicationToMavenLocal FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':model:publishMyPublishPublicationToMavenLocal'.
> Failed to publish publication 'myPublish' to repository 'mavenLocal'
   > Invalid publication 'myPublish': groupId is not a valid Maven identifier ([A-Za-z0-9_\-.]+).


提问者:精慕门3342524 2019-11-06 17:41

个回答

  • MrZ0123456
    2020-01-20 11:24:12

    去掉gradle.properties文件中的单引号

  • 慕粉2137233190
    2019-12-12 00:01:38

    groupId is not a valid Maven identifier ([A-Za-z0-9_\-.]+).