Jonas Byström
Jonas Byström

Reputation: 26169

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:

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

Upvotes: 6

Views: 5159

Answers (2)

codeghost
codeghost

Reputation: 1024

You've probably figured this out by now, but plugin repositories are referenced with a separate configuration in your pom to the normal installation repositories.

e.g.

  <pluginRepositories>
    <pluginRepository>
      <id>central</id>
      <name>Maven Plugin Repository</name>
      <url>http://repo1.maven.org/maven2</url>
      <layout>default</layout>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <releases>
        <updatePolicy>never</updatePolicy>
      </releases>
    </pluginRepository>
  </pluginRepositories>

See here http://maven.apache.org/guides/introduction/introduction-to-the-pom.html

Upvotes: 0

Mark Bramnik
Mark Bramnik

Reputation: 42491

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...

Upvotes: 2

Related Questions