Hi Sepand,

What you have done does not explain what you wanted to do.

All that you have done is relocate your Local Repo (./m2/repository) to
a new location.

If that's what you wanted to do, then, what you did is correct. You can
also include this in your ~/.m2/setting.xml to avoid the need to declare
it on the command line.

Thanks
Lakshman


> -----Original Message-----
> From: Sepand M [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 6 September 2006 10:37 AM
> To: Maven Users List
> Subject: Re: Making a single independent and offline maven build
directory
> 
> Hi,
> 
> I found the solution:
> an initial run of:
> mvn -Dmaven.repo.local=<some_dir> [compile | install | etc.]
> after that:
> mvn -Dmaven.repo.local=<some_dir> -o [compile | install | etc.]
> 
> This should also explain what I'm trying to do =)
> 
> - Sepand
> 
> On 9/5/06, Lakshman Srilakshmanan
<[EMAIL PROTECTED]>
> wrote:
> >
> > Hi Sepand,
> >
> > If you don't want access to the internet and no access to
> > ~/.m2/repository where are you going to get your dependencies from ?
an
> > internal (company) Repository.
> >
> > If you are going to get it from an internal repository, then just
remove
> > ~/.m2/repository and run your build. This will download all the jars
&
> > plugins again and build it.
> >
> > On the other hand if you are trying to prevent the creation of
> > ~/.m2/repository then I don't think it is possible. You may want to
> > understand what you are trying to do.
> >
> > Thanks
> > Lakshman
> >
> >
> > > -----Original Message-----
> > > From: Sepand M [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, 6 September 2006 8:07 AM
> > > To: [email protected]
> > > Subject: Making a single independent and offline maven build
directory
> > >
> > > Hi,
> > >
> > > I need to make a maven project build with no dependency on the
> > internet.
> > > I also need this to be over the network (so no access to ~/.m2)
and
> > runnable
> > > without write permissions (except for the built files).
> > > If you're wondering, I'm hoping to check a copy of this into a
source
> > > control system.
> > >
> > > Can maven to this easily? I know of the -o option, but I don't
know
> > how to
> > > make it work without the ~/.m2. I'd rather not touch the project
POMs
> > and I
> > > would really hate to have to create my own ftp/sftp/... local
> > repository.
> > >
> > > Any help would be greatly appreciated.
> > >
> > > Regards,
> > > Sepand
> >
> >
> >
---------------------------------------------------------------------
> > 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