Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Maven to build a Java Web Start application

I'm new to almost all related things, but would like to build a Java Web Start application using Maven. I also need to repack a specific .jar (commons-httpclient-3.1.jar), or it won't sign with JarSigner (looks to be a common problem when I googled). Perhaps I could use this Maven plugin, but I don't even know how to setup the Maven repository.

I (might) need to:

  • set up the Maven repository to be able to use the above plugin,
  • configure the jnlp build using the plugin,
  • take use of three .jars that we have developed (already built using Maven) and install along with the dependencies (such as slf4j-api-1.6.1.jar, spring-security-core-3.0.7.RELEASE.jar and a dozen or so others),
  • also unpack and repack a specific .jar (repack using jar.exe, not zip since it doesn't work).

I much prefer examples to links to big chunks of documentation. :) Thanks in advance!

like image 540
Jonas Byström Avatar asked Jan 03 '12 14:01

Jonas Byström


1 Answers

you can use a maven plugin for web start

Alternatively you can generate a war with the jnlp file inside (created manually)

You can even create a servlet that will create a jnlp (with stuff like get all jars in some lib directory) and return dynamically to the client.

The plugin should be in the maven repository, but I've never checked it...

like image 58
Mark Bramnik Avatar answered Oct 07 '22 19:10

Mark Bramnik