Ok, It's work as I supposed.
Check target dir of the test project.
May be I understand something wrong in your problem description?

Aleksey

08.04.2010 17:17, Aleksey Didik пишет:


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



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

Reply via email to