Hi, we would like to package our application so it can run without any network connection and within the installation directory.
Should be possible,
I figure we would need to 1) resolve all dependencies and put them in a repository like the system repo
Merlin uses two repositories:
(a) a system repository a.k.a. ${merlin.system}
(b) an application repository a.k.a ${merlin.repository}2) override the avalon properties and all merlin properties - what are the
properties that need to be changed?
it seems like:
${avalon.repository.cache}
${avalon.repository.hosts}
${merlin.system}
${merlin.repository}
${merlin.repository.hosts}
The only one you really need to change is ${merlin.repository hosts} - the rest will default to reasonable values.
However, merlin keeps going to the ${user.home}/.maven/repository ...
Umm - does not sound right. Could you turn on info listing and post the result? Normally Merlin will default to the following is nothing is defined:
${merlin.system} == ${merlin.home}/system
${merlin.home} = ${user.home)/.merlin
${merlin.repository} = ${avalon.home}/repository
${avalon.home} = ${user.home}/.avalonIf your running Merlin 3.3 you can use the -offline command line option. There is still some stuff to be updated to properly handle offline mode but basically most of the details are in place.
3) specify a kernel.xml that has only local repos.
You can do this in properties - the kernel setting override property setting so if your kernel does not declare anything then properties setting will be respected.
Is there any easy way to do this? How do I get all runtime dependecies into a seperate repo? Should we just boot up the application, se what it downloads and then package that?
As an initial step - yes. As we move forward there is a resource packaging model that uses a bar file. The bar file basically captures a a branch of a repository and can be installed in order to populate a local repository cache with resources. But lets dicsuss this later - seems you have a immediate issue concerning the maven repo access (which should not happen if your using the merlin cli.
Cheers, Stephen.
regards
/peter
------------------------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
|------------------------------------------------| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org/merlin | | http://dpml.net/merlin/distributions/latest | |------------------------------------------------|
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
