A one time thing but certainly worth the effort in my opinion,
eventually the goal should be to have a similar structure
enterprise-wide so as to speed up the time it takes for the new
members to adapt to a different project in the company.

Farhan.

On 9/12/07, Syed Shabir <[EMAIL PROTECTED]> wrote:
> Well, I did think about that, but I was hoping that someone could have a
> simpler solution before the long haul of moving stuff around in CVS
> etc...
>
> -----Original Message-----
> From: Wayne Fay [mailto:[EMAIL PROTECTED]
> Sent: 12 September 2007 17:06
> To: Maven Users List
> Subject: Re: adding struts-config.xml file to WEB-INF folder during WAR
> build
>
> Assuming you're using the standard Maven directory structure, simply
> put the struts-config.xml file in the following place:
> {root}/src/main/webapp/WEB-INF/
>
> Then Maven should include it automatically in WEB-INF in your WAR.
>
> It looks like you're using a non-standard layout, so that makes it
> more difficult. Can you not restructure your project to use the
> "normal" Maven layout?
>
> Wayne
>
> On 9/12/07, Syed Shabir <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> >
> >
> > Could anyone tell me how to copy the struts xml files to the WEB-INF
> > folder during a WAR build.
> >
> >
> >
> > I'm using the 'maven-war-plugin' to do the build as below
> >
> >
> >
> > .................
> >
> > <plugins>
> >
> >             ..........................
> >
> >                              <plugin>
> >
> >
> > <groupId>org.apache.maven.plugins</groupId>
> >
> >
> > <artifactId>maven-war-plugin</artifactId>
> >
> >                                 <version>2.0</version>
> >
> >                                 <configuration>
> >
> >                                   <webResources>
> >
> >                                                       <resource>
> >
> >
> > <directory>${basedir}\web</directory>
> >
> >                                                             <includes>
> >
> >
> > <include>*.html</include>
> >
> >
> > <include>**/*.html</include>
> >
> >
> > <include>**/*.gif</include>
> >
> >
> > <include>**/*.js</include>
> >
> >
> > <include>**/*.css</include>
> >
> >
> > <include>**/*.jsp</include>
> >
> >
> >
> </includes>
> >
> >                                               </resource>
> >
> >                                                       <resource>
> >
> >
> > <directory>${basedir}\WEB-INF</directory>
> >
> >                                                 <includes>
> >
> >
> >
> > <include>**/*.xml</include>
> >
> >
> > <include>*.tld</include>
> >
> >                                                 </includes>
> >
> >
> >
> > <targetPath>WEB-INF</targetPath>
> >
> >
> > <filtering>false</filtering>
> >
> >                                                       </resource>
> >
> >
> >                           </webResources>
> >
> >                           <webXml>${basedir}\WEB-INF\web.xml</webXml>
> >
> >
> >                                 </configuration>
> >
> >                              </plugin>
> >
> >             .............................
> >
> >         </plugins>
> >
> > .............
> >
> >
> >
> > This copies the XML files to the root of the WAR file
> >
> >
> >
> > Much appreciated!!
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to