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]

Reply via email to