I see, so you're saying that you do need to use proxy.
If the settings you entered are correct and the error continues to
show up then perhaps Maven isn't using that configuration file. Try to
explicitly specify the path to the configuration file using
mvn -s opt/apache-maven-3.0.5/conf/settings.xml package


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


On Mon, Apr 22, 2013 at 12:06 PM, SanjibKumarDeka <xan...@gmail.com> wrote:
> HI helix84,
>
> Thank you for your reply. I have configure the <settings.xml> file in the
> directory /opt/apache-maven-3.0.5/conf/
> After that I run the <mvn package> but the problem still exist. Details
> attached for your information. Kindly help please.
>
>  <proxies>
>     <!-- proxy
>      | Specification for one proxy, to be used in connecting to the network.
>      |
>     <proxy>
>       <id>optional</id>
>       <active>true</active>
>       <protocol>http</protocol>
>       <username>skdeka</username>
>       <password>aarhi</password>
>       <host>202.141.80.30</host>
>       <port>3128</port>
>       <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
>     </proxy>
>     -->
>   </proxies>
>
> ERROR MSG:
> ===================================================================================
> [root@CENTRAL-LIBRARY /]# su dspace
> [dspace@CENTRAL-LIBRARY /]$ cd /dspace-3.1-src-release/dspace
>
> [dspace@CENTRAL-LIBRARY dspace]$ mvn package
> [INFO] Scanning for projects...
> Downloading:
> http://oss.sonatype.org/content/repositories/releases/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
> Downloading:
> http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
> Sep 20, 2012 3:29:46 PM
> org.apache.maven.wagon.providers.http.httpclient.impl.client.DefaultRequestDirector
> tryConnect
>
> INFO: I/O exception (java.net.NoRouteToHostException) caught when connecting
> to the target host: No route to host
> Sep 20, 2012 3:29:46 PM
> org.apache.maven.wagon.providers.http.httpclient.impl.client.DefaultRequestDirector
> tryConnect
>
> INFO: Retrying connect
> [ERROR] The build could not read 1 project -> [Help 1]
> [ERROR]
> [ERROR]   The project org.dspace:dspace:3.1
> (/dspace-3.1-src-release/dspace/pom.xml) has 1 error
> [ERROR]     Non-resolvable parent POM for org.dspace:dspace-parent:3.1:
> Could not transfer artifact org.sonatype.oss:oss-parent:pom:7 from/to
> sonatype-releases (http://oss.sonatype.org/content/repositories/releases/):
> Connection to http://oss.sonatype.org refused and 'parent.relativePath'
> points at wrong local POM @ org.dspace:dspace-parent:3.1,
> /dspace-3.1-src-release/pom.xml, line 17, column 13: Connection timed out ->
> [Help 2]
>
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
> [ERROR] [Help 2]
> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
> [dspace@CENTRAL-LIBRARY dspace]$
> ==========================================================================================
> Reagards,
>
>
> On Mon, Apr 22, 2013 at 1:43 PM, helix84 <heli...@centrum.sk> wrote:
>>
>> On Mon, Apr 22, 2013 at 8:36 AM, SanjibKumarDeka <xan...@gmail.com> wrote:
>>>
>>> Downloading:
>>> http://oss.sonatype.org/content/repositories/releases/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
>>> Sep 20, 2012 12:07:52 PM
>>> org.apache.maven.wagon.providers.http.httpclient.impl.client.DefaultRequestDirector
>>> tryConnect
>>> INFO: I/O exception (java.net.NoRouteToHostException) caught when
>>> connecting to the target host: No route to host
>>
>>
>>  Hi Sanjib,
>>
>> for some reason, Maven is not able to download that file (which is a
>> dependency it needs to build DSpace).
>>
>> The usual reason for this is a network problem - either you're not
>> connected to internet, you're firewalled or you're using a proxy to access
>> the internet. The first two cases will probably require help from your
>> network administrator. The last case - if you need a proxy to access
>> internet - you have to add the proxy configuration to your Maven
>> configuration. Here's where you can find it:
>>
>> "There is often a master copy of this file found in a location such as
>> 'MAVEN_HOME/conf/settings.xml' or '/etc/maven/settings.xml', or you
>> can edit your local copy in ~/.m2/settings.xml."
>>
>> Also here's the relevant chapter from Maven documentation:
>>
>> http://maven.apache.org/settings.html#Quick_Overview
>>
>>
>> Regards,
>> ~~helix84
>>
>> Compulsory reading: DSpace Mailing List Etiquette
>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>
>

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to