2017-11-16 4 views
1

最初にEclipseでLiferayをダウンロードしました。私はLiferayプロジェクトを作成していました。サービスビルダーを使用するために私のポートレットに(私のプロジェクトLiferayの)service.xmlを追加しました。 私はビルドサービスボタン(外観イメージ)Button Build ServiceLiferayサービスビルダー

をクリックすると、私はそのエラーを持っている: `

[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 

`

私は、問題を解決できるのか分かりません。

ありがとうございます。

+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

関連する問題