You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Gautham Pamu <ga...@gmail.com> on 2006/03/30 09:10:34 UTC
[m2] How to package resource files in jar file
Hi Everyone,
I have following directory structure
ProjectFolder
- META-INF
- com directory (with java code)
- sample.xml
- pom.xml
- xsd-includes directory
- test.properties
- sampleXSD.xsd
- samplewsdl.wsdl
How do configure the resources in pom.xml so that it package these xml,wsdl
files in the jar file ?
<sourceDirectory>${basedir}</sourceDirectory>
<includes>
<include>${basedir}</include>
<include>META-INF</include>
<include>xsd-includes</include>
</includes>
<!-- exclude the com folder -->
<excludes>
<exclude>com</exclude>
</excludes>
--
-Gautham Pamu
Re: [m2] How to package resource files in jar file
Posted by Gautham Pamu <ga...@gmail.com>.
Thanks Mang
On 3/30/06, Mang Jun Lau <Ma...@otpp.com> wrote:
>
> <build>
> <resources>
> <resource>
> <directory>${basedir}</directory>
> <includes>
> <include>*.xml</include>
> <include>*.wsdl</include>
> </includes>
> </resource>
> </resources>
> </build>
>
> -----------------------------------------------------------
> Mang Lau
> Software Developer
> MIS Member Services
> Ontario Teachers' Pension Plan Board
> T: 416-228-3148
> E: mang_lau@otpp.com
>
>
>
>
>
> "Gautham Pamu" <ga...@gmail.com>
> 03/30/2006 02:10 AM
> Please respond to
> "Maven Users List" <us...@maven.apache.org>
>
>
> To
> "Maven Users List" <us...@maven.apache.org>
> cc
>
> Subject
> [m2] How to package resource files in jar file
>
>
>
>
>
>
> Hi Everyone,
>
> I have following directory structure
>
> ProjectFolder
> - META-INF
> - com directory (with java code)
> - sample.xml
> - pom.xml
> - xsd-includes directory
> - test.properties
> - sampleXSD.xsd
> - samplewsdl.wsdl
>
> How do configure the resources in pom.xml so that it package these
> xml,wsdl
> files in the jar file ?
> <sourceDirectory>${basedir}</sourceDirectory>
> <includes>
> <include>${basedir}</include>
> <include>META-INF</include>
> <include>xsd-includes</include>
> </includes>
> <!-- exclude the com folder -->
> <excludes>
> <exclude>com</exclude>
> </excludes>
>
> --
> -Gautham Pamu
>
>
>
--
-Gautham Pamu
Re: [m2] How to package resource files in jar file
Posted by Mang Jun Lau <Ma...@otpp.com>.
<build>
<resources>
<resource>
<directory>${basedir}</directory>
<includes>
<include>*.xml</include>
<include>*.wsdl</include>
</includes>
</resource>
</resources>
</build>
-----------------------------------------------------------
Mang Lau
Software Developer
MIS Member Services
Ontario Teachers' Pension Plan Board
T: 416-228-3148
E: mang_lau@otpp.com
"Gautham Pamu" <ga...@gmail.com>
03/30/2006 02:10 AM
Please respond to
"Maven Users List" <us...@maven.apache.org>
To
"Maven Users List" <us...@maven.apache.org>
cc
Subject
[m2] How to package resource files in jar file
Hi Everyone,
I have following directory structure
ProjectFolder
- META-INF
- com directory (with java code)
- sample.xml
- pom.xml
- xsd-includes directory
- test.properties
- sampleXSD.xsd
- samplewsdl.wsdl
How do configure the resources in pom.xml so that it package these
xml,wsdl
files in the jar file ?
<sourceDirectory>${basedir}</sourceDirectory>
<includes>
<include>${basedir}</include>
<include>META-INF</include>
<include>xsd-includes</include>
</includes>
<!-- exclude the com folder -->
<excludes>
<exclude>com</exclude>
</excludes>
--
-Gautham Pamu