2016-09-21 1 views
0

を展開しながら、 - >プロジェクト - > Mavenの - > Mavenのプロジェクトエラー</p> <p>新しいアダプタMavenプロジェクトを作成するにはアダプタ

その後Archtype

を含むように

設定]→[ローカルカタログを追加→ホームディレクトリの/.m2/repository/archetype-catalog.xmlを参照してください。

その後、原型を追加します

Archetype Group Id: com.ibm.mfp 
Archetype Artifact Id:adapter-maven-archetype-http 
Archetype Version: 8.0.2016061011 

はその後ビルアダプタ

ための右には、プロジェクトをクリック - > Mavenの

をインストールし、私は私がSUCCESS

を構築受け取るコンソール - として実行>

次に展開用アダプタ

右クリック実行> - - > Mavenのは

を構築しかし、私は、私が原型-catalog.xmlファイル (私はこのファイルを作成してに貼り付けが含まれる。これにより

[INFO] Scanning for projects... 
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for Mobile:sampleAdapter:adapter:0.0.1-SNAPSHOT 
[WARNING] 'build.plugins.plugin.version' for com.ibm.mfp:adapter-maven-plugin is missing. @ line 44, column 12 
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. 
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects. 
[WARNING] 
[INFO]                   
[INFO] ------------------------------------------------------------------------ 
[INFO] Building sampleAdapter 0.0.1-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 2.970 s 
[INFO] Finished at: 2016-09-22T11:20:42+05:30 
[INFO] Final Memory: 6M/64M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Unknown lifecycle phase "Maven". 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 

としてエラーを受け取ったプロジェクトを編/.m2/repository)

<?xml version="1.0" encoding="UTF-8"?> 
<archetype-catalog  xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-catalog/1.0.0 http://maven.apache.org/xsd/archetype-catalog-1.0.0.xsd" 
xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-catalog/1.0.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
<archetypes> 
<archetype> 
<groupId>com.ibm.mfp</groupId> 
<artifactId>adapter-maven-archetype-http</artifactId> 
<version>8.0.2016061011</version> 
    <repository>https://mvnrepository.com/artifact/com.ibm.mfp/adapter-maven-archetype-http</repository> 
</archetype> 
    <archetype> 
    <groupId>com.ibm.mfp</groupId> 
<artifactId>adapter-maven-plugin</artifactId> 
<version>8.0.2016082422</version> 
     <repository>https://mvnrepository.com/artifact/com.ibm.mfp/adapter-maven-plugin</repository> 
</archetype> 
</archetypes> 
</archetype-catalog> 

は、私はこの問題

+1

それはあなたがここでやっていることは不明だとして実行]を選択...ステップバイステップの再生手順を提供することができます。 –

+0

短く私はEclipse IDE.https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/adapters/developing-adapters/に私のアダプターをデプロイできません。この資料によると、私はアダプターを正常に構築しましたが、whileデプロイメントエラー – CodeWriter

+0

もう一度、要約ではなく、完全な再現手順とデバッグ用のアダプターのダウンロードで質問を編集してください。 –

答えて

0

デプロイフェーズを正しく実行されていないを解決するために助けてください。
はこちらをご覧ください:https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/adapters/developing-adapters/#deploying-an-adapter

は、最初のデプロイのMavenコマンドを追加し、アダプタをデプロイするには:

を選択し実行→実行構成...、右クリックしてビルドしMavenの上で新規作成]を選択します。
名前を入力します。 "Maven deploy"
目標として設定:「adapter:deploy」
[適用]をクリックし、次に[実行]をクリックして最初の展開を行います。

あなたは今、アダプタフォルダを右クリックして→Mavenの展開

+0

新しいワークスペースを作成した後で初めてアダプターを導入できました。ありがとう!!! – CodeWriter

関連する問題