>From the top of my head:

Bundle your jsps in a minimal war project.

Use war overlays (basically, if I understand right, a dependency on your
jsp-war from your real war project) to assemble into the 2 projects.

In wrapper project, use something like.

<dependency>
  <groupId>com.example.testing.war</groupId>
  <artifactId>internal</artifactId>
  <type>war</type>
  <version>1.0.0-SNAPSHOT</version>
</dependency>

When packaging wrapper project, the "internal" artifact will be exploded
and copied to the appropriate folders.

Patrick

On 10-03-19 02:53 PM, Laurent Perez wrote:
> Hello
>
> I have two webapps under a multi modules project, and I want to share
> jsps between them.
> Obviously I will not copy/paste files, nor use a svn:externals to host them.
>
> I'm thinking of using an assembly to zip them as a "bundle" artifact,
> and use the dependencies plugin to unzip them when war files will be
> built.
>
> Is this the common way to share "non-classpath" resources ?
>
> Thanks
> laurent
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to