dbunit - Setting the object type of a Maven property -
how can set object type of property in pom file?
i'm working dbunit db exports , i'm trying pass in table parameter
<configuration> <format>xml</format> <dest>target/dbunit/export.xml</dest> <tables>activity_type</tables> </configuration>
the tables attribute supposed have type of 'table[]' , running maven get
[error] failed execute goal org.codehaus.mojo:dbunit-maven-plugin:1.0-beta-3: export (default) on project ccsewms-db-export: unable parse configuration of mojo org.codehaus.mojo:dbunit-maven-plugin:1.0-beta-3:export parameter tables: cannot assign configuration entry 'tables' value 'activity_type' of type java.lang.string property of type org.dbunit.ant.table[] -> [help 1]
so how can convert strings table[]?
the tables element populated specifying several of other properties:
<configuration> <format>xml</format> <dest>target/dbunit/export.xml</dest> <driver>oracle.jdbc.driver.oracledriver</driver> <url>jdbc:oracle:thin:@hostname:portnumber:dbname</url> <username>username</username> <password>password</password> <schema>schemaname</schema> <queries> <query> <name>query_id</name> <sql>select * your_table</sql> </query> ...
Comments
Post a Comment