lazy load of jar - Maven ?

J

Jean-Marc Vanel

Hi all

In addition to use Maven to manage dependencies and build my application
(http://eulergui.sourceforge.net/), I would like to re-use the
dependencies specified in the pom.xml to carry out a lazy loading of the
jars in my application. That would make it possible to release my
application with the most important dependencies in
XXX-jar-with-dependencies.jar, and the application would download the
dependences as needed, like Maven does.

I see at least 3 possibilities:
- with specific ClassLoader
- embed Maven
- to use Osgi (from eclipse or another? )

I think that I am not the only one to have this kind of needs.
I would like to avoid a big distribution with many jars, and a run.sh
and a run.bat. Thus I would not like to develop myself this kind of
infrastructure.

Any hint welcome.

Jean-Marc Vanel
http://jmvanel.free.fr/
 
M

Michael Justin

Jean-Marc Vanel said:
I see at least 3 possibilities:
- with specific ClassLoader
- embed Maven
- to use Osgi (from eclipse or another? )

I think that I am not the only one to have this kind of needs.
I would like to avoid a big distribution with many jars, and a run.sh
and a run.bat. Thus I would not like to develop myself this kind of
infrastructure.

There is a Java(tm) Technology thingy called "Java Web Start".

http://en.wikipedia.org/wiki/Java_Web_Start

Hope this Helps(tm)
 
J

Jean-Marc Vanel

Michael Justin a écrit :
Jean-Marc Vanel wrote:
...

There is a Java(tm) Technology thingy called "Java Web Start".

http://en.wikipedia.org/wiki/Java_Web_Start

Hope this Helps(tm)

Thanks Michael; indeed it helps; I always thought that JNPL donwloads a
monolythic application, but that's not the case :

* The JNLP file can list resources as "lazy", which informs the JNLP
* client that the application does not need those resources to start,
* but can retrieve them later on when/if the application requests them.

JNPL also can manage update of the local cache.

And I found this project that looks good to generate JNPL settings from
Maven :

http://mojo.codehaus.org/webstart/webstart-maven-plugin/

I'll tell you how it will work.

JMV
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top