2012-04-26 7 views
0

私は現在mavenを学んでいます。私はmaven 3.0.4を使用します。目標org.apache.maven.pluginsの実行に失敗しました:maven-archetype-plugin:2.2:generate

archetype(archetye:generateを実行)から新しいrichfacesプロジェクトを生成するときに、org.apache.maven.sharedのPOMファイルがないため、mavenプラグインをビルドできませんでした:maven-invoker:jar :2.0.11およびorg.apache.maven.shared:maven-script-interpreter:jar:1.0。

これは、maven-archetype-pluginをビルドできないことを示しています。

私のhttpブラウザから、maven-script-interpreterとmaven-invokerがあるmaven2リポジトリにアクセスできます。

ここにはコマンドラインとエラーがあります。ありがとうございました!コメントで回答

D:\dev\testRichfaces>mvn archetype:generate -DarchetypeGroupId=org.richfaces.archetypes -DarchetypeArtifactId=richfaces-archetype-simpleapp -DarchetypeVersion=4.2.0-SNAPSHOT -DgroupId=org.docs.richfaces -DartifactId=new_project 
[INFO] Scanning for projects.. 
[INFO] 
[INFO] ------------------------------------------------------------------------ 
[INFO] Building Maven Stub Project (No POM) 1 
[INFO] ------------------------------------------------------------------------ 
[INFO] 
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >> 
> 
[INFO] 
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom << 
< 
[INFO] 
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom -- 
- 
[WARNING] The POM for org.apache.maven.shared:maven-invoker:jar:2.0.11 is missing, no dependency information available 
[WARNING] The POM for org.apache.maven.shared:maven-script-interpreter:jar:1.0 is missing, no dependency information available 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 1.066s 
[INFO] Finished at: Thu Apr 26 15:20:23 GMT+01:00 2012 
[INFO] Final Memory: 4M/15M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2 
.2:generate (default-cli) on project standalone-pom: Execution default-cli of go 
al org.apache.maven.plugins:maven-archetype-plugin:2.2:generate failed: Plugin o 
rg.apache.maven.plugins:maven-archetype-plugin:2.2 or one of its dependencies co 
uld not be resolved: The following artifacts could not be resolved: org.apache.m 
aven.shared:maven-invoker:jar:2.0.11, org.apache.maven.shared:maven-script-inter 
preter:jar:1.0: Failure to find org.apache.maven.shared:maven-invoker:jar:2.0.11 
in http://repo.maven.apache.org/maven2 was cached in the local repository, reso 
lution will not be reattempted until the update interval of central has elapsed 
or updates are forced -> [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 read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException 
+0

フィルタリングされたHTTPアクセスから問題が発生しました。私は場所を変更し、問題は解決されました。私は企業レベルのファイアウォールと思う。 –

+1

あなたはそれを何に変更しましたか? –

+1

私は会社の外でmavenリポジトリにアクセスしました!この問題はフィルタリングが誤って設定されているために発生していました。興味を持っていただきありがとうございます! –

答えて

0

問題をフィルタリングhttpアクセスから生じました。私は場所 を変更し、問題は解決しました。私は企業レベルのファイアウォールだと思う。 - Brahim Gaabab Apr 27、2012 at 16:14あなたはそれを何に変更しましたか? - KenB Jun 27 '12 at 19:59

私はちょうど私の会社の外でmaven repoにアクセスしました!問題は、 のフィルタリングが誤って設定されているためです。興味を持っていただきありがとうございます! - Brahim Gaabab Jul 7 '12 at 17:08

関連する問題