maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maven apache <apachemav...@gmail.com>
Subject Re: can we use maven in offline environment?
Date Wed, 01 Dec 2010 10:43:15 GMT
2010/12/1 Antonio Petrelli <antonio.petrelli@gmail.com>

> 2010/12/1 maven apache <apachemaven0@gmail.com>:
> > 2010/12/1 Antonio Petrelli <antonio.petrelli@gmail.com>
> >> You can use:
> >> mvn dependency:go-offline
> >> to download any plugin and dependency in one shot, but you have still
> >> need to be online at least once.
> >>
> >
> > The fucking is the machine which hold the repository is off line also .:(
>
> Very colourful :-D
>
> > However I am a bit confused: without Maven, how do you download
> >> libraries you need?
> >>
> >
> > We download the needed jars and put the to the develop machine.
> >
> > Since everyone download its own jars,so the version may be different,so I
> > thought maven :).
> >
> > What I considered is every time we download a new jar,and put it to the
> > repository machine(off-line),we should put it as maven's struture--
> *groupId
> > *,artifactId,version. It is a little Cumbersome. :(
>
> You can try a trick: use a Maven repository manager in "proxy" mode
> for all repositories you need on your own machine.
> Change your settings.xml to depend on it.
> Do a dependency:go-offline on your local machine, so the repository
> will be populated.
> Now create a repository on your build machine and downloaded artifacts
> (if you use Nexus, transfer the whole "sonatype-work" directory under
> your home) and let its Maven installation depend on it (settings.xml).
>
> However I am still confused: with "offline" you mean that the build
> machine has no ethernet cable attached? So you phisically need to go
> there and launch/check the build?
>
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.

I will have a try,thank you . :)

> If yes, I don't envy you at all :-D
>
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message