You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Pe...@ubs.com on 2006/11/15 17:16:25 UTC

[M2] offline

Hi 

For Maven 2 working in offline mode where the project is behind a
firewall / proxy 
and disconnected from the Internet.

I get this error 

mvn clean
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
----
[INFO] Building PTSP Valuations Schema (XML Beans)
[INFO]    task-segment: [clean]
[INFO]
------------------------------------------------------------------------
----
[INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking
for updates from central
[WARNING] repository metadata for: 'artifact
org.apache.maven.plugins:maven-clean-plugin' could not be retrieved from
repository: central due to an error: Error transferring file
[INFO] Repository 'central' will be blacklisted
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not
exist 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: Wed Nov 15 16:05:00 GMT 2006
[INFO] Final Memory: 1M/4M
[INFO]
------------------------------------------------------------------------

Even though I copied my entire M2 repository to the test machine, and
reset
the ~/.m2/setting.xml to point to the new repository. I assumed with my
217MB repository that worked on my developer machine, it would work also
on the isolated machine.

Is there a way of telling M2 to not look outside?

What does the <offline> in the settings.xml actually do, then?

See here http://maven.apache.org/settings.html


--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org