You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Lukasz Lenart <lu...@googlemail.com> on 2008/03/12 16:22:15 UTC

[S2] Maven2 and validation.xml

Hi,

I'm using maven2 to build my Struts2 application and how to solve the
problem with coping *-validation.xml files to target directory?

All my *-validation.xml files are next to action classes, in the same
package / directory (src/main/java/pl/org/lenart/s2) but they are no
copied in to target directory.
Yes, I can move them to resource

-- 

Lukasz

http://www.linkedin.com/in/lukaszlenart

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [S2] Maven2 and validation.xml

Posted by Lukasz Lenart <lu...@googlemail.com>.
> Resource files are supposed to be in the resources folder... Just put
>  them there with the same path as your java class, and everything
>  should be copied where it's supposed to. If that does not fit your

Yes, I did that but I was wondering how it should be, the good
practice in case of Struts 2. I think, it should be added to
archetype:create to expose such practice.


Any way thanks and regards
--
Lukasz

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [S2] Maven2 and validation.xml

Posted by Nils-Helge Garli Hegvik <ni...@gmail.com>.
Resource files are supposed to be in the resources folder... Just put
them there with the same path as your java class, and everything
should be copied where it's supposed to. If that does not fit your
needs, and you have other Maven 2 questions, I suggest that you use
the Maven user list (http://maven.apache.org/mail-lists.html)

Nils-H

On Wed, Mar 12, 2008 at 4:22 PM, Lukasz Lenart
<lu...@googlemail.com> wrote:
> Hi,
>
>  I'm using maven2 to build my Struts2 application and how to solve the
>  problem with coping *-validation.xml files to target directory?
>
>  All my *-validation.xml files are next to action classes, in the same
>  package / directory (src/main/java/pl/org/lenart/s2) but they are no
>  copied in to target directory.
>  Yes, I can move them to resource
>
>  --
>
>  Lukasz
>
>  http://www.linkedin.com/in/lukaszlenart
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>  For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org