On Nov 6, 2007 10:18 AM, Kevin Stembridge <[EMAIL PROTECTED]> wrote: > > Hi, > > Jerome is referring to a new Mojo in the 1.0-alpha2 snapshot version, called > JnlpDownloadServletMojo. This mojo is designed to be added to a maven WAR > project that creates a WAR to be deployed in a servlet container, serving up > the JNLP bundle via Sun's JnlpDownloadServlet. So of course, this mojo is > only an option for you if you are deploying via the JnlpDownloadServlet or > are willing to do so. > > The mojo allows you to generate multiple JNLP files that may share some > common resources. It sounds like pretty much all your resources would be > common, which is fine. You'd just have to have 2 JNLP templates, which is > also fine. Unfortunately, there is no way to do this with the Mojos > available in the alpha1 snapshot. You'd have to be able to use the > JnlpDownloadServletMojo. > > To get the alpha2 snapshot, you have to add the codehaus snapshots > repository to your pom.xml and specify version 1.0-alpha2-SNAPSHOT as the > version of the mojo. > > > <pluginRepositories> > > <pluginRepository> > <id>Codehaus Snapshots</id> > <url>http://snapshots.repository.codehaus.org</url> > <snapshots> > <enabled>true</enabled> > </snapshots> > <releases> > <enabled>false</enabled> > </releases> > </pluginRepository>
Ah, thanks didn't realize it was a different url. > For documentation, I'm afraid you'll have to download the source code and > generate the site. > > Hope this helps. Yes, I found this which shows <jnlpFiles>: https://svn.codehaus.org/mojo/trunk/mojo/webstart-maven-plugin/plugin/src/site/apt/examples/advanced_jnlp_download_servlet.apt Thanks for the clues! Dave. > > On Nov 5, 2007 7:53 PM, deckrider <[EMAIL PROTECTED]> wrote: > > > > > > > I'm new to all of this, and have inherited a project that provides > > > multiple jnlp files, usually whose only differences are > > > initial-heap-size and max-heap-size. > > > > > > Is there some mechanism within this plugin to allow for multiple > > > templates? What is the best way for me to deal with these? > > > > You should probably look into the JnlpDownloadServlet support. There's a > > mojo for it in the latest snapshot. > > I'm sorry I don't understand the answer. Does this mean I can't have > multiple templates for the same jar file? Does it mean that I should > use some kind of $$maxHeapSize variable that the JnlpDownloadServlet > populates on the fly? (If this is the case, I'm not understanding > where I would indicate how this works in my pom.xml via the > framework--is there a pointer to some documentation I could see?) > > Also, what do I put in my pom.xml to get the latest snapshot? I only > seem to get 1.0-alpha-1. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
