2017-11-16 10 views
1

먼저 Eclipse와 함께 Liferay를 다운로드했습니다. 나는 Liferay 프로젝트를 만들었고 service builder를 사용하기 위해 내 프로젝트 Liferay의 포틀릿에 service.xml을 추가했다. `Liferay 서비스 빌더

[INFO] Scanning for projects... 
[INFO] ------------------------------------------------------------------------ 
[INFO] Reactor Build Order: 
[INFO] 
[INFO] Net'COFILMO - Pom parent 
[INFO] Net'AVEO - Portlets - Pom parent 
[INFO] app_chequier 
[INFO]                   
[INFO] ------------------------------------------------------------------------ 
[INFO] Building Net'COFILMO - Pom parent 1.0.0.0-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[INFO] ------------------------------------------------------------------------ 
[INFO] Reactor Summary: 
[INFO] 
[INFO] Net'COFILMO - Pom parent ........................... FAILURE [ 0.002 s] 
[INFO] Net'AVEO - Portlets - Pom parent ................... SKIPPED 
[INFO] app_chequier ....................................... SKIPPED 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 0.206 s 
[INFO] Finished at: 2017-11-16T14:13:33+01:00 
[INFO] Final Memory: 6M/77M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Unknown lifecycle phase "build-service". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [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/LifecyclePhaseNotFoundException 

`

내가 문제를 해결할 수있는 방법을 모른다 : 내가 빌드 서비스 버튼 (보기 이미지) Button Build Service

클릭하면 은 그 오류를 가지고있다.

미리 감사드립니다.

+1

이 문제를 해결하기위한 출발점은이 오류를 생성하는 POM을 게시하는 것입니다. 그리고 당신이 사용하고있는 버전. –

답변

0
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>` 
+0

"대답"이 아니라 질문에이 것을 포함해야합니다. 질문을 편집 할 수 있습니다. – wikimix