On 12/12/06, Andrew Borley <[EMAIL PROTECTED]> wrote:
Hi Ant,
Thanks for the info - I was putting my -Doffline flag in the wrong
place. It works now!
A further question - is it possible to build and deploy the samples in
an offline mode? Does this just depend on having the right stuff in
your local repository?
Ah - this is the -o flag that Rick suggested - thanks Rick!
So to summarize, after you have built & run the sample online (to
download the dependencies), you can rebuild and run offline with the
following commands:
mvn -o
mvn -o dependency:unpack
java -Doffline=true -jar target/distribution/bin/launcher.jar
target/sample-calculator-combo.jar
Cheers!
Andy
On 12/11/06, ant elder <[EMAIL PROTECTED]> wrote:
> Andy, the offline mode is set via a Java system property so you need to
> prefix it with -D, eg:
>
> C:\Tuscany\Dist\m2-samples\standalone\calculator-combo>java -Doffline=true
> -jar target\distribution\bin\launcher.jar target\sample-calculator-combo.jar
>
> For that to work you must have first run the sample without offline=true to
> get all the required jars downloaded to your local maven repository.
>
> ...ant
>
> On 12/11/06, Andrew Borley <[EMAIL PROTECTED]> wrote:
> >
> > Thanks Venkat,
> >
> > Unfortunately however, this doesn't work - I get the same exception.
> > It does seem to give some different maven log messages however, so it
> > does do something!
> >
> > Cheers
> > Andy
> >
> >
> > On 12/11/06, Venkata Krishnan <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > I guess there is a variable "offline" that you must set to true when
> > > running the launcher to run the samples. java -jar bin\launcher
> > > offline=true.... I checked up with the code for the system.getPropertyit
> > > uses and I find 'offline' there as well. So hope this works for you.:)
> > >
> > > - Venkat
> > >
> > >
> > > On 12/11/06, Rick <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Not 100% sure if this is what your asking for but "-o" for "offline"?
> > But
> > > > I'll
> > > > offer it anyway.
> > > >
> > > >
> > > > Andrew Borley wrote:
> > > > > Hi all,
> > > > >
> > > > > This has probably been answered on this list before, but I can't
> > find
> > > > > the info - how do I stop maven needing a network connection? I'm
> > > > > running the calculator-combo sample and finding that it fails if I'm
> > > > > not connected due to an "unable to resolve artifact" error.
> > > > >
> > > > > I'm sure the answer is to put certain things in my local repository,
> > > > > but I'm not sure what!
> > > > >
> > > > > Cheers
> > > > >
> > > > > Andy
> > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > > > 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]
> > > >
> > > >
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > 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]