This did it
<targetPath>/com/mtk/support/logging</targetPath>

jeff mutonho <[EMAIL PROTECTED]> wrote:Ok let me break it down further:
This is how the Support_Logging subproject looks like 

/Support_Logging/com/mtk/support/logging 
|__LogConstants.java
|__LogLevels.java
|__BusMsgs.xml
|__GeoMsgs.xml

and what I want to get is

/Support_Logging/target/classes/com/mtk/support/logging 
|__LogConstants.class
|__LogLevels.class
|__BusMsgs.xml
|__GeoMsgs.xml

and NOT 


/Support_Logging/target/classes/com/mtk/support/logging 
|__BusMsgs.xml |__LogConstants.class
|__GeoMsgs.xml |__LogLevels.class




The XML resources are indeed being copied , but to the wrong place(for me).I want them 
to end up in the same directory as the compiled classes , i.e in 
"target/classes/com/mtk/support/logging" and not in "target/classes/"

I think the question is how do i tell maven to copy the resources to the 
target/classes/com/mtk/support/logging directory and not the 
target/classes/ directory....:)


jeff mutonho


[EMAIL PROTECTED] wrote:
It is normal :) with the directory value you use that meen 
${basedir}/com/mtk/support/logging/**/*.xml are copy to 
/target/classes/**/*.xml
The dir structure of the file who are include is the same that the dir 
structure after the "directory" value.


${basedir}


${basedir}

**/*.xml


**/*.java






I think you should'nt use ${basedir} but place your xml file in a sub 
directory like ie src/main/resources

Nicolas


jeff mutnho




jeff mutonho 
08/09/2004 15:56
Veuillez r�pondre � "Maven Users List"


Pour : Maven Users List 
cc : 
Objet : Re: Copying some resources to the same directory of compiled classes


yes i defined the following 

${basedir}


${basedir}/com/mtk/support/logging


**/*.xml



**/*.java





....but the're being copied to the /target/classes directory and not the 

/target/classes/com/mtk/support/logging , where I want them to be.


jeff mutnho


[EMAIL PROTECTED] wrote:
Did you define in your build section something like :


src/main/resources/someresources

**/*.xml



and your xml are in 
src/main/resources/someresources/com/mtk/support/logging

Nicolas





jeff mutonho 
08/09/2004 15:19
Veuillez r�pondre � "Maven Users List"


Pour : Maven Users List 
cc : 
Objet : Copying some resources to the same directory of compiled classes


Hi

I've got some resources(xml files) that I wish to be copied to the 
destination directory where my compiled classes are placed eg if the 
classes are in 
/target/classes/com/mtk/support/logging , 
then the xml files must also be copied to the same directory(.ie logging ) 

and not 
/target/classes

I've tried specifying in the element , 
but that doesn't seem to work.


jeff mutonho


---------------------------------
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.



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



---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!



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


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

                
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!

Reply via email to