You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Paul Kuykendall <TX/EUS>" <Pa...@ericsson.com> on 2005/05/04 17:33:34 UTC
Problems configuring internal repository
Hi,
I've recently started to investigate Maven, but have run into some
issues when trying to set up an internal repository for our internal
libraries. I've googled and searched the Maven mailing lists for the
past 3 days and have yet to find the answers. Please excuse the length
of the email. If I can get everything working for some small projects,
I may be able to sell the idea to my department at work which would be a
godsend. Thanks in advance.
Configuration:
I have configured my /etc/hosts file so that www.openlibrary.info points
to 127.0.0.1
Apache is configured and works fine using the www.openlibrary.info
address, at least for me locally.
The internal repository is located at http://www.openlibrary.info/maven
Permissions on all maven files allow read access and read/execute for
directories. SELinux security roles were inherited correctly for the
files. Apache will serve the files with no problems from a web browser.
My project.properties file has the following line:
maven.repo.remote=http://www.ibiblio.org/maven,http://www.openlibrary.info/maven
I am able to browse there correctly with Firefox, including downloading
the files by following the links.
The dependency section is as follows:
:
<dependency>
<groupId>ldapsp</groupId>
<artifactId>ldapsp</artifactId>
<version>1.0</version>
<type>jar</type>
</dependency>
:
I run Maven and receive the following for each file in my internal
repository:
Attempting to download ldapsp-1.0.jar.
Error retrieving artifact from
[http://www.ibiblio.org/maven/ldapsp/jars/ldapsp-1.0.jar]:
java.io.IOException: Unknown error downloading; status code was: 503
Error retrieving artifact from
[http://www.openlibrary.info/maven/ldapsp/jars/ldapsp-1.0.jar]:
java.io.IOException: Unknown error downloading; status code was: 503
WARNING: Failed to download ldapsp-1.0.jar.
I also tried changing the maven.repo.remote property to use
file:///var/www/html/maven instead (giving the full path name to the
repository). When I did this, I received some files, however I looked
in my local maven repository and they all had contents like:
<HTML>
<HEAD><TITLE>Redirection</TITLE></HEAD>
<BODY><H1>Redirect</H1></BODY>
</HTML>
Again, thank you for any help.
/Paul Kuykendall
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Problems configuring internal repository
Posted by Alex Soto <ap...@gmail.com>.
Hmm, I've think we've reached the extent of my ability to help here.
I don't use a proxy for my internal remote repository, so I don't know
if you can make it selective. If it was me, if no one else on the
list (ie: one of the developers) chimes in, then I'd start grepping
for maven.proxy.host in the source and see how proxies are used and
hopefully you can find some undocumented feature that would allow for
that.
Alex
On 5/4/05, Paul Kuykendall <TX/EUS> <Pa...@ericsson.com> wrote:
> That helped quite a bit. Is there a way of configuring Maven to not use
> a proxy for a certain remote repository? That was what was getting me.
> It was trying to hit the proxy for the internal repository.
>
> Thanks for the help!
>
> /Paul
>
> Alex Soto wrote:
>
> > Ok, well the next thing I'd look at is watch the apache access and
> > error logs and see what the difference is between a regular browser
> > request and a maven request.
> >
> > On 5/4/05, Paul Kuykendall <TX/EUS> <Pa...@ericsson.com> wrote:
> > > Hi,
> > >
> > > No, I have correctly set the proxy settings. Maven is able to grab
> > all the
> > > libraries and such from ibiblio. It just isn't able to find the
> > internal
> > > repository. I tried swapping the two repository entries (ibiblio
> > and my
> > > internal one) but got the same results.
> > >
> > > I also removed ibiblio from my repository list. Again, I receive
> > the 503
> > > error.
> > >
> > > /Paul
> > >
> > > Alex Soto wrote:
> > >
> > >
> > > First guess is that since you got a 503 from a request to ibiblio, did
> > > you set, or forget to set some http proxy properties?
> > >
> > > On 5/4/05, Paul Kuykendall <TX/EUS> <Pa...@ericsson.com>
> > wrote:
> > > > Hi,
> > > >
> > > > I've recently started to investigate Maven, but have run into some
> > > > issues when trying to set up an internal repository for our internal
> > > > libraries. I've googled and searched the Maven mailing lists for
> > the
> > > > past 3 days and have yet to find the answers. Please excuse the
> > length
> > > > of the email. If I can get everything working for some small
> > projects,
> > > > I may be able to sell the idea to my department at work which
> > would be a
> > > > godsend. Thanks in advance.
> > > >
> > > > Configuration:
> > > > I have configured my /etc/hosts file so that www.openlibrary.info
> > points
> > > > to 127.0.0.1
> > > > Apache is configured and works fine using the www.openlibrary.info
> > > > address, at least for me locally.
> > > >
> > > > The internal repository is located at
> > > http://www.openlibrary.info/maven
> > > > Permissions on all maven files allow read access and read/execute
> > for
> > > > directories. SELinux security roles were inherited correctly for
> > the
> > > > files. Apache will serve the files with no problems from a web
> > browser.
> > > >
> > > > My project.properties file has the following line:
> > > >
> > >
> > maven.repo.remote=http://www.ibiblio.org/maven,http://www.openlibrary.info/maven
> >
> > > >
> > > > I am able to browse there correctly with Firefox, including
> > downloading
> > > > the files by following the links.
> > > >
> > > > The dependency section is as follows:
> > > > :
> > > > <dependency>
> > > > <groupId>ldapsp</groupId>
> > > > <artifactId>ldapsp</artifactId>
> > > > <version>1.0</version>
> > > > <type>jar</type>
> > > > </dependency>
> > > > :
> > > >
> > > > I run Maven and receive the following for each file in my internal
> > > > repository:
> > > >
> > > > Attempting to download ldapsp-1.0.jar.
> > > > Error retrieving artifact from
> > > >
> > > [http://www.ibiblio.org/maven/ldapsp/jars/ldapsp-1.0.jar]:
> > > > java.io.IOException: Unknown error downloading; status code was: 503
> > > > Error retrieving artifact from
> > > >
> > > [http://www.openlibrary.info/maven/ldapsp/jars/ldapsp-1.0.jar]:
> > > > java.io.IOException: Unknown error downloading; status code was: 503
> > > > WARNING: Failed to download ldapsp-1.0.jar.
> > > >
> > > > I also tried changing the maven.repo.remote property to use
> > > > file:///var/www/html/maven instead (giving the full path name to the
> > > > repository). When I did this, I received some files, however I
> > looked
> > > > in my local maven repository and they all had contents like:
> > > >
> > > > <HTML>
> > > > <HEAD><TITLE>Redirection</TITLE></HEAD>
> > > > <BODY><H1>Redirect</H1></BODY>
> > > > </HTML>
> > > >
> > > > Again, thank you for any help.
> > > >
> > > > /Paul Kuykendall
> > > >
> > > >
> > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Problems configuring internal repository
Posted by John Casey <jd...@commonjava.org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
See http://maven.apache.org/maven2/configuration.html about 2/3 of the
way down, in the proxy example. If you look, you should see:
...
<nonProxyHosts>something.somewhere.com|somethingelse.nowhere.com|*.suchandsuch.com</nonProxyHosts>
...
HTH,
- -john
Paul Kuykendall <TX/EUS> wrote:
> That helped quite a bit. Is there a way of configuring Maven to not use
> a proxy for a certain remote repository? That was what was getting me.
> It was trying to hit the proxy for the internal repository.
>
> Thanks for the help!
>
> /Paul
>
> Alex Soto wrote:
>
>> Ok, well the next thing I'd look at is watch the apache access and
>> error logs and see what the difference is between a regular browser
>> request and a maven request.
>>
>> On 5/4/05, Paul Kuykendall <TX/EUS> <Pa...@ericsson.com> wrote:
>> > Hi,
>> > > No, I have correctly set the proxy settings. Maven is able to
>> grab all the
>> > libraries and such from ibiblio. It just isn't able to find the
>> internal
>> > repository. I tried swapping the two repository entries (ibiblio
>> and my
>> > internal one) but got the same results.
>> > > I also removed ibiblio from my repository list. Again, I receive
>> the 503
>> > error.
>> > > /Paul
>> > > Alex Soto wrote:
>> > >
>> > First guess is that since you got a 503 from a request to ibiblio, did
>> > you set, or forget to set some http proxy properties?
>> >
>> > On 5/4/05, Paul Kuykendall <TX/EUS> <Pa...@ericsson.com>
>> wrote:
>> > > Hi,
>> > >
>> > > I've recently started to investigate Maven, but have run into some
>> > > issues when trying to set up an internal repository for our internal
>> > > libraries. I've googled and searched the Maven mailing lists for
>> the
>> > > past 3 days and have yet to find the answers. Please excuse the
>> length
>> > > of the email. If I can get everything working for some small
>> projects,
>> > > I may be able to sell the idea to my department at work which
>> would be a
>> > > godsend. Thanks in advance.
>> > >
>> > > Configuration:
>> > > I have configured my /etc/hosts file so that www.openlibrary.info
>> points
>> > > to 127.0.0.1
>> > > Apache is configured and works fine using the www.openlibrary.info
>> > > address, at least for me locally.
>> > >
>> > > The internal repository is located at
>> > http://www.openlibrary.info/maven
>> > > Permissions on all maven files allow read access and read/execute
>> for
>> > > directories. SELinux security roles were inherited correctly for
>> the
>> > > files. Apache will serve the files with no problems from a web
>> browser.
>> > >
>> > > My project.properties file has the following line:
>> > >
>> >
>> maven.repo.remote=http://www.ibiblio.org/maven,http://www.openlibrary.info/maven
>>
>> > >
>> > > I am able to browse there correctly with Firefox, including
>> downloading
>> > > the files by following the links.
>> > >
>> > > The dependency section is as follows:
>> > > :
>> > > <dependency>
>> > > <groupId>ldapsp</groupId>
>> > > <artifactId>ldapsp</artifactId>
>> > > <version>1.0</version>
>> > > <type>jar</type>
>> > > </dependency>
>> > > :
>> > >
>> > > I run Maven and receive the following for each file in my internal
>> > > repository:
>> > >
>> > > Attempting to download ldapsp-1.0.jar.
>> > > Error retrieving artifact from
>> > >
>> > [http://www.ibiblio.org/maven/ldapsp/jars/ldapsp-1.0.jar]:
>> > > java.io.IOException: Unknown error downloading; status code was: 503
>> > > Error retrieving artifact from
>> > >
>> > [http://www.openlibrary.info/maven/ldapsp/jars/ldapsp-1.0.jar]:
>> > > java.io.IOException: Unknown error downloading; status code was: 503
>> > > WARNING: Failed to download ldapsp-1.0.jar.
>> > >
>> > > I also tried changing the maven.repo.remote property to use
>> > > file:///var/www/html/maven instead (giving the full path name to the
>> > > repository). When I did this, I received some files, however I
>> looked
>> > > in my local maven repository and they all had contents like:
>> > >
>> > > <HTML>
>> > > <HEAD><TITLE>Redirection</TITLE></HEAD>
>> > > <BODY><H1>Redirect</H1></BODY>
>> > > </HTML>
>> > >
>> > > Again, thank you for any help.
>> > >
>> > > /Paul Kuykendall
>> > >
>> > >
>> > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail:
>> > users-unsubscribe@maven.apache.org
>> > > For additional commands, e-mail: users-help@maven.apache.org
>> > >
>> > >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFCeTF4K3h2CZwO/4URApFCAJ4vZr2lmMNSuy4LTmKu0xrBvGFQ8ACaAlLZ
qJoDPxXIypKbWsaY4HdNvaw=
=yyOv
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Problems configuring internal repository
Posted by Jonathan Cowherd <jp...@gmail.com>.
Hey Paul,
I don't remember why this works, but if you use the IP address of
your internal machine, it will bypass your proxy and fetch the local
jars.
maven.repo.remote=http://www.ibiblio.org/maven,http://127.0.0.1/maven
Hope that helps.
Jonathan
On 5/4/05, Paul Kuykendall <TX/EUS> <Pa...@ericsson.com> wrote:
> That helped quite a bit. Is there a way of configuring Maven to not use
> a proxy for a certain remote repository? That was what was getting me.
> It was trying to hit the proxy for the internal repository.
>
> Thanks for the help!
>
> /Paul
>
> Alex Soto wrote:
>
> > Ok, well the next thing I'd look at is watch the apache access and
> > error logs and see what the difference is between a regular browser
> > request and a maven request.
> >
> > On 5/4/05, Paul Kuykendall <TX/EUS> <Pa...@ericsson.com> wrote:
> > > Hi,
> > >
> > > No, I have correctly set the proxy settings. Maven is able to grab
> > all the
> > > libraries and such from ibiblio. It just isn't able to find the
> > internal
> > > repository. I tried swapping the two repository entries (ibiblio
> > and my
> > > internal one) but got the same results.
> > >
> > > I also removed ibiblio from my repository list. Again, I receive
> > the 503
> > > error.
> > >
> > > /Paul
> > >
> > > Alex Soto wrote:
> > >
> > >
> > > First guess is that since you got a 503 from a request to ibiblio, did
> > > you set, or forget to set some http proxy properties?
> > >
> > > On 5/4/05, Paul Kuykendall <TX/EUS> <Pa...@ericsson.com>
> > wrote:
> > > > Hi,
> > > >
> > > > I've recently started to investigate Maven, but have run into some
> > > > issues when trying to set up an internal repository for our internal
> > > > libraries. I've googled and searched the Maven mailing lists for
> > the
> > > > past 3 days and have yet to find the answers. Please excuse the
> > length
> > > > of the email. If I can get everything working for some small
> > projects,
> > > > I may be able to sell the idea to my department at work which
> > would be a
> > > > godsend. Thanks in advance.
> > > >
> > > > Configuration:
> > > > I have configured my /etc/hosts file so that www.openlibrary.info
> > points
> > > > to 127.0.0.1
> > > > Apache is configured and works fine using the www.openlibrary.info
> > > > address, at least for me locally.
> > > >
> > > > The internal repository is located at
> > > http://www.openlibrary.info/maven
> > > > Permissions on all maven files allow read access and read/execute
> > for
> > > > directories. SELinux security roles were inherited correctly for
> > the
> > > > files. Apache will serve the files with no problems from a web
> > browser.
> > > >
> > > > My project.properties file has the following line:
> > > >
> > >
> > maven.repo.remote=http://www.ibiblio.org/maven,http://www.openlibrary.info/maven
> >
> > > >
> > > > I am able to browse there correctly with Firefox, including
> > downloading
> > > > the files by following the links.
> > > >
> > > > The dependency section is as follows:
> > > > :
> > > > <dependency>
> > > > <groupId>ldapsp</groupId>
> > > > <artifactId>ldapsp</artifactId>
> > > > <version>1.0</version>
> > > > <type>jar</type>
> > > > </dependency>
> > > > :
> > > >
> > > > I run Maven and receive the following for each file in my internal
> > > > repository:
> > > >
> > > > Attempting to download ldapsp-1.0.jar.
> > > > Error retrieving artifact from
> > > >
> > > [http://www.ibiblio.org/maven/ldapsp/jars/ldapsp-1.0.jar]:
> > > > java.io.IOException: Unknown error downloading; status code was: 503
> > > > Error retrieving artifact from
> > > >
> > > [http://www.openlibrary.info/maven/ldapsp/jars/ldapsp-1.0.jar]:
> > > > java.io.IOException: Unknown error downloading; status code was: 503
> > > > WARNING: Failed to download ldapsp-1.0.jar.
> > > >
> > > > I also tried changing the maven.repo.remote property to use
> > > > file:///var/www/html/maven instead (giving the full path name to the
> > > > repository). When I did this, I received some files, however I
> > looked
> > > > in my local maven repository and they all had contents like:
> > > >
> > > > <HTML>
> > > > <HEAD><TITLE>Redirection</TITLE></HEAD>
> > > > <BODY><H1>Redirect</H1></BODY>
> > > > </HTML>
> > > >
> > > > Again, thank you for any help.
> > > >
> > > > /Paul Kuykendall
> > > >
> > > >
> > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Problems configuring internal repository
Posted by "Paul Kuykendall <TX/EUS>" <Pa...@ericsson.com>.
That helped quite a bit. Is there a way of configuring Maven to not use
a proxy for a certain remote repository? That was what was getting me.
It was trying to hit the proxy for the internal repository.
Thanks for the help!
/Paul
Alex Soto wrote:
> Ok, well the next thing I'd look at is watch the apache access and
> error logs and see what the difference is between a regular browser
> request and a maven request.
>
> On 5/4/05, Paul Kuykendall <TX/EUS> <Pa...@ericsson.com> wrote:
> > Hi,
> >
> > No, I have correctly set the proxy settings. Maven is able to grab
> all the
> > libraries and such from ibiblio. It just isn't able to find the
> internal
> > repository. I tried swapping the two repository entries (ibiblio
> and my
> > internal one) but got the same results.
> >
> > I also removed ibiblio from my repository list. Again, I receive
> the 503
> > error.
> >
> > /Paul
> >
> > Alex Soto wrote:
> >
> >
> > First guess is that since you got a 503 from a request to ibiblio, did
> > you set, or forget to set some http proxy properties?
> >
> > On 5/4/05, Paul Kuykendall <TX/EUS> <Pa...@ericsson.com>
> wrote:
> > > Hi,
> > >
> > > I've recently started to investigate Maven, but have run into some
> > > issues when trying to set up an internal repository for our internal
> > > libraries. I've googled and searched the Maven mailing lists for
> the
> > > past 3 days and have yet to find the answers. Please excuse the
> length
> > > of the email. If I can get everything working for some small
> projects,
> > > I may be able to sell the idea to my department at work which
> would be a
> > > godsend. Thanks in advance.
> > >
> > > Configuration:
> > > I have configured my /etc/hosts file so that www.openlibrary.info
> points
> > > to 127.0.0.1
> > > Apache is configured and works fine using the www.openlibrary.info
> > > address, at least for me locally.
> > >
> > > The internal repository is located at
> > http://www.openlibrary.info/maven
> > > Permissions on all maven files allow read access and read/execute
> for
> > > directories. SELinux security roles were inherited correctly for
> the
> > > files. Apache will serve the files with no problems from a web
> browser.
> > >
> > > My project.properties file has the following line:
> > >
> >
> maven.repo.remote=http://www.ibiblio.org/maven,http://www.openlibrary.info/maven
>
> > >
> > > I am able to browse there correctly with Firefox, including
> downloading
> > > the files by following the links.
> > >
> > > The dependency section is as follows:
> > > :
> > > <dependency>
> > > <groupId>ldapsp</groupId>
> > > <artifactId>ldapsp</artifactId>
> > > <version>1.0</version>
> > > <type>jar</type>
> > > </dependency>
> > > :
> > >
> > > I run Maven and receive the following for each file in my internal
> > > repository:
> > >
> > > Attempting to download ldapsp-1.0.jar.
> > > Error retrieving artifact from
> > >
> > [http://www.ibiblio.org/maven/ldapsp/jars/ldapsp-1.0.jar]:
> > > java.io.IOException: Unknown error downloading; status code was: 503
> > > Error retrieving artifact from
> > >
> > [http://www.openlibrary.info/maven/ldapsp/jars/ldapsp-1.0.jar]:
> > > java.io.IOException: Unknown error downloading; status code was: 503
> > > WARNING: Failed to download ldapsp-1.0.jar.
> > >
> > > I also tried changing the maven.repo.remote property to use
> > > file:///var/www/html/maven instead (giving the full path name to the
> > > repository). When I did this, I received some files, however I
> looked
> > > in my local maven repository and they all had contents like:
> > >
> > > <HTML>
> > > <HEAD><TITLE>Redirection</TITLE></HEAD>
> > > <BODY><H1>Redirect</H1></BODY>
> > > </HTML>
> > >
> > > Again, thank you for any help.
> > >
> > > /Paul Kuykendall
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Problems configuring internal repository
Posted by Alex Soto <ap...@gmail.com>.
Ok, well the next thing I'd look at is watch the apache access and
error logs and see what the difference is between a regular browser
request and a maven request.
On 5/4/05, Paul Kuykendall <TX/EUS> <Pa...@ericsson.com> wrote:
> Hi,
>
> No, I have correctly set the proxy settings. Maven is able to grab all the
> libraries and such from ibiblio. It just isn't able to find the internal
> repository. I tried swapping the two repository entries (ibiblio and my
> internal one) but got the same results.
>
> I also removed ibiblio from my repository list. Again, I receive the 503
> error.
>
> /Paul
>
> Alex Soto wrote:
>
>
> First guess is that since you got a 503 from a request to ibiblio, did
> you set, or forget to set some http proxy properties?
>
> On 5/4/05, Paul Kuykendall <TX/EUS> <Pa...@ericsson.com> wrote:
> > Hi,
> >
> > I've recently started to investigate Maven, but have run into some
> > issues when trying to set up an internal repository for our internal
> > libraries. I've googled and searched the Maven mailing lists for the
> > past 3 days and have yet to find the answers. Please excuse the length
> > of the email. If I can get everything working for some small projects,
> > I may be able to sell the idea to my department at work which would be a
> > godsend. Thanks in advance.
> >
> > Configuration:
> > I have configured my /etc/hosts file so that www.openlibrary.info points
> > to 127.0.0.1
> > Apache is configured and works fine using the www.openlibrary.info
> > address, at least for me locally.
> >
> > The internal repository is located at
> http://www.openlibrary.info/maven
> > Permissions on all maven files allow read access and read/execute for
> > directories. SELinux security roles were inherited correctly for the
> > files. Apache will serve the files with no problems from a web browser.
> >
> > My project.properties file has the following line:
> >
> maven.repo.remote=http://www.ibiblio.org/maven,http://www.openlibrary.info/maven
> >
> > I am able to browse there correctly with Firefox, including downloading
> > the files by following the links.
> >
> > The dependency section is as follows:
> > :
> > <dependency>
> > <groupId>ldapsp</groupId>
> > <artifactId>ldapsp</artifactId>
> > <version>1.0</version>
> > <type>jar</type>
> > </dependency>
> > :
> >
> > I run Maven and receive the following for each file in my internal
> > repository:
> >
> > Attempting to download ldapsp-1.0.jar.
> > Error retrieving artifact from
> >
> [http://www.ibiblio.org/maven/ldapsp/jars/ldapsp-1.0.jar]:
> > java.io.IOException: Unknown error downloading; status code was: 503
> > Error retrieving artifact from
> >
> [http://www.openlibrary.info/maven/ldapsp/jars/ldapsp-1.0.jar]:
> > java.io.IOException: Unknown error downloading; status code was: 503
> > WARNING: Failed to download ldapsp-1.0.jar.
> >
> > I also tried changing the maven.repo.remote property to use
> > file:///var/www/html/maven instead (giving the full path name to the
> > repository). When I did this, I received some files, however I looked
> > in my local maven repository and they all had contents like:
> >
> > <HTML>
> > <HEAD><TITLE>Redirection</TITLE></HEAD>
> > <BODY><H1>Redirect</H1></BODY>
> > </HTML>
> >
> > Again, thank you for any help.
> >
> > /Paul Kuykendall
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Problems configuring internal repository
Posted by "Paul Kuykendall <TX/EUS>" <Pa...@ericsson.com>.
Hi,
No, I have correctly set the proxy settings. Maven is able to grab all
the libraries and such from ibiblio. It just isn't able to find the
internal repository. I tried swapping the two repository entries
(ibiblio and my internal one) but got the same results.
I also removed ibiblio from my repository list. Again, I receive the
503 error.
/Paul
Alex Soto wrote:
> First guess is that since you got a 503 from a request to ibiblio, did
> you set, or forget to set some http proxy properties?
>
> On 5/4/05, Paul Kuykendall <TX/EUS> <Pa...@ericsson.com> wrote:
> > Hi,
> >
> > I've recently started to investigate Maven, but have run into some
> > issues when trying to set up an internal repository for our internal
> > libraries. I've googled and searched the Maven mailing lists for the
> > past 3 days and have yet to find the answers. Please excuse the length
> > of the email. If I can get everything working for some small projects,
> > I may be able to sell the idea to my department at work which would
> be a
> > godsend. Thanks in advance.
> >
> > Configuration:
> > I have configured my /etc/hosts file so that www.openlibrary.info
> points
> > to 127.0.0.1
> > Apache is configured and works fine using the www.openlibrary.info
> > address, at least for me locally.
> >
> > The internal repository is located at http://www.openlibrary.info/maven
> > Permissions on all maven files allow read access and read/execute for
> > directories. SELinux security roles were inherited correctly for the
> > files. Apache will serve the files with no problems from a web
> browser.
> >
> > My project.properties file has the following line:
> >
> maven.repo.remote=http://www.ibiblio.org/maven,http://www.openlibrary.info/maven
>
> >
> > I am able to browse there correctly with Firefox, including downloading
> > the files by following the links.
> >
> > The dependency section is as follows:
> > :
> > <dependency>
> > <groupId>ldapsp</groupId>
> > <artifactId>ldapsp</artifactId>
> > <version>1.0</version>
> > <type>jar</type>
> > </dependency>
> > :
> >
> > I run Maven and receive the following for each file in my internal
> > repository:
> >
> > Attempting to download ldapsp-1.0.jar.
> > Error retrieving artifact from
> > [http://www.ibiblio.org/maven/ldapsp/jars/ldapsp-1.0.jar]:
> > java.io.IOException: Unknown error downloading; status code was: 503
> > Error retrieving artifact from
> > [http://www.openlibrary.info/maven/ldapsp/jars/ldapsp-1.0.jar]:
> > java.io.IOException: Unknown error downloading; status code was: 503
> > WARNING: Failed to download ldapsp-1.0.jar.
> >
> > I also tried changing the maven.repo.remote property to use
> > file:///var/www/html/maven instead (giving the full path name to the
> > repository). When I did this, I received some files, however I looked
> > in my local maven repository and they all had contents like:
> >
> > <HTML>
> > <HEAD><TITLE>Redirection</TITLE></HEAD>
> > <BODY><H1>Redirect</H1></BODY>
> > </HTML>
> >
> > Again, thank you for any help.
> >
> > /Paul Kuykendall
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
Re: Problems configuring internal repository
Posted by Alex Soto <ap...@gmail.com>.
First guess is that since you got a 503 from a request to ibiblio, did
you set, or forget to set some http proxy properties?
On 5/4/05, Paul Kuykendall <TX/EUS> <Pa...@ericsson.com> wrote:
> Hi,
>
> I've recently started to investigate Maven, but have run into some
> issues when trying to set up an internal repository for our internal
> libraries. I've googled and searched the Maven mailing lists for the
> past 3 days and have yet to find the answers. Please excuse the length
> of the email. If I can get everything working for some small projects,
> I may be able to sell the idea to my department at work which would be a
> godsend. Thanks in advance.
>
> Configuration:
> I have configured my /etc/hosts file so that www.openlibrary.info points
> to 127.0.0.1
> Apache is configured and works fine using the www.openlibrary.info
> address, at least for me locally.
>
> The internal repository is located at http://www.openlibrary.info/maven
> Permissions on all maven files allow read access and read/execute for
> directories. SELinux security roles were inherited correctly for the
> files. Apache will serve the files with no problems from a web browser.
>
> My project.properties file has the following line:
> maven.repo.remote=http://www.ibiblio.org/maven,http://www.openlibrary.info/maven
>
> I am able to browse there correctly with Firefox, including downloading
> the files by following the links.
>
> The dependency section is as follows:
> :
> <dependency>
> <groupId>ldapsp</groupId>
> <artifactId>ldapsp</artifactId>
> <version>1.0</version>
> <type>jar</type>
> </dependency>
> :
>
> I run Maven and receive the following for each file in my internal
> repository:
>
> Attempting to download ldapsp-1.0.jar.
> Error retrieving artifact from
> [http://www.ibiblio.org/maven/ldapsp/jars/ldapsp-1.0.jar]:
> java.io.IOException: Unknown error downloading; status code was: 503
> Error retrieving artifact from
> [http://www.openlibrary.info/maven/ldapsp/jars/ldapsp-1.0.jar]:
> java.io.IOException: Unknown error downloading; status code was: 503
> WARNING: Failed to download ldapsp-1.0.jar.
>
> I also tried changing the maven.repo.remote property to use
> file:///var/www/html/maven instead (giving the full path name to the
> repository). When I did this, I received some files, however I looked
> in my local maven repository and they all had contents like:
>
> <HTML>
> <HEAD><TITLE>Redirection</TITLE></HEAD>
> <BODY><H1>Redirect</H1></BODY>
> </HTML>
>
> Again, thank you for any help.
>
> /Paul Kuykendall
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org