how to copy jaxb.index properly without ignoring other config files in maven

I was utilizing some simple JAXB for a project that has a jaxb.index full of the java objects that are utilizing the JAXB annotations. I first tried the code below within my pom.xml:

<build>
              <resources> <!-- include jaxb index files -->
                     <resource>
                           <directory>src/main/java</directory>
                           <includes>
                                  <include>**/*.index</include>
                           </includes>
                     </resource>
              </resources>
</build>

However, this appears to override the data within the /src/main/resources/ directory (appConfig.xml, *.properties, etc.). This is what caused the .

I was able to find a maven plugin vi that helped to fix the issue.

<plugin>
    <artifactId>maven-resources-plugin</artifactId>
    <version>2.5</version>
    <executions>
        <execution>
            <id>copy-resources</id>
            <phase>validate</phase>
            <goals>
                <goal>copy-resources</goal>
            </goals>
            <configuration>
                <outputDirectory>${basedir}/target/classes/path/to/model/</outputDirectory>
                <resources>
                    <resource>
                        <directory>${basedir}/src/main/resources/</directory>
                        <includes>
                            <include>jaxb.properties</include>
                        </includes>
                    </resource>
                </resources>
            </configuration>
        </execution>
    </executions>
</plugin>