0
我對Maven很新,我在本地機器上安裝了maven。 安裝試用後,根據我試圖執行MVN原型:產生-DarchetypeGroupId = org.apache.maven.archetypes -DgroupId = com.mycompany.app -DartifactId =我的應用程序內 對此,我得到以下錯誤信息。開始使用Maven
C:\work\maven2.2\bin>mvn archetype:generate -DarchetypeGroupId=org.apache
.maven.archetypes -DgroupId=com.mycompany.app -DartifactId=my-app
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retri
eved from repository: central due to an error: Error transferring file: repo1.ma
ven.org
[INFO] Repository 'central' will be blacklisted
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exi
st or no valid version could be found
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Aug 30 11:45:49 IST 2011
[INFO] Final Memory: 1M/59M
[INFO] ------------------------------------------------------------------------
任何人都可以幫助我,如果我需要有相同的先決條件設置?
在此先感謝。 :)
是否由於防火牆或代理服務器設置而導致我? – AMol
至於我這是這樣的。這可能是這個原因。但我確定你創建項目的路線是正確的。所以seach導致連接seting。並嘗試下面的代碼:mvn archetype:generate -DgroupId = com.mycompany.app -DartifactId = my-app -DarchetypeArtifactId = maven-archetype-quickstart -DinteractiveMode = false – Oleksandr
感謝您的支持..最後一個問題可以讓我指向一個簡單的例子/教程瞭解maven? – AMol