On 6/26/06, Allison, Bob <[EMAIL PROTECTED]> wrote:
If the applet is supposed to be downloadable from within the web
application, though, this won't work since things under WEB-INF are not
reachable from the browser.  How would you get the applet jar placed in
the web application so that the browser can get to it?

That would be a problem, wouldn't it!  Sorry. :)

It seems like you need a <webResources> element in the war plugin
configuration.  Ideally, it would be something like
<webResources>
  <webResource>
     <targetPath>
      <webResourceArtifact>
         <groupId>
         <artifactId>
         <version>

and I don't think that's supported.  If it's not already in JIRA (or
there in an unreleased version of the war plugin) IMO it would be a
good addition.

For the moment, you'll probably have to use
<webResources>/<webResource> and use a relative path over to the
sibling module that builds the jar:
${basedir}/../appletmodule/target/applet.jar  (Declare a runtime
dependency on that applet jar so Maven will build it first, but not
include it in the webapp.)

However... looking at some webResources example configurations in the
list archives... the only thing I see is a nested <directory> element,
I don't even know if it supports single files.

If all else fails, you can resort to the antrun plugin and simply copy
the jar where you want it under target/mywebapp/.  Until the war
plugin documentation is improved, this might be the easiest route to
take.

Or maybe someone will be along shortly to point out that I'm making
this *much* too difficult and there's a simple solution. :)

--
Wendy

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

Reply via email to