maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marrs, Thomas" <>
Subject RE: M2 and Remote HTTP Repo on Tomcat
Date Tue, 11 Oct 2005 15:37:18 GMT
OK, then why have a remote/shared repository? I thought that the whole idea
*was* to replace the local repository - we want a common place with all the
same JARs so we're all looking at the same thing.
The main reason I wanted a shared repository is that I don't want to walk
everyone through the tedious process of adding all the Sun JARs (JDBC, JTA,
JSF) to each local repository. If this is wrong, then what's the right way?

So, what's the process for setting up a remote repository? Do I just copy
the contents of my local repository to the repository directory under


-----Original Message-----
From: Stephen Duncan [] 
Sent: Tuesday, October 11, 2005 9:31 AM
To: Maven Users List
Subject: Re: M2 and Remote HTTP Repo on Tomcat

Remote repositories are for sharing artifacts between users.  They are not a
replacement for the local repository.


On 10/11/05, Marrs, Thomas <> wrote:
> Hi,
> I'm trying to setup a shared/remote HTTP-based repository on Tomcat, 
> but I can't make it work. Here are the steps I've taken:
> 1) Removed my local M2 repository.
> 2) Installed Tomcat.
> 3) Added a repository directory under $CATALINA_HOME
> 4) Modified my top-level POM as follows:
> ---
> ...
>     <build>
>       ...
>     </build>
>     <profiles>
>       <profile>
>         <repositories>
>           <repository>
>             <id>shared</id>
>             <name>shared</name>
>             <url>http://localhost:18080/repository</url>
>           </repository>
>           <repository>
>             <id>repo1</id>
>             <name>repo1</name>
>             <url></url>
>           </repository>
>         </repositories>
>       </profile>
>     </profiles>
>     <dependencyManagement>
>       ...
>     </dependencyManagement>
> ---
> The
> When I run "m2 install" it ignores the remote repository on Tomcat, 
> and starts installing the JARs to my local repository. Why?? Have I 
> done something wrong? Should I be doing something else? Thanks for your
> Tom

Stephen Duncan Jr

To unsubscribe, e-mail:
For additional commands, e-mail:

The information in this electronic mail message is sender's business
Confidential and may be legally privileged. It is intended solely for the
addressee(s). Access to this Internet electronic mail message by anyone else
is unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it is prohibited and may be unlawful.  
The sender believes that this E-mail and any attachments were free of any
virus, worm, Trojan horse, and/or malicious code when sent. This message and
its attachments could have been infected during transmission. By reading the
message and opening any attachments, the recipient accepts full
responsibility for taking protective and remedial action about viruses and
other defects. Cendant is not liable for any loss or damage arising in any
way from this message or its attachments.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message