You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by to...@gi-de.com on 2008/03/25 18:44:47 UTC
Archiva works on localhost, but not on a remote system
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
Antwort: Re: Archiva works on localhost, but not on a remote system
Posted by to...@gi-de.com.
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" <br...@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 <to...@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/
Re: Archiva works on localhost, but not on a remote system
Posted by Brett Porter <br...@gmail.com>.
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 <to...@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/