Thanks for the help. It is running fine now.

 

It runs pretty slow. I found it runs much faster with the offline option as
follows:

 

mvn -DloadData=true initialize -o

 

 

      </build>

 

      <profiles>

            <profile>

            <id>dbunit-load-data</id>

            <activation>

              <property>

                <name>loadData</name>

                <value>true</value>

              </property>

            </activation>

            <build>

              <plugins>

                <plugin>

                  <artifactId>maven-antrun-plugin</artifactId>

                  <executions>

                    <execution>

                      <id>initialize</id>

                      <phase>initialize</phase>

                      <goals>

                        <goal>run</goal>

                      </goals>

                      <configuration>

                        <tasks>

                          <property value="CLEAN_INSERT" name="operation" />

                          <property value="src/sql/population.xml"
name="file" />

                          <property
file="src/main/resources/spring/db.properties"/>

                          <taskdef name="dbunit"

                            classname="org.dbunit.ant.DbUnitTask" />

                          <dbunit   driver="${db.connection.driver_class}"

                                          url="${db.connection.url}"

                                          userid="${db.connection.username}"

 
password="${db.connection.password}"

                                          supportBatchStatement="false"

 
schema="${db.connection.username}">

                              <operation type="${operation}" src="${file}"
format="flat" />

                          </dbunit>

                        </tasks>

                      </configuration>

                    </execution>

                  </executions>

                  <dependencies>

                        <dependency>

                              <groupId>oracle</groupId>

                              <artifactId>oracle-jdbc</artifactId>

                              <version>10g</version>

                              <scope>runtime</scope>

                              <type>jar</type>

                        </dependency>

                <dependency>

                  <groupId>dbunit</groupId>

                  <artifactId>dbunit</artifactId>

                  <version>2.1</version>

                </dependency>

                <dependency>

                  <groupId>ant</groupId>

                  <artifactId>ant-nodeps</artifactId>

                  <version>1.6.5</version>

                  <scope>compile</scope>

                </dependency>

                <dependency>

                  <groupId>com.sun</groupId>

                  <artifactId>tools</artifactId>

                  <version>1.5</version>

                  <scope>system</scope>

                  <systemPath>${java.home}/../lib/tools.jar</systemPath>

                </dependency>

              </dependencies>

                </plugin>

              </plugins>

            </build>

          </profile>

      </profiles>

 

 

--Rick Hightower

Reply via email to