Winner!! Worked like a charm. Thanks a lot! 

Rob Langridge 
Analyst Programmer - Java CoE
e: [EMAIL PROTECTED] 
t: 01925 554578 (Ex 444 4578) 


-----Original Message-----
From: Tom Huybrechts [mailto:[EMAIL PROTECTED] 
Sent: 01 December 2006 11:45
To: Maven Users List
Subject: Re: Maven2 & Hibernate

Add the entire src/main/java as a resource, and add an excludes for
**/*.java



On 12/1/06, Robert Langridge <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Thanks for the suggestions guys. Unfortunately I cannot change the 
> file structure of the project as it's all under clear case. I have 
> added multiple <resource> tags to achieve the copying over of the 
> *.xml files and properties files that live under the package
structure.
>
>                 <resource>
>
> <directory>/JavaSource/uk/co/company/billing/collections/entities/</di
> re
> ctory>
>                 <includes>
>                         <include>*.xml</include>
>                 </includes>
>                 </resource>
>
> But this only copies across the files to the base directory. This is 
> the problem because this is validates the hibernate mappings. Any 
> other suggestions?
>
> Cheers!
>
> Rob
>
>
>
> -----Original Message-----
> From: Marco Mistroni [mailto:[EMAIL PROTECTED]
> Sent: 01 December 2006 11:04
> To: Maven Users List; [EMAIL PROTECTED]
> Subject: Re: Maven2 & Hibernate
>
> Hi,
>  one idea might be to putyour hbm files in src\main\resources 
> directory every file in that directory will go automatically in your 
> jar
>
> hth
>  marco
>
> On 12/1/06, Gianfranco Oldani <[EMAIL PROTECTED]> wrote:
> >
> > Hi Rob,
> > For a web application for example you can put the xml configuration
> files
> > under the WEB-INF directory. For example my hibernate.cfg.xml is 
> > under
>
> > WEB-INF and for the .hbm.xml I have create a separated directory 
> > under
>
> > WEB-INF called hibernate_map.
> >
> > Hope it helps
> >
> > Regards
> >
> > Gianfranco OLDANI
> >
> >
> >
> > ----Original Message Follows----
> > From: "Robert Langridge" <[EMAIL PROTECTED]>
> > Reply-To: "Maven Users List" <users@maven.apache.org>
> > To: "Maven Users List" <users@maven.apache.org>
> > Subject: Maven2 & Hibernate.
> > Date: Fri, 1 Dec 2006 10:27:03 -0000
> >
> >
> > Hi,
> >
> > I'm fairly new to maven and I have the task of creating an automated

> > build for one of our hibernate projects. I have written a pom that 
> > compiles all my source and jar's it up. However when it compiles it
> does
> > not copy across the .xml files of my hibernate entities or any of 
> > the ..properties files. I have used the <resources> tag to include 
> > the hibernate.cfg.xml that sits in the base of the source directory,

> > but
> the
> > rest of the entity xml files live in a package structure. Any ideas?

> > I
>
> > have tried the following:
> >
> >        <plugin>
> >          <groupId>org.apache.maven.plugins</groupId>
> >          <artifactId>maven-compiler-plugin</artifactId>
> >          <configuration>
> >                   <includes>
> >                         <include>**/*.xml</include>
> >                         <include>**/*.properties</include>
> >                   </includes>
> >          </configuration>
> >        </plugin>
> >
> > When I have this <includes> tag it doesn't include the xml and props

> > files and also does not compile any of my source code. Is this a
bug?
> Or
> > am I mis-using this tag?
> >
> > Cheers!
> >
> > Rob Langridge
> > Analyst Programmer
>
>
> This communication together with any attachments transmitted with it
("this E-Mail") is intended only for the use of the addressee and may
contain information which is privileged and confidential.  If the reader
of this E-Mail is not the intended recipient or the employee or agent
responsible for delivering it to the intended recipient you are hereby
notified that any use, dissemination, forwarding, printing or copying of
this E-Mail is strictly prohibited.  Addressees should check this E-mail
for viruses.  The Company makes no representations as regards the
absence of viruses in this E-Mail.  If you have received this E-Mail in
error please notify our IT Service Desk immediately by e-mail at
[EMAIL PROTECTED]  Please then immediately delete, erase or otherwise
destroy this E-Mail and any copies of it.
>
> Any opinions expressed in this E-Mail are those of the author and do
not necessarily constitute the views of the Company.  Nothing in this
E-Mail shall bind the Company in any contract or obligation.
>
> For the purposes of this E-Mail "the Company" means The Carphone
Warehouse Group Plc and/or any of its subsidiaries.
>
> Please feel free to visit our website:  http:// 
> www.carphonewarehouse.com or http://www.phonehouse.com
>
> The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1

> Portal Way, London W3 6RS
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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




This communication together with any attachments transmitted with it ("this 
E-Mail") is intended only for the use of the addressee and may contain 
information which is privileged and confidential.  If the reader of this E-Mail 
is not the intended recipient or the employee or agent responsible for 
delivering it to the intended recipient you are hereby notified that any use, 
dissemination, forwarding, printing or copying of this E-Mail is strictly 
prohibited.  Addressees should check this E-mail for viruses.  The Company 
makes no representations as regards the absence of viruses in this E-Mail.  If 
you have received this E-Mail in error please notify our IT Service Desk 
immediately by e-mail at [EMAIL PROTECTED]  Please then immediately delete, 
erase or otherwise destroy this E-Mail and any copies of it.

Any opinions expressed in this E-Mail are those of the author and do not 
necessarily constitute the views of the Company.  Nothing in this E-Mail shall 
bind the Company in any contract or obligation.

For the purposes of this E-Mail "the Company" means The Carphone Warehouse 
Group Plc and/or any of its subsidiaries.

Please feel free to visit our website:  http:// www.carphonewarehouse.com or 
http://www.phonehouse.com

The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1 Portal 
Way, London W3 6RS


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

Reply via email to