Skip to content

Commit

Permalink
Issue #8.
Browse files Browse the repository at this point in the history
  • Loading branch information
highsource committed Dec 10, 2014
1 parent e104f11 commit b523e88
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ protected void doExecute() throws MojoExecutionException {
if (getVerbose()) {
getLog().info("optionsConfiguration:" + optionsConfiguration);
}

checkCatalogsInStrictMode(optionsConfiguration);

if (optionsConfiguration.getSchemas().isEmpty()) {
Expand Down Expand Up @@ -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 <strict>false</strict>\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 <strict>false</strict>\n");
}
}

Expand Down

0 comments on commit b523e88

Please sign in to comment.