Sorry gays,

Your tips is working fine, I have tried with resources configurated to a 
directory in my package in this case it change the directory.

Thanks a lot, it is working.
Cleiton


-----Mensagem original-----
De: subir.sasiku...@wipro.com [mailto:subir.sasiku...@wipro.com] 
Enviada em: Thursday, April 08, 2010 10:22 AM
Para: users@maven.apache.org
Assunto: RE: RES: Packing xml or wsdl in a jar, but in resource directory

I agree with Aleksey even I use same configurations, and it works perfectly in 
copying those non-java files to the relative directories in final artifact.
We use:

                <resources>
                        <resource>
                                <directory>src/main/java</directory>
                                <excludes>
                                        <exclude>**/*.java</exclude>
                                </excludes>
                        </resource>     
                </resources> 

Subir

-----Original Message-----
From: Aleksey Didik [mailto:di...@magenta-technology.ru] 
Sent: Thursday, April 08, 2010 6:48 PM
To: Maven Users List
Subject: Re: RES: Packing xml or wsdl in a jar, but in resource directory



08.04.2010 17:07, Cleiton Dos Santos Garcia пишет:
> Hi,
>
> I’ve already tried this configuration, but maven removes the files of the 
> relative directory/package to a [default] target. I’d like that these wsdl 
> files was maintained in their relative locations.
>    
Are you sure? We use this configuration and maven copy files in necessary 
relative locations in targets. Let me check it one more time. 
I'll try to make test project.

Aleksey.

> Regards,
> Cleiton Garcia.
>
> -----Mensagem original-----
> De: Aleksey Didik [mailto:di...@magenta-technology.ru]
> Enviada em: Thursday, April 08, 2010 9:29 AM
> Para: Maven Users List
> Assunto: Re: Packing xml or wsdl in a jar, but in resource directory
>
> You can do it.
> Just use:
>
> <resources>
> <resource>
> <directory>src/main/resources/</directory>
> <filtering>true</filtering>
> </resource>
> <!--Resources within classes except java--> <resource> 
> <directory>src/main/java/</directory>
> <excludes>
> <exclude>**/*.java</exclude>
> </excludes>
> </resource>
> </resources>
>
> HTH,
> Aleksey Didik.
>
> 08.04.2010 14:31, Cleiton Dos Santos Garcia пишет:
>    
>> Hi,
>>
>> I need put some files in different java packages and this files are ".xml 
>> and .wsdl". I can't put it in the resources directory, I need put a wsdl 
>> file in the same package as your relative class. Is it possible?
>> In eclipse it is a default behavior in "export->   jar", packing all .class 
>> and xml, or wsdl files. Anyone can help me how to it with maven?
>>
>> Regards,
>>
>> Cleiton Garcia.
>> IT Department
>> Fone (0xx47)3276-4167 Fax (0xx47) 3276-4010 WEG Equipamentos 
>> Elétricos S.A.
>> www.weg.net<http://www.weg.net/>
>>
>>
>>
>>      
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>    


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com

Reply via email to