[Hoping that cross posting on both lists is not an issue]

First congrats to all of you for yesterday's release.

I am getting closer to have a working webstart-maven-plugin and need
some input from experienced m2 developers.

The webstart plugin does the following work:

- generate a jnlp file
- copy the jars marked as dependencies into a working directory
- sign the jars using an existing or created keystore file
- automatically add a jnlp-servlet.jar when working in a web environment
- if required, use pack200 algorythm to create packed and packed
gzipped versions of the jars.

In the future it will also generate other files (version.xml),
index.html, etc...

All these operations happen in a working repository where the layout
is correctly created.

All in all it's a plugin that does quite a few things. The main
resulting artifact is the jnlp file, but the jnlp file without the
signed/packed/zipped jar is not that interesting.

If I use the webstart plugin in a project, I am assuming that the
install operation will only install the jnlp file, and not the full
working directory, right?

Right now I've focused on producing the results for a single module.
Now I need to be able to combine several modules that generate the
aforementionned artifacts. Most of the time these modules will be
combined in a web application.

Example: with the following 3 modules:

webstart1 - configured to execute webstart
webstart2 - configured to execute webstart
webapp - creates a war, adds the webstart1 and webstart2 artifacts

(last module could be split in 2:
 create a war
 combine war + webstart1 + webstart2.
 To keep it simple I assume that this happens in one module)


Questions:
1- If only the jnlp file was deployed, how do I get hold of the rest
of the generated files. They are still in the working repository, but
my webapp project doesn't know it, or does it?
    If the other artifacts are deployed, what is the appropriate
resulting artifact? a zip?

2- Should I and if so how can I share the working directory between
webstart1 and webstart2 so that operations on identical files are not
reproduced (e.g. if both webstart modules must sign & pack the same
dependency, better to do the operation only once)

3- Should the merging of the generated files happen automatically?
e.g. assuming that all artifacts are installed in the local
repository, if a user specifies a 'jnlp-zip' dependency type in the
webapp pom, the war plugin could automatically search for the set of
artifacts and combine it automatically into its resulting war? Or
should that be a manual operation, i.e. the user must specify and
configure a <plugin> to perform this merging, maybe using the assmbly
?

Any idea that you have that could help me make this work the maven way
is appreciated..

Review of current specification in [1] is appreciated.

Cheers,

Jerome

[1] http://docs.codehaus.org/display/MOJO/Webstart+Plugin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to