Hiyas,

 

I am trying to use the Maven War Plugin to move some resources into the
WEB-INF/xsd directory instead of the WEB-INF/classes directory...

 

The XSDs exist in the src/main/config directory along with some
descriptive xml files which I do not want copied.  I configured the
Maven War Plugin as follows:

 

                  <plugin>

                        <groupId>org.apache.maven.plugins</groupId>

                        <artifactId>maven-war-plugin</artifactId>

                        <version>2.0</version>

                        <configuration>

                              <webResources>

                                    <resource>

 
<directory>src/main/config</directory>

 
<targetPath>WEB-INF/xsd</targetPath>

                                          <excludes>

 
<exclude>**/*.xml</exclude>

                                          </excludes>

                                    </resource>

                              </webResources>

                        </configuration>

                  </plugin>

 

However, everything in the src/main/config directory is still being
copied to the WEB-INF/classes directory... what am I doing wrong?

 

Thanks.

 

Keith

Reply via email to