Sono seduto dietro un firewall e pertanto Maven non è in grado di connettersi ai repository centrali (di seguito è riportato un messaggio di errore).Maven: Come installare un plug-in in modalità offline
Tuttavia, posso connettermi a Internet via HTTP.
Come è possibile installare un plug-in Maven (ad esempio un archetipo) in modalità offline (ad esempio, scaricare alcuni file in un browser e quindi installare il plug-in eseguendo alcuni comandi)?
Grazie in anticipo
Dmitri
PS: Qui è il messaggio di errore:
E:\>mvn archetype:generate -DarchetypeGroupId=com.vaadin
-DarchetypeArtifactId=vaadin-archetype-clean -DarchetypeVersion=LATEST -DgroupI
d=at.swdev -DartifactId=pcc -Dversion=1.0 -Dpackaging=war
[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: Connecti
on refused: connect
[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: 1 second
[INFO] Finished at: Thu Jul 22 15:17:00 CEST 2010
[INFO] Final Memory: 1M/15M
[INFO] ------------------------------------------------------------------------
Grazie, la configurazione del proxy ha aiutato! –
@ ~ dp-sw-dev: prego. Sono contento che ci abbia aiutato. –
Aveva lo stesso problema. Oh baby! Benedici U Pascal !! : D. Il tuo nome dovrebbe essere 'Turbo' Pascal !! GRANDE GRAZIE UOMO !!! –