On Wed, Feb 15, 2012 at 08:32:26AM -0300, Martin Musacchio wrote:
> I'm stuck at the 'mvn package' part of the installation (dspace 1.8.1,  
> -and also 1.6.2- and maven2=2.2.1-10) and it fails downloading the  
> first file, claiming network unreachable, 'Unable to download the  
> artifact from any repository', the usual.
> I've searched the list and most people fixed this problem with the
> proxy setting in the settings.xml file from the maven directory. Well,
> this doesn't work for me. I'm actually in the same network from
> another computer that doesn't even need a proxy setting! (both are
> behind a firewall which automatically redirects requests to specific
> ports to the proxy, so there's no need for the setting) Just to be
> sure I tried the proxy setting anyway but it doesn't work.
> 
> Also I can access that first failed file with my browser and with
> wget. It's a .pom file. Using curl it shows it to me in binary code
> (I'm not sure if that matters or not). So it doesn't even look like a
> proxy type problem.

It shouldn't be binary; POMs are XML.  'curl
http://repo1.maven.org/maven2/org/dspace/dspace-pom/12/dspace-pom-12.pom'
showed me this:

  <?xml version="1.0" encoding="UTF-8"?>
  <project xmlns="http://maven.apache.org/POM/4.0.0";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  http://maven.apache.org/maven-v4_0_0.xsd";>
      <modelVersion>4.0.0</modelVersion>
      <groupId>org.dspace</groupId>
      <artifactId>dspace-pom</artifactId>

and so on.  If you don't get that, something fairly close to you is
broken.  If I were having this problem, I'd stick with simple tools
like curl or wget until they can fetch a recognizable POM and then try
Maven again.

I'm perhaps understandably suspicious of that magic firewall rule.

[snip]
> Here goes the error report:
> 
> /home/martin/dspace-1.8.1-src-release/dspace# mvn package
> [INFO] Scanning for projects...
> Downloading:
> http://repo1.maven.org/maven2/org/dspace/dspace-pom/12/dspace-pom-12.pom
> [WARNING] Unable to get resource 'org.dspace:dspace-pom:pom:12' from
> repository central (http://repo1.maven.org/maven2): Error transferring
> file: Network is unreachable

I think that everything beyond this point is resulting from the
above.  The project's configuration can't be completed because
dspace-pom is unavailable and it's an ancestor of everything you're
trying to build.

-- 
Mark H. Wood, Lead System Programmer   [email protected]
Asking whether markets are efficient is like asking whether people are smart.

Attachment: pgpHpMWRv2zyS.pgp
Description: PGP signature

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to