You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by EJ Ciramella <ej...@upromise.com> on 2006/04/06 22:24:46 UTC

Internal (intranet) repositories

I'm trying hard to use a fileserver as an internal repository (I saw
this somewhere in the documentation):
 
Such an internal repository can be downloaded from using HTTP or the
file system (using a file:// URL), and uploaded to using SCP, FTP, or a
file copy.
 
 
   <repositories>
     <repository>
      <id>central-2</id>
      <name>Upromise Maven Repository</name>
      <url>file://somefileserver/mavenrepository</url>
     </repository>
   </repositories>
 
the (real) path works just fine for windows explorer, but when I run mvn
compile, I see it go to:
 
Downloading: http://repo1.maven.org/maven2.....
 
what am I doing wrong?

Re: Internal (intranet) repositories

Posted by mjohnsonaz74 <mj...@hotmail.com>.
For what it's worth 2 months later, I thought I'd post my experiance using
maven-proxy.  I followed the setup instructions and had no problem with
maven-proxy downloading files from central into the local mirror. However, I
did have an issue with my local artifacts being picked up. 

 I setup a mirror in my settings file, but the profiles I had setup were
useless.  The one thing I did to correct everything was to include the repo
location in my POM.xml file.  So, what I have is a <mirror> tag in my
settings.xml file, which points to the repo on my server. I have a
<repository> tag in my POM.xml file that points to the repo on my server. 
Also, in my settings.xml file I set my local repo as a location on my local
machine (i.e. c:\.m2\repo).  

This accomplishes the following: When searching for an artifact that is not
in local, maven goes to the repository, which goes to ibiblio if it's not in
my repo.  The artifact is then copied to my local machine for use by Maven. 
Now, I could have pointed local to my server, but I want each developer to
have a copy of the repo on their local machine.  They don't have write
access to the server and I want them to have the latest artifacts so when
they build, the newer artifacts are installed in their local repo.  I hope
this will help anyone who is still stuck.
--
View this message in context: http://www.nabble.com/Internal-%28intranet%29-repositories-t1408249.html#a4776490
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org