archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From torsten.reinh...@gi-de.com
Subject Antwort: Re: Archiva works on localhost, but not on a remote system
Date Wed, 26 Mar 2008 09:09:05 GMT
Hi Brett and other users, 

the problem was on the Maven side:

Im my settings.xml I have a profile to go "online" and download directly 
from the internet.

...
    <profile>
        <id>online</id>
                <activation>
                        <activeByDefault>false</activeByDefault>
                </activation>
 
                <repositories>
                ...
                        <repository>
                                <id>java.net</id>
                                <name>java.net Maven Repository</name>
 <url>https://maven-repository.dev.java.net/nonav/repository</url>
                                <layout>legacy</layout>
                        </repository>
                ...
                </repositories>
    </profile>

To get this profile to work, I need a proxy configuration:
  <proxies>
                <proxy>
                        <id>GDM</id>
                        <active>true</active>
                        <protocol>http</protocol>
                        <username>${myuser}</username>
                        <password>${mypwd}</password>
                        <host>...</host>
                        <port>...</port>
                        <nonProxyHosts>localhost,*.intern</nonProxyHosts>
                </proxy>
  </proxies>

If I comment out the proxy section or add "d580231" to the nonProxyHosts 
(with | instead of ,) Maven starts downloading from Archiva....

thanx, Torsten





"Brett Porter" <brett.porter@gmail.com> 
25.03.2008 23:41
Bitte antworten an
archiva-users@maven.apache.org


An
archiva-users@maven.apache.org
Kopie

Thema
Re: Archiva works on localhost, but not on a remote system






If it works from the web browser, then the problem is certainly on the
Maven side.

There shouldn't need to be any additional configuration - is it
possible you have some state in your Maven local repository that
causes it not to be downloaded? Or are you getting a failure from
Maven?

- Brett

On 26/03/2008, torsten.reinhard@gi-de.com <torsten.reinhard@gi-de.com> 
wrote:
> Hi,
>
>  I configured Archiva 1.0.1 running with Tomcat 6.0.13 under Windows XP.
>  All works fine, when I use the "localhost" configuration as described.
>
>  [settings.xml]
>  ...
>     <mirror>
>       <id>archiva.default</id>
>       <name>Archiva Internal Repository</name>
>       <url>http://localhost:8080/archiva/repository/internal</url>
>       <mirrorOf>central</mirrorOf>
>     </mirror>
>  ...
>
>  In my pom.xml I have
>
>  <properties>
>
> 
<repositories.root>http://localhost:8080/archiva/repository</repositories.root>
>  </properties>
>
>  <repository>
>       <id>internal</id>
>       <name>Archiva Managed Internal Repository</name>
>       <url>${repositories.root}/internal/</url>
>       <releases>
>         <enabled>true</enabled>
>       </releases>
>       <snapshots>
>         <enabled>false</enabled>
>       </snapshots>
>     </repository>
>
>  When I switch to a real remote host (Computername=D580231), lets say
>
>       <url>http://D580231:8080/archiva/repository/internal</url>
>
>  Archiva doesn´t start to download anything, in the console or log file 
of
>  Archiva there´s no entry.
>  When I paste the "downloading from ....." message from the Maven Output 
to
>  my Webbrowser, all works fine.
>
>  Is there any additional configuration to do to get Maven to download
>  missing artifacts via Archiva not running on localhost?
>
>
>  Thanx, Torsten
>
>
>
>


-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message