@@ -139,12 +139,12 @@ public void execute() throws MojoExecutionException {
139139 Version utlVersion = new DefaultDatabaseInformation ().getUtPlsqlFrameworkVersion (connection );
140140 getLog ().info ("utPLSQL Version = " + utlVersion );
141141
142- reportWriter = new ReportWriter (targetDir , utlVersion , getLog ());
143-
144- List <Reporter > reporterList = initReporters (connection , reportWriter , ReporterFactory .createEmpty ());
145142 FileMapperOptions sourceMappingOptions = buildSourcesOptions ();
146143 FileMapperOptions testMappingOptions = buildTestsOptions ();
147144
145+ reportWriter = new ReportWriter (targetDir , utlVersion , getLog ());
146+ List <Reporter > reporterList = initReporters (connection , reportWriter , ReporterFactory .createEmpty ());
147+
148148 logParameters (sourceMappingOptions , testMappingOptions , reporterList );
149149
150150 TestRunner runner = new TestRunner ()
@@ -172,7 +172,7 @@ public void execute() throws MojoExecutionException {
172172 if (!ignoreFailure ) {
173173 throw new MojoExecutionException (e .getMessage (), e );
174174 }
175- } catch (SQLException e ) {
175+ } catch (SQLException | IOException e ) {
176176 throw new MojoExecutionException (e .getMessage (), e );
177177 } finally {
178178 try {
@@ -215,7 +215,7 @@ private Connection createConnection() throws SQLException {
215215 return connection ;
216216 }
217217
218- FileMapperOptions buildSourcesOptions () throws MojoExecutionException {
218+ FileMapperOptions buildSourcesOptions () throws IOException {
219219 if (sources .isEmpty ()) {
220220 File defaultSourceDirectory = new File (project .getBasedir (), Defaults .SOURCE_DIRECTORY );
221221 if (defaultSourceDirectory .exists ()) {
@@ -231,7 +231,7 @@ FileMapperOptions buildSourcesOptions() throws MojoExecutionException {
231231 sourcesNameSubexpression , sourcesTypeSubexpression , sourcesCustomTypeMapping );
232232 }
233233
234- FileMapperOptions buildTestsOptions () throws MojoExecutionException {
234+ FileMapperOptions buildTestsOptions () throws IOException {
235235 if (tests .isEmpty ()) {
236236 File defaultTestDirectory = new File (project .getBasedir (), Defaults .TEST_DIRECTORY );
237237 if (defaultTestDirectory .exists ()) {
0 commit comments