0

次のコマンドでmavenを使用してキャメルプロジェクトを作成しています:

mvn archetype:create -DarchetypeGroupId=org.apache.camel.archetypes -DarchetypeArtifactId=camel-archetype-java -DarchetypeVersion=2.12.1 -DgroupId=camelinaction -DartifactId=order-router

次に、コマンドを使用した後、エラーが発生し、何も機能しません。

私は何を間違っていますか?

4

2 に答える 2

4

archetype:createの代わりにarchetype:generateを試す

mvn archetype:generate -DarchetypeGroupId=org.apache.camel.archetypes -DarchetypeArtifactId=camel-archetype-java -DarchetypeVersion=2.12.1 -DgroupId=camelinaction -DartifactId=order-router

この後、他の投稿で log4j で発生した問題の解決策を読んだら、問題ないはずです。

于 2013-11-01T20:14:33.347 に答える
1

問題は、アーキタイプが Maven Central ディレクトリにないことです。次のように、アーキタイプを取得する場所を指定する必要があります。

mvn archetype:generate -DarchetypeGroupId=org.apache.camel.archetypes -DarchetypeArtifactId=camel-archetype-java -DarchetypeVersion=2.3-SNAPSHOT -DgroupId=cameinaction -DartifactId=order-router -DarchetypeRepository=https://repository.apache.org/content/groups/snapshots-group
于 2013-11-01T20:46:33.180 に答える