sql-maven-plugin

sql-maven-plugin with multiple delimiters

拥有回忆 提交于 2019-12-10 09:27:27
问题 I am using the sql-maven-plugin to execute some MySQL scripts on several databases. I would like to deploy, in the same SQL script, tables, datas, triggers, events and stored procedures. I have a problem with the line delimiter, because for INSERT or CREATE I use the ; , but for my triggers I have to change the delimiter with DELIMITER // , for example. I know that the plugin allows changing the delimiter, but it will be applicable for all the script, I want to change the delimiter only for a

Maven: PL/SQL script with sql-maven-plugin throws error PLS-00103

大城市里の小女人 提交于 2019-12-10 02:09:46
问题 I'm trying to use the sql-maven-plugin to execute a PL/SQL script on an Oracle 11 database. Although the script is valid PL/SQL (as far as I can tell), the execution gives me a PLS-00103 error: The SQL script: (drop_all_tables.sql) BEGIN EXECUTE IMMEDIATE 'DROP TABLE MY_TABLE'; EXCEPTION WHEN OTHERS THEN IF SQLCODE != -942 THEN RAISE; END IF; END; And my plugin configuration: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>sql-maven-plugin</artifactId> <version>1.5</version>

Maven: run plugin twice during a phase, interleaved with another plugin

守給你的承諾、 提交于 2019-12-06 04:25:56
问题 For our end-2-end test we need to execute the following logical flow: Create and set up e2e schema (user) in the database ( pre-integration-test ) Run Liquibase to initially populate the schema ( pre-integration-test ) Add e2e-specific test data to the DB tables ( pre-integration-test ) Start Tomcat ( pre-integration-test ) Run the web application in Tomcat ( integration-test ) using Protractor Shut down Tomcat ( post-integration-test ) Clean up the DB: drop the schema ( post-integration-test

sql-maven-plugin with multiple delimiters

南楼画角 提交于 2019-12-05 12:12:04
I am using the sql-maven-plugin to execute some MySQL scripts on several databases. I would like to deploy, in the same SQL script, tables, datas, triggers, events and stored procedures. I have a problem with the line delimiter, because for INSERT or CREATE I use the ; , but for my triggers I have to change the delimiter with DELIMITER // , for example. I know that the plugin allows changing the delimiter, but it will be applicable for all the script, I want to change the delimiter only for a part of a unique script. This is my maven configuration: <plugin> <groupId>org.codehaus.mojo</groupId>

Maven: PL/SQL script with sql-maven-plugin throws error PLS-00103

泪湿孤枕 提交于 2019-12-05 01:24:14
I'm trying to use the sql-maven-plugin to execute a PL/SQL script on an Oracle 11 database. Although the script is valid PL/SQL (as far as I can tell), the execution gives me a PLS-00103 error: The SQL script: (drop_all_tables.sql) BEGIN EXECUTE IMMEDIATE 'DROP TABLE MY_TABLE'; EXCEPTION WHEN OTHERS THEN IF SQLCODE != -942 THEN RAISE; END IF; END; And my plugin configuration: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>sql-maven-plugin</artifactId> <version>1.5</version> <dependencies> <dependency> <groupId>oracle</groupId> <artifactId>jdbc</artifactId> <version>11.2.0.2.0<