Liferay服务生成器
首先,我用Eclipse下载了Liferay。我创建了一个Liferay项目,并在我的portlet(在我的项目Liferay中)中添加了一个service.xml来使用ServiceBuilder。 当我点击Build Service按钮时(查看图片) 我有一个错误: `Liferay服务生成器,liferay,liferay-service-builder,Liferay,Liferay Service Builder,首先,我用Eclipse下载了Liferay。我创建了一个Liferay项目,并在我的portlet(在我的项目Liferay中)中添加了一个service.xml来使用ServiceBuilder。 当我点击Build Service按钮时(查看图片) 我有一个错误: ` [INFO]正在扫描项目。。。 [信息]------------------------------------------------------------------------ [信息]反应堆建造顺序: [信息] [
[INFO]正在扫描项目。。。
[信息]------------------------------------------------------------------------
[信息]反应堆建造顺序:
[信息]
[信息]Net'COFILMO-Pom母公司
[信息]Net'AVEO-Portlet-Pom父级
[信息]app_chequier
[信息]
[信息]------------------------------------------------------------------------
[信息]构建网络'COFILMO-Pom父级1.0.0.0-快照
[信息]------------------------------------------------------------------------
[信息]------------------------------------------------------------------------
[信息]反应堆概要:
[信息]
[信息]Net'COFILMO-Pom母公司。。。。。。。。。。。。。。。。。。。。。。。。。。。故障[0.002秒]
[信息]Net'AVEO-Portlet-Pom父级。。。。。。。。。。。。。。。。。。。跳过
[信息]app_chequier。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。跳过
[信息]------------------------------------------------------------------------
[信息]生成失败
[信息]------------------------------------------------------------------------
[信息]总时间:0.206秒
[信息]完成时间:2017-11-16T14:13:33+01:00
[信息]最终内存:6M/77M
[信息]------------------------------------------------------------------------
[错误]未知生命周期阶段“生成服务”。必须以以下格式指定有效的生命周期阶段或目标:或:[:]:。可用的生命周期阶段包括:验证、初始化、生成源、流程源、生成资源、流程资源、编译、流程类、生成测试源、流程测试源、生成测试资源、流程测试资源、测试编译、流程测试类、测试、准备包、包、预集成测试、,集成测试、集成后测试、验证、安装、部署、预清理、清理、清理后、预站点、站点、站点后、站点部署。->[帮助1]
[错误]
[错误]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。
[错误]使用-X开关重新运行Maven以启用完整调试日志记录。
[错误]
[错误]有关错误和可能的解决方案的更多信息,请阅读以下文章:
[错误][帮助1]http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException
`
我不知道怎样才能解决这个问题
提前感谢。我使用的是Liferay版本7,它是我的POM.xml
I use the Liferay version 7 and that it's my POM.xml
`<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.utlimate</groupId>
<artifactId>UltimateTesting</artifactId>
<packaging>pom</packaging>
<name>UltimateTesting</name>
<version>1.0.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5</version>
<configuration>
<encoding>UTF-8</encoding>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>com.liferay</groupId>
<artifactId>com.liferay.portal.tools.service.builder</artifactId>
<version>1.0.175</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
<modules>
<module>UltimateTesting-portlet</module>
<module>UltimateTesting-portlet-service</module>
</modules>
</project>`
`
4.0.0
com.utclimate
最终测试
聚甲醛
最终测试
1.0.0-SNAPSHOT
maven编译器插件
2.5
UTF-8
1.6
1.6
com.liferay
com.liferay.portal.tools.service.builder
1.0.175
maven资源插件
2.5
UTF-8
最终测试portlet
最终测试portlet服务
`
我使用Liferay版本7,它是我的POM.xml
`
4.0.0
com.utclimate
最终测试
聚甲醛
最终测试
1.0.0-SNAPSHOT
maven编译器插件
2.5
UTF-8
1.6
1.6
com.liferay
com.liferay.portal.tools.service.builder
1.0.175
maven资源插件
2.5
UTF-8
最终测试portlet
最终测试portlet服务
`
解决此问题的出发点是发布生成此错误的POM。以及您正在使用的版本。解决此问题的起点是发布生成此错误的POM。以及您正在使用的版本。您应该将其包含在问题中,而不是“答案”中,您可以编辑该问题。您应该将其包含在问题中,而不是“答案”中,您可以编辑该问题。
I use the Liferay version 7 and that it's my POM.xml
`<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.utlimate</groupId>
<artifactId>UltimateTesting</artifactId>
<packaging>pom</packaging>
<name>UltimateTesting</name>
<version>1.0.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5</version>
<configuration>
<encoding>UTF-8</encoding>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>com.liferay</groupId>
<artifactId>com.liferay.portal.tools.service.builder</artifactId>
<version>1.0.175</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
<modules>
<module>UltimateTesting-portlet</module>
<module>UltimateTesting-portlet-service</module>
</modules>
</project>`