2017-10-06 10 views
2

私は、コマンドプロンプトを通じて、以下のコマンドを実行しようとしました:はゴールorg.apache.maven.pluginsの実行に失敗しました:Mavenのインストール - プラグイン:2.4:インストール・ファイルをMavenの

mvn install:install-file -Dfile=scertcommon-07.01.08.04.jar -DgroupId=com.avaya.sce -DartifactId=scertcommon -Dversion=07.01.08.04 -Dpackaging=jar 

私は次のように取得しています上記のコマンドを実行するとエラーが発生します。

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install-file (default-cli) on project standalone-pom: Error installing artifact 'com.avaya.sce:scertcommon:jar?': Failed to install artifact com.avaya.sce:scertcommon:jar?:07.01.08.04: C:\Users\N0292812\.m2\repository\com\avaya\sce\scertcommon\07.01.08.04\scertcommon-07.01.08.04.jar? (The filename, directory name, or volume label syntax is incorrect) 

ワンポイント追加:私はpom.xmlファイルとjarファイルを使用していない がDに保たれている:/xx/xxx.So私はフォルダに移動し、上記のコマンドを実行します。 正確な問題は何ですか?問題を解決するにはどうすればよいですか。私はMavenにはかなり新しいです。

答えて

0

「?エラーメッセージのアーティファクト名の後に。

...アーティファクト 'com.avaya.sceをインストール中にエラーが発生しました:scertcommon:jar? ... '

おそらくいくつかの見えない特殊文字がアーティファクト名の後にあなたのmvnコマンドに入っているかもしれません。

Windowsの文字「?」では、ファイル名/パスでは使用できません。

+0

ありがとうございます、これは問題を引き起こした目に見えない特殊文字です –

関連する問題