Details
-
Type:
Test
-
Status:
Closed
-
Priority:
Major
-
Resolution: Incomplete
-
Affects Version/s: 1.5
-
Fix Version/s: None
-
Labels:None
-
Environment:redhat6.0
-
Number of attachments :
Description
I have a pom file with
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>sql-maven-plugin</artifactId> <version>1.5</version> <dependencies> <dependency> <groupId>com.ibm.db2.jcc</groupId> <artifactId>db2jcc4</artifactId> <version>1.0</version> </dependency> </dependencies> <configuration> <driver>com.ibm.db2.jcc.DB2Driver</driver> <url>jdbc:db2://db2-dev-ny:50000/soatest</url> <username>db2inst1</username> <password>password</password> </configuration> <executions> <execution> <id>apply-db-schema</id> <goals> <goal>execute</goal> </goals> <configuration> <autocommit>true</autocommit> <onError>continue</onError> <delimiter>;</delimiter> <printResultSet>true</printResultSet> <sqlCommand>create sequence Seq_StaffAssc_Id;</sqlCommand> </configuration> </execution> </executions> </plugin>
If I give wrong driver or invalid password, it will give proper error message. However it always ignores the sqlcommand and says
[INFO] 0 of 0 SQL statements executed successfully
I tried srcFile too,but no luck
You have to bind this execution-block to a phase.
http://maven.apache.org/guides/mini/guide-default-execution-ids.html