Nele,

Why don't you use a maven proxy to setup your company's central repository?
Have a look at http://maven-proxy.codehaus.org/
It is rather easy to set up.

The idea is to proxy central and/or other repositories, and cache the
requested artifacts centrally..

Cheers
Jo

On 8/29/07, De Vleeschauwer Nele <[EMAIL PROTECTED]> wrote:
>
> Hi Wim,
>
> I just copied the repository from my laptop (that has a connection to
> the internet) to our company's repository server.
> I think this is not the correct way to do it, but I can't find any
> documentation on how I should set up a 'company central repository'. So
> any suggestions would be welcome...
>
> Kind regards,
>
> Nele.
>
> -----Original Message-----
> From: Wim Deblauwe [mailto:[EMAIL PROTECTED]
> Sent: woensdag 29 augustus 2007 9:28
> To: Maven Users List
> Subject: Re: Maven repository
>
> How did you set up the internal repository? Did you copy a local
> repository
> to some server and made it available through http, or are you using one
> of
> the proxy tools like proximity or archiva?
>
> regards,
>
> Wim
>
> 2007/8/29, De Vleeschauwer Nele <[EMAIL PROTECTED]>:
> >
> > Hi,
> >
> > Thanks for the tip, but it doesn't quite do the trick...
> > I've added the following to my settings.xml:
> >
> > <mirror>
> >       <id>central</id>
> >       <mirrorOf>central</mirrorOf>
> >       <name>Maven Central Proxy Repository</name>
> >       <url>http://b2btst04/maven-central-proxy</url>
> >     </mirror>
> > </mirrors>
> >
> > When I execute a maven command, our company's central repo is accessed
> > (instead of the repo1.maven.org one), but when I take a network trace
> I
> > see the following:
> >
> >     GET
> >
> /maven-central-proxy/org/apache/maven/plugins/maven-resources-plugin/mav
> > en-metadata.xml HTTP/1.1\r\n
> >         Request Method: GET
> >         Request URI:
> >
> /maven-central-proxy/org/apache/maven/plugins/maven-resources-plugin/mav
> > en-metadata.xml
> >         Request Version: HTTP/1.1
> >
> > This however returns a 404 Not Found error, since the specified
> > directory doesn't contain a maven-metadata.xml but a
> > maven-metadata-central.xml.
> >
> > How can I solve this ?
> >
> > Thanks for your input,
> >
> > Nele.
> >
> >
> >
> > -----Original Message-----
> > From: Wim Deblauwe [mailto:[EMAIL PROTECTED]
> > Sent: woensdag 29 augustus 2007 8:03
> > To: Maven Users List
> > Subject: Re: Maven repository
> >
> > You need to say that your repository is a mirror of central, see
> > http://maven.apache.org/guides/mini/guide-mirror-settings.html for
> more
> > info.
> >
> > regards,
> >
> > Wim (also from Belgium ;))
> >
> > 2007/8/28, De Vleeschauwer Nele <[EMAIL PROTECTED]>:
> > >
> > > Hi,
> > >
> > > I'm just setting up Maven on a developer's workstation. The
> developer
> > > has no access to the Internet and should therefore always retrieve
> the
> > > latest artifacts from a repository we've set up at our company
> (which
> > > has a connection to the internet).
> > > Even when I add the following part to the settings.xml file of the
> > Maven
> > > installation on the developer's machine, each Maven command I
> execute
> > > from there still tries to connect to the Maven repository on the
> > > Internet. How can this be avoided ?
> > > (The repository I've set up is working fine, since I can connect
> with
> > an
> > > Internet Explorer to it)
> > >
> > > ....
> > > <profiles>
> > >   <profile>
> > >     <id>dev</id>
> > >     <repositories>
> > >       <repository>
> > >         <id>central</id>
> > >         <name>Maven Central Proxy Repository</name>
> > >         <url>http://b2btst04/maven-central-proxy</url>
> > >       </repository>
> > >     </repositories>
> > >     <pluginRepositories>
> > >       <pluginRepository>
> > >         <id>central</id>
> > >         <name>Maven Central Proxy Repository</name>
> > >         <url>http://b2btst04/maven-central-proxy</url>
> > >       </pluginRepository>
> > >     </pluginRepositories>
> > >   </profile>
> > > </profiles>
> > > <activeProfiles>
> > >     <activeProfile>dev</activeProfile>
> > > </activeProfiles>
> > > ....
> > >
> > > -----------------------------------------
> > > Visit our website! http://www.nbb.be
> > >
> > > "DISCLAIMER: The content of this e-mail message should not be
> > > construed as binding on the part of the National Bank of Belgium
> > > (NBB) unless otherwise and previously stated. The opinions
> > > expressed in this message are solely those of the author and do not
> > > necessarily reflect NBB viewpoints, particularly when the content
> > > of this message, or part thereof, is private by nature or does not
> > > fall within the professional scope of its author."
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Vigilog - an open source log file viewer:
> http://vigilog.sourceforge.net
> > Blog: http://www.jroller.com/page/Fester
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
> Blog: http://www.jroller.com/page/Fester
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to