You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Matthew McCullough <am...@gmail.com> on 2010/02/08 18:17:20 UTC
Resources used in multiple projects
For resources used in multiple projects on a multi-module build, I'm
trying to figure out possible/best practice approaches.
My client wants the files to be stored only once in VCS. So, right now
they are doing maven-ant or maven-exec commands to copy the resources
in.
I'm considering suggesting a resource jar that stands alone as an
option.
Suggestions are appreciated.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Resources used in multiple projects
Posted by Wayne Fay <wa...@gmail.com>.
> I'm considering suggesting a resource jar that stands alone as an option.
IMO the resource jar is the proper approach.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Resources used in multiple projects
Posted by Martin Schayna <ma...@abra.eu>.
Hi Matthew,
Sure, we are developing apps in Eclipse and these projects are
sucessfully "eclipse:eclipse-ed". But eclipse maven plugin is not ideal,
so I had to change some .settings/* files after that, especially
org.eclipse.wst.common.component -- for shared resources I had to use
"linked resource" feature, because Eclipse dislikes relative "../" path
in <wb-resource> elements of this file. Plugin m2eclipse is very useful
for me and I could recommend it.
Resource jar is interesting, but I have no idea how is it supported in
WTP in Eclipse...
Good Luck!
Martin
Matthew McCullough wrote:
> Martin,
>
> Thank you for the input.
>
> They do have one module configured that way with a ../ navigation for
> traditional (not web) <resource> tags. It seems to choke mvn
> eclipse:eclipse which hoses the paths. I will be having them move to
> m2eclipse later this year, but am looking for solutions that carry us
> through 'till then.
>
> Do you use mvn eclipse:eclipse?
>
> I will also gave them experiment with Wayne's suggestion of a resource
> jar.
>
Re: Resources used in multiple projects
Posted by Matthew McCullough <am...@gmail.com>.
Martin,
Thank you for the input.
They do have one module configured that way with a ../ navigation for
traditional (not web) <resource> tags. It seems to choke mvn
eclipse:eclipse which hoses the paths. I will be having them move to
m2eclipse later this year, but am looking for solutions that carry us
through 'till then.
Do you use mvn eclipse:eclipse?
I will also gave them experiment with Wayne's suggestion of a resource
jar.
On Feb 8, 2010, at 10:47 AM, Martin Schayna <ma...@abra.eu>
wrote:
> Hi Matthew,
>
> we have also multi-module project with shared resources located in
> one module. Webapp folder is linked from other projects in pom.xml:
>
> <build>
> <plugins>
> <plugin>
> <artifactId>maven-war-plugin</artifactId>
> <configuration>
> <warName>app-portal</warName>
> <webResources>
> <resource>
> <directory>../lib-web/src/main/webapp</directory>
> </resource>
> </webResources>
> </configuration>
> </plugin>
> </plugins>
> </build>
>
> Martin Schayna
>
>
> Matthew McCullough wrote:
>> For resources used in multiple projects on a multi-module build,
>> I'm trying to figure out possible/best practice approaches.
>>
>> My client wants the files to be stored only once in VCS. So, right
>> now they are doing maven-ant or maven-exec commands to copy the
>> resources in.
>>
>> I'm considering suggesting a resource jar that stands alone as an
>> option.
>>
>> Suggestions are appreciated.
>>
>
> ---------------------------------------------------------------------
> 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
Re: Resources used in multiple projects
Posted by Martin Schayna <ma...@abra.eu>.
Hi Matthew,
we have also multi-module project with shared resources located in one
module. Webapp folder is linked from other projects in pom.xml:
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warName>app-portal</warName>
<webResources>
<resource>
<directory>../lib-web/src/main/webapp</directory>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>
</build>
Martin Schayna
Matthew McCullough wrote:
> For resources used in multiple projects on a multi-module build, I'm
> trying to figure out possible/best practice approaches.
>
> My client wants the files to be stored only once in VCS. So, right now
> they are doing maven-ant or maven-exec commands to copy the resources in.
>
> I'm considering suggesting a resource jar that stands alone as an option.
>
> Suggestions are appreciated.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org