[ 
http://jira.codehaus.org/browse/MSQL-3?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Lundberg moved MOJO-482 to MSQL-3:
-----------------------------------------

    Component/s:     (was: sql)
            Key: MSQL-3  (was: MOJO-482)
        Project: Maven 2.x SQL Plugin  (was: Mojo)

> sql-maven-plugin - onError parameter is ignored
> -----------------------------------------------
>
>                 Key: MSQL-3
>                 URL: http://jira.codehaus.org/browse/MSQL-3
>             Project: Maven 2.x SQL Plugin
>          Issue Type: Bug
>         Environment: windows, linux
>            Reporter: Paul Pavlidis
>            Assignee: Dan Tran
>
> Setting <onError>continue</onError> does not work. We ended up patching the 
> plugin to make the default 'continue' instead of 'abort', but this is just a 
> workaround. We tried setting it in the common configuration as well as 
> individual executions. We're running this plugin in a profile listed in the 
> pom.
> Here's a snippet of our pom.xml
>                       <build>
>                               <plugins>
>                                       <plugin>
>                                               
> <groupId>org.codehaus.mojo</groupId>
>                                               
> <artifactId>sql-maven-plugin</artifactId>
>                                               
> <version>1.0-beta-2-SNAPSHOT</version>
>                                               <dependencies>
>                                                       <dependency>
>                                                               
> <groupId>mysql</groupId>
>                                                               
> <artifactId>mysql-connector-java</artifactId>
>                                                               
> <version>3.1.11</version>
>                                                               <type>jar</type>
>                                                       </dependency>
>                                               </dependencies>
>                                               <!-- common configuration 
> shared by all executions -->
>                                               <configuration>
>                                                       
> <driver>com.mysql.jdbc.Driver</driver>
>                                                       
> <username>${gemma.db.username}</username>
>                                                       
> <password>${gemma.db.password}</password>
>                                                       
> <onError>continue</onError>
>                                                       
> <autocommit>true</autocommit>
>                                               </configuration>
>                                               <executions>
>                                                       <execution>
>                                                               
> <id>load-testdb-schema</id>
>                                                               
> <phase>process-test-resources</phase>
>                                                               <goals>
>                                                                       
> <goal>execute</goal>
>                                                               </goals>
>                                                               <configuration>
>                                                                       
> <url>${gemma.testdb.url}</url>
>                                                                       
> <srcFiles>
>                                                                               
> <srcFile>target/schema/gemma-ddl.sql</srcFile>
>                                                                               
> <srcFile>
>                                                                               
>         src/test/resources/sql/mysql-acegi-acl.sql
>                                                                               
> </srcFile>
>                                                                               
> <srcFile>src/test/resources/sql/init-script.sql</srcFile>
>                                                                       
> </srcFiles>
>                                                                       
> <onError>continue</onError>
>                                                               </configuration>
>                                                       </execution>
>                                               </executions>
>                                       </plugin>
>                               </plugins>
>                       </build>
>               </profile>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
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