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>


For documentation, I'm afraid you'll have to download the source code and 
generate the site.

Hope this helps.

Cheers,
Kevin









deckrider <[EMAIL PROTECTED]> 
06/11/2007 16:57
Please respond to
[email protected]


To
[email protected]
cc

Subject
Re: [mojo-user] webstart-maven-plugin multiple jnlp/outputFiles






On Nov 6, 2007 12:07 AM, Jerome Lacoste <[EMAIL PROTECTED]> wrote:
>
> 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




---

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