Best practice to share a common set of jsps between war artifacts ?
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 -- a href=http://blog.jdeuxe.info/;http://blog.jdeuxe.info/ - Java entreprise tips tricks/a - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Best practice to share a common set of jsps between war artifacts ?
Have you looked at the war plugin's overlay feature? I think that's what you're looking for. Justin On 3/19/10 2: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: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Best practice to share a common set of jsps between war artifacts ?
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 groupIdcom.example.testing.war/groupId artifactIdinternal/artifactId typewar/type version1.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: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Best practice to share a common set of jsps between war artifacts ?
You should have a look at overlays in the WAR Plugin. On 2010-03-19 19:53, 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 -- Dennis Lundberg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org