If you want to use Maven, I strongly suggest that you work out a solution
where a central Maven Repository Manager (such as Nexus or Artifactory) in
your corporate dev environment, have direct Internet connection. If you
involve your infrastructure security people I'm sure they can come up with
an acceptable solution where it is placed in a separate zone for example,
giving adequate security.

Trying to create a Maven infrastructure without Internet connection, will
simply be an ongoing maintenance nightmare. Trust me, I've been there. The
thing is that it will not be a one time job getting your dependencies (incl.
Maven plugins) and copying them to you off-line environment. This will have
to be repeated every now and then, and often likely in a hurry because a new
version of something was needed yesterday.

/Anders

On Thu, Dec 2, 2010 at 01:22, maven apache <[email protected]> wrote:

> Thanks,I will have a try.
> 2010/12/1 Gajo Csaba <[email protected]>
>
> > 1. create a dummy maven project
> > 2. in the pom.xml add in the <dependencies>, <plugins>  and <reporting>
> ALL
> > the files you'll need... possibly include all the versions as well
> > 3. go to a computer that does have internet and run mvn clean site
> package
> > install deploy dependency:go-offline and a handful of other commands you
> can
> > think of
> > 4. package your local .m2 directory into a zip file and copy on your usb
> > flash
> > 5. go to your local offline computer and extract the zip file
> > 6. in .m2/settings.xml set the <offline>true</offline>
> >
> > This is how you work with Maven in offline mode...
> >
> > Cheers, Csaba
> >
> >
> >
> > On 1.12.2010 11:51, maven apache wrote:
> >
> >> 2010/12/1 Antonio Petrelli<[email protected]>
> >>
> >>  2010/12/1 maven apache<[email protected]>:
> >>>
> >>>> In a word,all development related machine can not access the internet.
> >>>>
> >>> But
> >>>
> >>>> they can access each other in the Local Area Network.
> >>>>
> >>>> I mean the build machine as my own work machine. It can access the
> >>>> repository machine through Local Area Network.
> >>>>
> >>> But the repository machine should access the Internet at least once.
> >>> Isn't it possible?
> >>>
> >>>  No. Once. All the jars can only be downloaded in a online machine then
> >> transfered to the repository machine by usb-dirver :(.
> >>
> >> If it can access the Internate once,I would not have these problems.
> >>
> >>  Stupid security reasons :-D
> >>>
> >>>  :(
> >>
> >>  Antonio
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [email protected]
> >>> For additional commands, e-mail: [email protected]
> >>>
> >>>
> >>>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>

Reply via email to