From b523e885664e3881302fd63a5a4745a982dae445 Mon Sep 17 00:00:00 2001 From: highsource Date: Wed, 10 Dec 2014 12:29:30 +0100 Subject: [PATCH] Issue #8. --- .../org/jvnet/jaxb2/maven2/RawXJC2Mojo.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/plugin-core/src/main/java/org/jvnet/jaxb2/maven2/RawXJC2Mojo.java b/plugin-core/src/main/java/org/jvnet/jaxb2/maven2/RawXJC2Mojo.java index 7d630689f..e9c53c00b 100644 --- a/plugin-core/src/main/java/org/jvnet/jaxb2/maven2/RawXJC2Mojo.java +++ b/plugin-core/src/main/java/org/jvnet/jaxb2/maven2/RawXJC2Mojo.java @@ -301,7 +301,7 @@ protected void doExecute() throws MojoExecutionException { if (getVerbose()) { getLog().info("optionsConfiguration:" + optionsConfiguration); } - + checkCatalogsInStrictMode(optionsConfiguration); if (optionsConfiguration.getSchemas().isEmpty()) { @@ -342,13 +342,14 @@ protected void doExecute() throws MojoExecutionException { private void checkCatalogsInStrictMode( final OptionsConfiguration optionsConfiguration) { - if (optionsConfiguration.hasCatalogs() && optionsConfiguration.isStrict()) - { - getLog().warn("The plugin is configured to use catalogs and strict at the same time.\n" - + "Using catalogs to resolve schema URI in strict mode is known to be problematic and may fail.\n" - + "Please refer to the following linkfor more information:\n" - + "https://github.com/highsource/maven-jaxb2-plugin/wiki/Catalogs-in-Strict-Mode\n" - + "Consider setting false\n"); + if (optionsConfiguration.hasCatalogs() + && optionsConfiguration.isStrict()) { + getLog().warn( + "The plugin is configured to use catalogs and strict at the same time.\n" + + "Using catalogs to resolve schema URI in strict mode is known to be problematic and may fail.\n" + + "Please refer to the following linkfor more information:\n" + + "https://github.com/highsource/maven-jaxb2-plugin/wiki/Catalogs-in-Strict-Mode\n" + + "Consider setting false\n"); } }