Hi, I had this problem, too.

Here's my solution:
1. Simply run your build once on a machine that's connected to the network.
Maven will fill the local repository on this machine with all plugins and
libraries (artifacts) that your build needs.
2. Copy this local repository to your build machine.
3. Configure Maven on the build machine so that it uses the just copied
files as local repository.
4. Run the build on you build machine in offline mode. There are two options
to achieve this: a) use the "-o" command line switch or b) set offline=true
in your settings.xml.

BTW: Filling and saving a local repo that contains *everything* that the
build process needs is a great way to achieve the reproducability of the
build. Some projects in our company even put the local repo of the build
machine into their version control system to be able to tag it with
release-tags.

HTH, Stefan



prasanna.goupal wrote:
> 
> The problem here is that internet is not accessible from our build server.
> 
> I need to download plugin on my machine first and then need to copy it on
> build server and so go on... 
> 
> Regards,                                       
> 
> Prasanna A. Goupal
> 
> 
> -----Original Message-----
> From: Martin Höller [mailto:[EMAIL PROTECTED] 
> Sent: Friday, December 05, 2008 4:14 PM
> To: [email protected]
> Subject: Re: Maven Repository
> 
> On 05 Dec 2008, prasanna.goupal wrote:
> 
>> Is there any way to download complete repository on my local machine
> instead
>> of checking & downloading required plaugins?
> 
> Beside what Baptiste already wrote: you don't have to download plugins or
> dependencies manually, maven does this automatically for you. Just
> specify your plugins and dependencies in the pom.xml file and run maven.
> 
> hth,
> - martin
> 
> -- 
> This electronic mail, together with the attached files, if any,
> (collectively "electronic mail" / "mail") is intended solely for the
> addressee(es) above, and may contain information which is confidential
> and/or legally privileged.If  you  have  received  this  mail  in  error,
> we request you to advise us immediately  by sending a message by clicking
> "reply to" button. You should delete  the  mail  from  your  hard
> drive/system, and if you have made any hard/physical copies of the mail,
> you should destroy the same.Unauthorised  use,  distribution,  disclosure
> or copying of this electronic mail is strictly prohibited, and may be
> unlawful.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Maven-Repository-tp20850446p20894117.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to