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.

Regards,
Cleiton Garcia. 

-----Mensagem original-----
De: Aleksey Didik [mailto:[email protected]] 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to