Sorry for open this wrong issue.

Plugin already accept MS-Excel formats and just some configuration is need. Following instructions from here http://mojo.codehaus.org/dbunit-maven-plugin/examples/clean-insert.html and add Apache POI in dependencies list operation with XLS files happens was expected.

Bellow I put complete configuration.

<profiles>
  <profile>
    <id>it</id>
    <build>
      <plugins>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>dbunit-maven-plugin</artifactId>
          <version>1.0-beta-3</version>
          <dependencies>
            <dependency>
              <groupId>com.oracle</groupId>
              <artifactId>ojdbc6</artifactId>
              <version>${oracle-client.version}</version>
            </dependency>
            <!-- Need to parse XLS files, I extract this from dbunit pom -->
            <dependency>
              <groupId>org.apache.poi</groupId>
              <artifactId>poi</artifactId>
              <version>3.2-FINAL</version>
            </dependency>
          </dependencies>
          <configuration>
            <driver>oracle.jdbc.driver.OracleDriver</driver>
            <url>...</url>
            <username>...</username>
            <password>...</password>
          </configuration>
          <executions>
            <execution>
              <phase>test-compile</phase>
              <goals>
                <goal>operation</goal>
              </goals>
              <configuration>
                <type>CLEAN_INSERT</type>
                <format>xls</format>
                <src>src/test/it/database.xls</src>
              </configuration>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </build>      
  </profile>
</profiles>

Lets close this issue.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to