The following is a sample from the src of the maven webstart project. I
think the default location for this in the current version of the plugin
is src/jnlp/template.vm or maybe src/main/jnlp/template.vm.




<?xml version="1.0" encoding="utf-8"?>
<jnlp
    spec="1.0+"
    codebase="http://www.domaine.com/webstart/";
    href="$outputFile">
  <information>
    <title>Title</title>
    <homepage href="http://www.domain.com"/>
    <description kind="one-line">OneLineDescription</description>
    <description kind="short">Short Description.
                   Multi-line.</description>
    <description kind="tooltip">Tooltip Description</description>
    <icon
      width="35"
      height="26"
      href="images/icon.gif"/>
    <icon
      kind="splash"
      href="images/icon.jpg"/>
  </information>
  <information>
    <title>French</title>
    <vendor>Pauses Cafees</vendor>
    <homepage href="http://www.domaine.com"/>
    <description kind="one-line">DescriptionEnUneLigne</description>
    <description kind="short">Description courte.
                   Multi-ligne.</description>
    <description kind="tooltip">Description pour Tooltip</description>
  </information>
  <security>
     <all-permissions/>
  </security>
  <resources>
    <j2se version="1.4+"
     initial-heap-size="32m"
     max-heap-size="128m"
     />
     $dependencies
  </resources>
  <application-desc main-class="$mainClass">
    <argument>1</argument>
    <argument>2</argument>
  </application-desc>
</jnlp>








"Sebastien Arbogast" <[EMAIL PROTECTED]>
06/07/2007 10:29
Please respond to
[email protected]


To
[email protected]
cc

Subject
Re: [mojo-user] maven-webstart-plugin and maven-assembly-plugin






OK, I'll see for the JnlpDownloadServlet later as I don't know why I would
need it.
For now I'm just trying to generate a zip file that I can extract in my
htdocs apache directory.
But I have a problem with the plugin configuration: when I try to build my
webstart module, I get an error saying that it can't find any velocity
template for the JNLP file. And as a matter of fact I didn't create one
because I thought that a generic one would be used instead. But obviously
there's no such thing.

Are there some examples of velocity templates for jnlp file somewhere?

2007/7/6, Kevin Stembridge <[EMAIL PROTECTED]>:

Hi Sebastien,

Generally speaking, I think its best to create a separate webstart module
to produce a JNLP bundle in a zip.
What you do with it next depends on how you plan on deploying the JNLP
bundle. For example, if you are deploying it via JnlpDownloadServlet then
you would also need another module to produce a WAR file and use the
dependency plugin within this module to unpack the JNLP zip into the
appropriate directory.
Then your dist project doesn't have to worry about the webstart module,
just the WAR module.

Cheers,
Kevin





"Sebastien Arbogast" <[EMAIL PROTECTED]>
06/07/2007 09:31

Please respond to
[email protected]



To
[email protected]
cc

Subject
[mojo-user] maven-webstart-plugin and maven-assembly-plugin








I'm trying to configure my project to use maven-webstart-plugin in
combination with maven-assembly-plugin
My project is a multi-module desktop application with:
- a "core" module (jar) for my application itself
- a "dist" module (pom) which uses maven-assembly-plugin and
jar-with-dependencies to produce an executable jar of my application

Now I don't know if I should:
- create a "webstart" module to produce the JNLP Zip file
- or configure maven-webstart-plugin inside dist

What is the common practice in that case?

--
Sébastien Arbogast

http://www.sebastien-arbogast.com

---

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and delete this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for
additional EU corporate and regulatory disclosures.



--
Sébastien Arbogast

http://www.sebastien-arbogast.com


---

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the material in this e-mail is strictly forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional 
EU corporate and regulatory disclosures.

Reply via email to