Reputation: 2095
I'm moving my project to Maven and eventually OSGi. I currently distribute the project is a large Zip file with all the dependencies. Although my projects code is only 20% of the total package I have to redistribute all the dependency. With smaller independent modules this may be even less.
Looking here on stack overflow it seems that to keep my current plan the maven-assembly-plugin should do the trick.
I was considering having a base installer that would look at a XML manifest, then collect all the libraries that needed to be updated. This would mean that libraries that change occasionally would be downloaded less often. This also makes since for something like OSGi plugins (which could have independent release schedules). In essence I want my software to look and manage individual libraries, and download on demand (based on the manifest).
I was wondering if there is a "maven way" of generating this Manifest and publishing all the libraries to a website? I believe the deploy life-cycle would do the second step.
As an alternative, is there a OpenSource Java library that does this type of deployment? I don't want to embed Maven or something larger with the distributed code. The application is not for coders, the simpler the better, and the smaller the installer the better.
Upvotes: 1
Views: 999
Reputation: 17375
First: Web Start could solve your problem. And here is the documentation for the maven plugin.
Second: Be sure that you
create a keystore like this:
keytool -genkey -alias timefinder -keystore timefinder.jks
Create a jnlp template like this
look at the bottom of my pom.xml for an example
and call maven via:
mvn install webstart:jnlp
Advantages:
Disadvantages:
Another distribution option might be one jar
Upvotes: 1
Reputation: 31795
You can use Maven versions plugin to check and/or update versions of dependencies.
Upvotes: 0
Reputation: 39606
It seems like this is a perfect case for Java Web Start, particularly since you're already thinking of keeping the dependencies on a webserver. I don't know if Maven has a WS plugin; I remember writing code for Maven 1 to do the job.
If you'd like to see WebStart in action, I recommend the FindBugs demo page: http://findbugs.sourceforge.net/demo.html -- you'll see a link in the second paragraph.
Upvotes: 1
Reputation: 570515
I don't know a maven way to do the first thing you are describing (which doesn't mean there is nothing for this).
As an alternative, I'd use IzPack (which is really a great piece of sotware) and the IzPack Maven Plugin to generate a cross-platform installer and install/deploy it to a maven repository.
EDIT: Maybe have a look at the advanced feature call Web Installers. I don't think it will solve entirely your problem though (downloading only what changed between updates/reinstall).
Upvotes: 0