我想通過把下面的命令來創建使用maven PHP項目:Maven的錯誤:所需的原型不存在(org.phpmaven:PHP5的web-原型:2.0-SNAPSHOT)
sudo mvn archetype:generate -DarchetypeGroupId=org.phpmaven
-DarchetypeArtifactId=php5-web-archetype -DarchetypeVersion=2.0-SNAPSHOT
-DgroupId=org.sample -DartifactId=my-app -Dversion=0.0.1-SNAPSHOT
但給我錯誤:
Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli)
on project standalone-pom: The desired archetype does not exist (org.phpmaven:php5-web-archetype:2.0-SNAPSHOT) -> [Help 1]
從哪裏獲得該命令?你有沒有遵循準備步驟?在此之前您已經採取了哪些步驟? – eis
我從http://www.php-maven.org/branches/2.0-SNAPSHOT/php-web-5min.html得到了這個命令,並且我還遵循了準備步驟(例如在.m2/repository /中創建settings.xml。但仍然給我同樣的錯誤。我在哪裏做錯了? – user2282615