你好,最近看到你blog上面Maven2的文章,自己配置了下有點(diǎn)問題請教你。
1.我第一次運(yùn)行mvn archetype:create后從網(wǎng)上把要用的包下到了資源庫里,第二次我網(wǎng)斷了,再運(yùn)行這個(gè)命令就出下面的錯(cuò)誤,是不是一定要連網(wǎng)才可以運(yùn)行啊?還是在哪里指定路徑啊?請指教,謝謝。
C:\maven-2.0.9\project>mvn archetype:create -DgroupId=com.mycompany.app -Dartifa
ctId=my-app
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [archetype:create] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:create]
[WARNING] This goal is deprecated. Please use mvn archetype:generate instead
[INFO] Defaulting package to group ID: com.mycompany.app
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Error transferring file
org.apache.maven.archetypes:maven-archetype-quickstart:jar:1.0
from the specified remote repositories:
central (
http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14 seconds
[INFO] Finished at: Sun Jul 27 21:35:04 CST 2008
[INFO] Final Memory: 8M/14M
[INFO] ------------------------------------------------------------------------
回復(fù) 更多評論