私は「Axis2の使用を開始するmのは、前にそれで働いたことはありません。Axis2のMavenの
Mavenは。Axis2のサンプルの依存関係が動作するようにした私は、手順を正しく実行し、環境変数と再起動のWindows 7を作成しました。
Axis2のサンプルのいずれかを実行しようとすると、私はこのエラーメッセージを取得:
cd C:\Apache\axis\samples\java_first_jaxws; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.7.0_02" C:\\Apache\\maven\\bin\\mvn.bat
The syntax of the command is incorrect.
The syntax of the command is incorrect.
ERROR: M2_HOME not found in your environment.
Please set the M2_HOME variable in your environment to match the
location of the Maven installation
を私は二重の環境変数をチェックして、彼らが正しい私を悩ませている事がありますI。。コマンドでmvn --version
を実行すると、それは私にThe syntax of the command is incorrect.
を返し、このエラーは存在しないPOMファイルに関連しています。 Axis2のすべてのサンプルにはpom.xmlファイルがあります。
私はJavaとの最初の連絡ですので、問題を解決するのは簡単だと思います。
ご協力いただきありがとうございます。
EDIT
この実行: cd /d C:\Apache\axis\samples\java_first_jaxws and then mvn install
結果: [ERROR] Unknown lifecycle phase "pom.xml". You must specify a valid lifecycle ph ase 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-res ources, compile, process-classes, generate-test-sources, process-test-sources, g enerate-test-resources, process-test-resources, test-compile, process-test-class es, test, prepare-package, package, pre-integration-test, integration-test, post -integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-si te, site, post-site, site-deploy. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [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 rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhase NotFoundException
私はJAVA_HOME、M2_HOME、およびM2_HOME \ binを持っています。すべての環境変数はMavenとAxis2のインストールガイドに従ってOKです。 "あなたはこれをいくつかのウェブページからコピーしました"と言ったら何をコピーしましたか? – Gerep
@Gerep:コマンドプロンプトを実行して 'set'を実行すると、すべての変数が表示されますか?また、あなたが投稿したコマンド( 'cd;"変数=何か "mvn')について話していた - それはWindowsシェルのための不正な表現なので、"コマンドの構文は間違っています。 ") –
JBert
about that 'cd;" variable = something "mvn')、それはNetBeans7によって生成されました...そしてyes ...' set'コマンドは、プロジェクトの実行に必要なすべての変数を返します... –
Gerep