I think the answer is to:
1) create a new module for the resources. move the
src/main/resources/resource.xml into the new module.
2) declare a dependency in each of A and B on the new resources module.
3) use assembly plugin in A and B to create a jar with dependencies. see
The problem is that the resouce may not be a classpath resource (e.g.
a javascript file) and I need to install the resource(s) in a specified
directory
in multiple webapps.
Consider for instance, a set of .js files; two webapps A and B need to install
the
same .js files in their webapps
Create the artifact with the shared resources.
Use maven-dependency-plugin to unzip the artifact into the projects
where you want to use it.
Wayne
On 2/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
The problem is that the resouce may not be a classpath resource (e.g.
a javascript file)
You could use the remote-resources possibly as well.
-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 28, 2007 4:35 PM
To: Maven Users List
Subject: Re: [m2] Packging the same resource file in multple projects
Create the artifact with the shared