You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by DCVer <ke...@o2.pl> on 2007/08/20 16:07:45 UTC

Making resources separate dependencies

Hi all,

I have a question: One of my projects needs a wsdl file resource from
another project, but doesn't need anything else from this project. Is there
a method to create some dependency (jar?) containing only that resource? Now
I specify needed resources by pointing relative path to resource directory
of the other project.
-- 
View this message in context: http://www.nabble.com/Making-resources-separate-dependencies-tf4299111s177.html#a12236643
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Making resources separate dependencies

Posted by Wayne Fay <wa...@gmail.com>.
A couple options:
1. This resource should live in its own artifact since it is a shared
resource. So move it to its own project, and use
maven-dependency-plugin:unpack mojo to make it available where it is
needed (in both projects) at build time.

2. Copy this resource to a public webserver somewhere and use
maven-remote-resources-plugin to pull it into both projects at build
time.

3. Leave the resource where it currently lives (in project1's jar),
and use dependency:unpack to copy it somewhere in project2 when it is
needed at build time.

Wayne

On 8/20/07, DCVer <ke...@o2.pl> wrote:
>
> Hi all,
>
> I have a question: One of my projects needs a wsdl file resource from
> another project, but doesn't need anything else from this project. Is there
> a method to create some dependency (jar?) containing only that resource? Now
> I specify needed resources by pointing relative path to resource directory
> of the other project.
> --
> View this message in context:
> http://www.nabble.com/Making-resources-separate-dependencies-tf4299111s177.html#a12236643
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org