Re: Include resources from other module in .jar

2008-06-27 Thread Aiko85

Thanks Stefan :-)

So far I've added the  part to each of the including jar's poms and
it works. Is it possible to configure it so the plugin configuration is in
one place ? Didn't work out when i placed it in root pom.

Anne


VUB Stefan Seidel wrote:
> 
> Hi,
> 
> one option is to extract the B jar using the dependency plugin:
>
>  
>
>  maven-dependency-plugin
>  2.1-SNAPSHOT
>  
>
>  expand common JSP fragments
>  
>unpack-dependencies
>  
>  generate-resources
>  
>your.group.id
>yourArtifactId
>true
>**/*.xml
>  
> ${project.build.directory}/generated-resources
>  
>
>  
>
> 
> adapt this a bit, add a dependency to the artifact 
> your.group.id:yourArtifactId (where your shared resources are placed in 
> src/main/resources) and off you go.
> 
> HTH,
> 
> Stefan
> 
> Aiko85 wrote:
>> Hi!
>> 
>> Is it possible to directly include in a jar (lets call it A.jar)
>> class/resource files from other module (lets call it B.jar). ? What I
>> have
>> is 5 jars/modules that need to have exactly the same property/xml files
>> inside them, so I would like to keep the resources in a separate module,
>> in
>> one place, and just include them in 5 jars.
>> 
>> Thanks for any help,
>> Anne
>> 
>> PS. Please don't be cryptic, I'm very new to maven ;)
> 
> 
> -- 
> best regards,
> 
> Stefan Seidel
> software developer
> 
> VUB Printmedia GmbH
> Chopinstraße 4
> D-04103 Leipzig
> Germany
> tel.+49 (341) 9 60 50 07
> fax.+49 (341) 9 60 50 92
> mail.   [EMAIL PROTECTED]
> web.www.vub.de
> 
> HRB Köln 24015
> UStID DE 122 649 251
> GF Dr. Achim Preuss Neudorf,
> Dr. Christian Preuss Neudorf
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Include-resources-from-other-module-in-.jar-tp18152318p18154011.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Include resources from other module in .jar

2008-06-27 Thread Aiko85

Hi!

Is it possible to directly include in a jar (lets call it A.jar)
class/resource files from other module (lets call it B.jar). ? What I have
is 5 jars/modules that need to have exactly the same property/xml files
inside them, so I would like to keep the resources in a separate module, in
one place, and just include them in 5 jars.

Thanks for any help,
Anne

PS. Please don't be cryptic, I'm very new to maven ;)
-- 
View this message in context: 
http://www.nabble.com/Include-resources-from-other-module-in-.jar-tp18152318p18152318.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]