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!!

Reply via email to