diff --git a/pom.xml b/pom.xml index c43d21a..e43c69e 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.utplsql utplsql-maven-plugin - 3.1.1-SNAPSHOT + 3.1.2-SNAPSHOT maven-plugin utPLSQL Maven Plugin @@ -55,7 +55,7 @@ org.utplsql java-api - 3.1.1 + 3.1.2 diff --git a/src/main/java/org/utplsql/maven/plugin/UtPLSQLMojo.java b/src/main/java/org/utplsql/maven/plugin/UtPLSQLMojo.java index b023f72..0f57b04 100644 --- a/src/main/java/org/utplsql/maven/plugin/UtPLSQLMojo.java +++ b/src/main/java/org/utplsql/maven/plugin/UtPLSQLMojo.java @@ -164,10 +164,10 @@ public void execute() throws MojoExecutionException { runner.run(connection); } catch (SomeTestsFailedException e) { - getLog().error(e); - throw new MojoExecutionException(e.getMessage()); + if (!this.ignoreFailure) { + throw new MojoExecutionException(e.getMessage(), e); + } } catch (SQLException e) { - getLog().error(e); throw new MojoExecutionException(e.getMessage(), e); } finally { try {