【发布时间】:2015-01-13 09:10:19
【问题描述】:
我正在使用 Liferay 6.2.0 我从http://oss.sonatype.org/content/repositories/releases/com/liferay/maven/archetypes/添加原型的远程存储库
我可以在里面创建一个portlet,但是我想创建一个Service Builder插件引用的选项是空的,所以它不能创建service.xml
我尝试手动创建 service.xml 并使用 maven 构建它,但错误消息说我找不到插件!
我已经尝试过 Rushikesh Thakkar 建议我的教程,来自 http://www.cignex.com/articles/building-liferay-service-using-maven-sdk 但是eclipse没有让我选择插件来创建服务构建器。
我手动创建了 service.xml 并尝试构建它,但出现错误:
[ERROR] No plugin found for prefix 'liferay' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/matteo/.m2/repository), central (http://repo.maven.apache.org/maven2)] -> [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/NoPluginFoundForPrefixException
【问题讨论】:
-
有很多关于这个要求的文章(例如cignex.com/articles/building-liferay-service-using-maven-sdk)。在发布到 StackOverflow 之前,您需要进行足够的研究/谷歌搜索。
-
足够的研究将给出答案:) 我们想要找到答案。所以需要一些研究和一些尝试。无论如何,您是否尝试过使用 maven 错误:
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.此外,如果可能,请尝试提供您的service.xml -
您找到解决方案了吗?如果您能在这里分享信息,那就太好了!我也有同样的问题。
-
@RushikeshThakkar 该指南在底部说
"I assume that the valid service.xml file is already exist"。我和其他新手可能不知道该文件是什么,如果有关于此事的更广泛的文档会有所帮助,例如在开始使用指南之前的要求列表,例如I assume you know what services is, if not check _here_。那会很棒,并且会大大简化研究。 StackOverflow 问答永远不会有害。如果这个问题能得到解决,那将对我有很大帮助。 -
@Nenotlep,我和 Prakash(见他的评论)建议做一些研究的原因是为了海报的最佳利益,也为了 stackoverflow。但是,由于您认为有关此主题的文档不足,因此我发布了答案。